Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
manny6
Posts: 19
Joined: 2018-04-11 22:26

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

#1 Post by manny6 »

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.

arzgi
Posts: 1193
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

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

#2 Post by arzgi »

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
       .....

manny6
Posts: 19
Joined: 2018-04-11 22:26

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

#3 Post by manny6 »

Thanks for the replay.

Post Reply