Page 1 of 1

How to сhange locale (language and character set) in Salix ?

Posted: 14. Dec 2013, 21:11
by dias75
In ubuntu I can modify and add locale so:
Look for available locales :
$ locale -a

If I didn't find the desired language or encoding, I can search for them in the list of all supported locales :
/usr/share/i18n/SUPPORTED

Generate a new locale by running locale-gen command
For example :
# locale-gen fr_FR ISO-8859-1
Now I could see it in the list of available locales.
$ locale -a

If I did not find the desired language or character set in the list of all supported locales:
for example
localedef -c -i ru_RU -f CP1251 ru_RU.CP1251
If it is necessary to remove
localedef --delete ru_RU.CP1251
After that he became known to the system and to see `locale-a`.

to change a language and encoding for the current session :
for example
$ LANG=ru_RU.CP1251
to change user's locale permanently :
export LANG=xx_XX.yyY

To permanently change system's locale:
In the file /etc/default/locale to change the LANG variable:
LANG="xx_XX.yyY"
-------------
How the same is done in salix ?
In salix these files /usr/share/i18n/SUPPORTED and /etc/default/locale are missing.

Re: How to сhange locale (language and character set) in Sal

Posted: 15. Dec 2013, 11:05
by gapan
Menu/System/System Language
or

Code: Select all

localesetup
from a root terminal.