Is there a way of setting the language in a per user basis?

New to Debian (Or Linux in general)? Ask your questions here!

Is there a way of setting the language in a per user basis?

Postby manny6 » 2018-08-08 04:40

I have a friend how speaks Spanish, and i want to set up an account on my computer for her in Spanish, while keeping the root account and my user account in English.

Is there a way of setting the language in a per user basis?

I'm using Debian 9 stable.
manny6
 
Posts: 19
Joined: 2018-04-11 22:26

Re: Is there a way of setting the language in a per user bas

Postby arzgi » 2018-08-08 06:51

manny6 wrote:I have a friend how speaks Spanish, and i want to set up an account on my computer for her in Spanish, while keeping the root account and my user account in English.

Is there a way of setting the language in a per user basis?

I'm using Debian 9 stable.


Code: Select all
man locale
      ....
       The following example compiles a custom locale from the ./wrk directory
       with  the  localedef(1) utility under the $HOME/.locale directory, then
       tests the result with the date(1) command, and then sets  the  environ‐
       ment  variables  LOCPATH and LANG in the shell profile file so that the
       custom locale will be used in the subsequent user sessions:

       $ mkdir -p $HOME/.locale
       $ I18NPATH=./wrk/ localedef -f UTF-8 -i fi_SE $HOME/.locale/fi_SE.UTF-8
       $ LOCPATH=$HOME/.locale LC_ALL=fi_SE.UTF-8 date
       $ echo "export LOCPATH=\$HOME/.locale" >> $HOME/.bashrc
       $ echo "export LANG=fi_SE.UTF-8" >> $HOME/.bashrc
       .....
arzgi
 
Posts: 389
Joined: 2008-02-21 17:03
Location: Finland

Re: Is there a way of setting the language in a per user bas

Postby manny6 » 2018-08-08 22:41

Thanks for the replay.
manny6
 
Posts: 19
Joined: 2018-04-11 22:26


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable