[Linux] installation de locales
Résolu/Fermé
SimStim
-
2 nov. 2008 à 11:37
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 - 2 nov. 2008 à 13:09
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 - 2 nov. 2008 à 13:09
A voir également:
- [Linux] installation de locales
- Installation chromecast - Guide
- Linux mint - Télécharger - Systèmes d'exploitation
- Installation windows 10 sans compte microsoft - Guide
- Roblox linux - Forum Ubuntu
- Diskinternals linux reader - Télécharger - Stockage
4 réponses
bob031
Messages postés
8158
Date d'inscription
samedi 7 août 2004
Statut
Membre
Dernière intervention
1 septembre 2014
472
2 nov. 2008 à 12:08
2 nov. 2008 à 12:08
bonjour,
on les trouve parfois dans /usr/share/locale/
trouver les locales disponibles sur le système :
créer une nouvelle "locale" :
puis :
vérification :
on les trouve parfois dans /usr/share/locale/
trouver les locales disponibles sur le système :
$ locale -a
créer une nouvelle "locale" :
# localedef -c -i fr_FR -f ISO-8859-15 fr_FR.ISO-8859-15
puis :
# export LANG="fr_FR.ISO-8859-15"
vérification :
$ env | grep -i LC_
Parfait !
Ca n'a cependant pas résolu mon problème, mrxvt ne m'affiche toujours pas les accents correctement. J'ai pourtant exporté la variable LC_CTYPE dans mon .profile, mais rien à faire. Merci bien, je vais continuer à chercher.
Par contre une dernière question :
me donne bien :
Ca n'a cependant pas résolu mon problème, mrxvt ne m'affiche toujours pas les accents correctement. J'ai pourtant exporté la variable LC_CTYPE dans mon .profile, mais rien à faire. Merci bien, je vais continuer à chercher.
Par contre une dernière question :
env | grep LC_
me donne bien :
LC_CTYPE=fr_FR.iso88591alors que
locale | grep LC_me renvoie toujours :
LC_CTYPE="fr_FR.UTF-8"Est-ce normal ?
bob031
Messages postés
8158
Date d'inscription
samedi 7 août 2004
Statut
Membre
Dernière intervention
1 septembre 2014
472
2 nov. 2008 à 13:06
2 nov. 2008 à 13:06
je me suis servi de ça :
3. Variables locales
source : http://www.gentoo.org/doc/fr/guide-localization.xml#doc_chap3
j'ai rajouté ceci dans le fichier /etc/profile :
puis faire bien sûr :
redfox@gentoo ~ $ locale
LANG=fr_FR@euro
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=fr_FR
redfox@gentoo ~ $
redfox@gentoo ~ $ locale -a
C
français
french
fr_FR
fr_FR.iso88591
POSIX
redfox@gentoo ~ $
redfox@gentoo ~ $ env | grep -i LC_
LC_ALL=fr_FR
redfox@gentoo ~ $
3. Variables locales
source : http://www.gentoo.org/doc/fr/guide-localization.xml#doc_chap3
j'ai rajouté ceci dans le fichier /etc/profile :
export LC_ALL="fr_FR" export LANG="fr_FR@euro"
puis faire bien sûr :
# source /etc/profile
redfox@gentoo ~ $ locale
LANG=fr_FR@euro
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=fr_FR
redfox@gentoo ~ $
redfox@gentoo ~ $ locale -a
C
français
french
fr_FR
fr_FR.iso88591
POSIX
redfox@gentoo ~ $
redfox@gentoo ~ $ env | grep -i LC_
LC_ALL=fr_FR
redfox@gentoo ~ $
bob031
Messages postés
8158
Date d'inscription
samedi 7 août 2004
Statut
Membre
Dernière intervention
1 septembre 2014
472
2 nov. 2008 à 13:09
2 nov. 2008 à 13:09
parfait !
:-)
:-)