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

Other talk about Salix
Post Reply
dias75
Posts: 37
Joined: 3. Feb 2012, 13:02
Location: Ukraine

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

Post 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.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

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

Post by gapan »

Menu/System/System Language
or

Code: Select all

localesetup
from a root terminal.
Image
Image
Post Reply