SliTaz GNU/Linux official and community documentation wiki.
.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:scratchbook:locale [2011/04/21 23:01]
domcox typo edit
en:scratchbook:locale [2011/04/23 23:06] (current)
domcox tiny edit
Line 59: Line 59:
 Use of "​localedef"​ for French-speaking Switzerland and France: Use of "​localedef"​ for French-speaking Switzerland and France:
  
-   /# localedef -i fr_CH -f ISO-8859-1 fr_CH +   # localedef -i fr_CH -f ISO-8859-1 fr_CH 
-   /# localedef -i fr_FR -f ISO-8859-1 fr_FR +   # localedef -i fr_FR -f ISO-8859-1 fr_FR 
-   /# exit+   # exit
  
 You can delete the "​localedef"​ binary to gain some space: You can delete the "​localedef"​ binary to gain some space:
Line 70: Line 70:
  
 To use a language in a session, you can create a script launched at boot, or add 2 lines to the ~/.profile specific to each user with: To use a language in a session, you can create a script launched at boot, or add 2 lines to the ~/.profile specific to each user with:
 +<​file>​
   export LANG=fr_CH   export LANG=fr_CH
   export LC_ALL=fr_CH   export LC_ALL=fr_CH
 +</​file>​
 Voilà, the French language should now function If you installed retawq or nano, you can check the performance of locales by copying the .mo files in the sources of Retawq or Nano to /​usr/​share/​locale/​fr/​LC_MESSAGES. Voilà, the French language should now function If you installed retawq or nano, you can check the performance of locales by copying the .mo files in the sources of Retawq or Nano to /​usr/​share/​locale/​fr/​LC_MESSAGES.
  
 
en/scratchbook/locale.1303419715.txt.gz · Last modified: 2011/04/21 23:01 by domcox