Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[localisation] Langue différente selon user (Résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
lefoid
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 232

PostPosted: Fri Oct 24, 2008 7:42 am    Post subject: [localisation] Langue différente selon user (Résolu) Reply with quote

Bonjour à tous
J'ai 2 utilisateurs, Titi et Toto. Titi est allemand et Toto est français.
Je souhaite que le user Toto ait toute sa session en français, et que
le user Titi ait toute sa session en allemand.
Est-ce possible ? Comment ?
J'ai mis dans le make.conf :
Code:
LINGUAS="fr de"

J'ai lancé un :
Code:
locale-gen

après avoir modifié le /etc/locale.gen avec fr_FR... et de_DE...
Suffit-il de mettre de_DE@....
dans le .bashrc de l'utilisateur correspondant ou y a-t-il une manip
supplémentaire à faire ?
Merci.
_________________
Visi pas nette, pilote à la buvette !


Last edited by lefoid on Fri Oct 24, 2008 10:33 am; edited 1 time in total
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Fri Oct 24, 2008 9:37 am    Post subject: Reply with quote

Salut,

D'après le guide de localisation :
Quote:
It's also possible, and pretty common especially in a more traditional UNIX environment, to leave the global settings unchanged, i.e. in the "C" locale. Users can still specify their preferred locale in their own shell RC file:

Code Listing 3.2: Setting the user locale in ~/.bashrc wrote:

export LANG="de_DE.utf8@euro"
export LC_COLLATE="C"


Once you have set the right locale, be sure to update your environment variables to make your system aware of the change:


Code Listing 3.4: Update the environment wrote:

(For system-wide default locale:)
# env-update && source /etc/profile

(For user-specific locale:)
$ source ~/.bashrc

After this, you will need to kill your X server by pressing Ctrl-Alt-Backspace, log out, then log in as user.

Now, verify that the changes have taken effect:

Code Listing 3.5: Verify env changes wrote:


$ locale

Back to top
View user's profile Send private message
lefoid
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 232

PostPosted: Fri Oct 24, 2008 10:33 am    Post subject: Reply with quote

Merci netfab
Il me manquait le :
Code:
LC_COLLATE="C"

Alles gut :wink:
Merci encore.
_________________
Visi pas nette, pilote à la buvette !
Back to top
View user's profile Send private message
lefoid
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 232

PostPosted: Sat Oct 25, 2008 10:45 am    Post subject: Reply with quote

Pour préciser encore un peu plus, si ça intéresse d'autres personnes,
il faut modifier le fichier :
Quote:
~/.dmrc

avec la variable locale que l'on souhaite, sinon, il prend celle de GDM par
défaut.
Par ailleurs, pour Firefox et Thunderbird, il faut aller modifier dans le about:config
la valeur
Quote:
general.useragent.locale

avec la valeur voulue.
(Préférences/Avancé/Editeur de configuration)
A + ...
_________________
Visi pas nette, pilote à la buvette !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum