user1@vm1:~$ echo $LANG
en_US.UTF-8
user1@vm1:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
user1@vm1:~$ man man
MAN(1) Manual pager utils MAN(1)
NAME
man - an interface to the on-line reference manuals
user1@vm1:~$ sudo dpkg-reconfigure locales
---------------| Configuring locales |-----------------------
| |
| Locales are a framework to switch between multiple |
| languages and allow users to use their language, |
| country, characters, collation order, etc. |
| |
| Please choose which locales to generate. UTF-8 locales |
| should be chosen by default, particularly for new |
| installations. Other character sets may be useful for |
| backwards compatibility with older systems and software. |
| |
| <Ok> |
| |
-------------------------------------------------------------
-----------| Configuring locales |--------
| Locales to be generated: |
| |
| [ ] fr_BE@euro ISO-8859-15 |
| [ ] fr_CA ISO-8859-1 |
| [ ] fr_CA.UTF-8 UTF-8 |
| [ ] fr_CH ISO-8859-1 |
| [ ] fr_CH.UTF-8 UTF-8 |
| [*] fr_FR ISO-8859-1 |
| [ ] fr_FR.UTF-8 UTF-8 |
| [ ] fr_FR@euro ISO-8859-15 |
| |
| |
| <Ok> <Cancel> |
| |
------------------------------------------
------------------ Configuring locales ----------------------
| |
| Many packages in Debian use locales to display text in |
| the correct language for the user. You can choose a |
| default locale for the system from the generated |
| locales. |
| |
| This will select the default language for the entire |
| system. If this system is a multi-user system where not |
| all users are able to speak the default language, they |
| will experience difficulties. |
| |
| <Ok> |
| |
-------------------------------------------------------------
------------ Configuring locales --------------
| Default locale for the system environment: |
| |
| None |
| en_US.UTF-8 |
| fr_FR.UTF-8 |
| |
| |
| <Ok> <Cancel> |
| |
-----------------------------------------------
Generating locales (this might take a while)...
en_US.UTF-8... done
fr_FR.UTF-8... done
Generation complete.
user1@vm1:~$ export LANG=fr_FR.UTF-8
user1@vm1:~$ echo $LANG
fr_FR.UTF-8
user1@vm1:~$ locale
LANG=fr_FR.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=
user1@vm1:~$ man man
MAN(1) Utilitaires de l'afficheur des pages de manuel MAN(1)
NOM
man - interface de consultation des manuels de
référence en ligne
user1@vm1:~$ export LANG=en_US.UTF-8
user1@vm1:~$