Bonsoir,
Je voudrais mettre mon sytème debian whezzy 3.0.4 en français.
Exemple, il me répond en anglais
root@debian:~# commande-bidon
-bash: commande-bidon: command not found
root@debian:~#
Avant de lancé “dpkg-reconfigure locales” j’ai vérifier si il était installé
root@debian:~# dpkg -l | grep locales
root@debian:~#
Je l’ai donc installé :
root@debian:~# apt-get install locales
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
locales
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 5714 kB of archives.
After this operation, 15.5 MB of additional disk space will be used.
Get:1 http://ftp.fr.debian.org/debian/ stable/main locales all 2.13-38+deb7u1 [5714 kB]
Fetched 5714 kB in 3s (1672 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
Selecting previously unselected package locales.
(Reading database ... 19930 files and directories currently installed.)
Unpacking locales (from .../locales_2.13-38+deb7u1_all.deb) ...
Processing triggers for man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up locales (2.13-38+deb7u1) ...
Generating locales (this might take a while)...
Generation complete.
root@debian:~#
Vérification :
root@debian:~# dpkg -l | grep locales
ii locales 2.13-38+deb7u1 all Embedded GNU C Library: National Language (locale) data [support]
root@debian:~#
Ensuite j’ai tapé : # locale
root@debian:~# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=fr_FR
LANGUAGE=
LC_CTYPE="fr_FR"
LC_NUMERIC="fr_FR"
LC_TIME="fr_FR"
LC_COLLATE="fr_FR"
LC_MONETARY="fr_FR"
LC_MESSAGES="fr_FR"
LC_PAPER="fr_FR"
LC_NAME="fr_FR"
LC_ADDRESS="fr_FR"
LC_TELEPHONE="fr_FR"
LC_MEASUREMENT="fr_FR"
LC_IDENTIFICATION="fr_FR"
LC_ALL=
root@debian:~#
Puis j’ai tapé : # dpkg-reconfigure locales
Et parmis le choix :
[code] [ ] fr_BE ISO-8859-1
│ [ ] fr_BE.UTF-8 UTF-8
│ [ ] 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
│ [ ] fr_LU ISO-8859-1
│ [ ] fr_LU.UTF-8 UTF-8
│ [ ] fr_LU@euro ISO-8859-15
<Ok> [/code]
j’ai choisi : fr_FR.UTF-8 UTF-8.
Puis ok, la une nouvelle instruction s’affiche.
[code]Paramètres régionaux par défaut pour l’environnement de système:
Aucun
fr_FR.UTF-8
<Ok> [/code]
J’ai choisi : fr_FR.UTF-8 et Ok
et la dans le terminal il y a d’inscrit
root@debian:~# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
fr_FR.UTF-8... done
Generation complete.
root@debian:~#
Mais il m’affiche :
Histoire de voir si il me répond en français, je demande la date
root@debian:~# date
Tue Jun 17 23:10:49 UTC 2014
root@debian:~#
helas, Il est toujours en anglais.
Pourtant mon fichier “/etc/locale.gen” est correct.
Es-ce du a Debian ou une erreur de ma part ?
Comment faut il faire pour le mettre en Français ?
Merci.