You are not logged in.
Pages: 1
Hello
I have two simple questions:
1. I need polish localization but english language. How can I set correctly en_PL.UTF-8 locale globally? There is no such locale in /etc/locale.gen.
2. What's the difference between "en_US.UTF-8" and "en_US.UTF-8 UTF-8" and "en_US UTF-8" in /etc/locale.gen file?
Last edited by erketre (2009-11-05 21:52:46)
Offline
1. It seems that you don't need to deal with locales. After choose an English/Polish locale,
setting some LC family environment variables should solve your problem.
(e.g. LC_COLLATE, LC_MESSAGES, depends on what exactly do you want)
2. en_US.UTF-8 is the name of the locale, in /etc/locale.gen there are two entries:
en_US.UTF-8 UTF-8
en_US ISO-8859-1
en_US.UTF-8 or en_US are the names of the locale, while UTF-8 or ISO-8859-1 are
the names of the corresponding charsets they use. This information is actually
presented at the beginning of that file.
Last edited by eirika (2009-11-05 21:32:17)
Offline
1. I know, but I don't want to set LC_* vars directly. If locale string in UNIX is <language>_<country>.<charset> so why there can't be en_PL.UTF-8?
2. I still don't get it. So "en_US.UTF-8 UTF-8" and "en_US UTF-8" are the same? How this double "UTF-8" refers to the locale string in UNIX (1)?
Offline
1. /usr/share/i18n/locales contains all possible locales. I think your request is not
common enough so they don't put an en_PL there.
2.
en_US.UTF-8 UTF-8
en_US UTF-8
should make no difference in practice, but for me the entry in /etc/locale.gen is
en_US ISO-8859-1, so I took that as an example.
Last edited by eirika (2009-11-05 22:14:56)
Offline
Hi,
I'm not pretty sure I get what you are looking for but here is my configuration:
$ grep locale /etc/rc.conf
LOCALE="en_US.UTF-8"
$ grep ^[^#] /etc/locale.gen
en_US.UTF-8 UTF-8
en_US ISO-8859-1
fr_FR.UTF-8 UTF-8
fr_FR ISO-8859-1
fr_FR@euro ISO-8859-15
That allows me to have EN console messages but full french types. For the DE/WM I just set it up separately (depending on the DE/WM).
Is it the kind of thing you are trying to do?
No answer for your second question
Last edited by Wikimig (2009-11-06 08:37:49)
Offline
I get your point but I want to know what's wrong with the single, mixed en_PL locale.
Both questions are still open. Maybe some Linux geek will help?
Offline
local.gen is part of glibc. AFAIK glibc uses only ISO, and en_pl isn't defined by ISO. The language/localization schema is used because of en/gb and other languages, that vary depending on localization, not for customization...
Proud ex-maintainer of firefox-pgo
Offline
So the shema is inconsistent in my opinion (why someone who lives in Poland cannot speak english?). After googling a while I find a way to create en_PL locale by modifying /usr/share/i18n/locales/en_EN file.
Second question is still up-to-date...
Offline
Personally I would set the locate to pl_PL in rc.conf, and then add a /etc/profile.d/xlocale.sh that exports LC_LANG=en_GB
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Pages: 1