You are not logged in.

#1 2020-06-12 18:32:13

860lacov
Member
Registered: 2020-05-02
Posts: 497

Problem with understanding xdg user directories language.

Some time ago I installed Arch on my old laptop.
I remember that when I used xdg user directories it worked but instead of Polish I had English names. I don't remember what I did but I managed to fix it.
Today I did another install of Arch (another PC).
I didn't have my laptop, so I had to create dirs with wiki article.
And the problem (I know that it's not a problem but my lack of knowledge and understanding) occurred again.

At the beginning I changed ~/.config/user-dirs.locale
from C to pl_PL
After that I did xdg-user-dirs-update and xdg-user-dirs-update --force but it didn't change nothing.
Then I edited
/etc/xdg/user-dirs.defaults
Inside I've changed English to Polish names and It worked but...
Just a moment ago I checked my previous installation and names in /etc/xdg/user-dirs.defaults are in English and I have Polish names in ~/.config/user-dirs.dirs

I RTFM myself few times and I'm just not sure so please help me clarify this. Are the changes in etc global and changes in user home local?
What is there a correct way to this?
Why changing ~/.config/user-dirs.locale from C to pl_PL didn't help?

Last edited by 860lacov (2020-06-12 18:33:14)

Offline

#2 2020-06-13 12:55:24

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,403

Re: Problem with understanding xdg user directories language.

xdg-user-dirs-update uses your locale setting to determine which language is to be used .
If you set up your locale correctly, it should automagically use the correct language.

Check https://wiki.archlinux.org/index.php/Locale for info about setting systemwide / userspecific locale .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2020-06-13 14:18:16

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: Problem with understanding xdg user directories language.

I don't know if I did everything correctly but my locale output is:

LANG=pl_PL.UTF-8
LC_CTYPE="pl_PL.UTF-8"
LC_NUMERIC="pl_PL.UTF-8"
LC_TIME="pl_PL.UTF-8"
LC_COLLATE="pl_PL.UTF-8"
LC_MONETARY="pl_PL.UTF-8"
LC_MESSAGES="pl_PL.UTF-8"
LC_PAPER="pl_PL.UTF-8"
LC_NAME="pl_PL.UTF-8"
LC_ADDRESS="pl_PL.UTF-8"
LC_TELEPHONE="pl_PL.UTF-8"
LC_MEASUREMENT="pl_PL.UTF-8"
LC_IDENTIFICATION="pl_PL.UTF-8"
LC_ALL=

So I believe that during installation I did everything as I should.

Offline

#4 2020-06-14 11:00:17

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,403

Re: Problem with understanding xdg user directories language.

That looks good, but there's more that can go wrong.

post outputs of

$ locale -a
$ localectl
$ localectl list-locales

The contents of /etc/locale.conf and $XDG_CONFIG_HOME/locale.conf (if they exist) is also useful.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2020-06-18 15:14:46

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: Problem with understanding xdg user directories language.

lacale -a

C
POSIX
pl_PL.utf8

localectl

System locale: LANG=C
VC Keymap: pl
X11 Layout: n/a

loacle output
everything ="C"

Lone_Wolf wrote:

That looks good, but there's more that can go wrong.

post outputs of

$ locale -a
$ localectl
$ localectl list-locales

The contents of /etc/locale.conf and $XDG_CONFIG_HOME/locale.conf (if they exist) is also useful.

etc doesn't exist
Not sure if $XDG_CONFIG_HOME/locale.conf means home/locale.conf but it's not there.

Last edited by 860lacov (2020-06-18 15:15:44)

Offline

#6 2020-06-18 16:14:17

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Problem with understanding xdg user directories language.

860lacov wrote:
Lone_Wolf wrote:

The contents of /etc/locale.conf and $XDG_CONFIG_HOME/locale.conf (if they exist) is also useful.

etc doesn't exist

It should: https://wiki.archlinux.org/index.php/In … calization

And you should have included en_US.UTF-8 in /etc/locale.gen

860lacov wrote:

Not sure if $XDG_CONFIG_HOME/locale.conf means home/locale.conf but it's not there.

$XDG_CONFIG_HOME defaults to ~/.config/


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB