Opensuse: can you add users with different language?
Does anyone know if in opensuse it is possible to add a user with a different language than root. I mean, that every user can open his desktop in his specific language? I am root+user in dutch. But my wife is Brazilian, and I want to give her a user account completely in Portuguese. Is this possible?
|
seems that it would be a given
see http://elibrary.fultus.com/technical...a.y2.lang.html if you're using kde open kcontrol -> region and accesibility -> country/region & language if using gnome check in it's control center |
Quote:
Some desktops, like kde, have specific support for languages. In kde you can install support for lots of languages by installing the kde-i18n package. It can be a big package or it can be a set of small packages (one per language) depending on your distro. In any case, once you have installed the language packages, you can change the localization settings from kcontrol (the kde control panel). I don't know if there's something similar in gnome or xfce. For the rest of the system, the language and localization settings are usually controlled by the value of the LC_* variables. To check the currect value, you have to open an xterm (or operate in plain command line) and do type this command: Code:
$ locale http://jesgue.homelinux.org/other-files/gimp-es_ES.jpg On the contrary, if I use the C locale, this is what I get: http://jesgue.homelinux.org/other-files/gimp-C.jpg As you can see, you can temporarily change the locale to run a single command, like this: Code:
$ LC_ALL=C gimp The next piece of the puzzle is to find a correct locale for your wife. To see the available locales, you can use this command to see the available locales: Code:
$ locale -a I advise you to use utf8 locales from now on, since that's what the future will bring us anyway, and using any other thing is not smart nowadays unless you have a given purpose in mind. So, i'd just use pt_BR.utf8. If that locale is not on the list of available locales, you will need to build it yourself. The list of locales is stored into /etc/locale.gen. I share mine as a example: Code:
es_ES ISO-8859-15 Then as root you need to run: Code:
$ locale-gen Code:
LC_ALL=<chosen locale> gimp Now the problem is how to setup it widely for the current user. Each distro has a different way to do this. But if you want to set this locale only for your wife, there's an easy way. On the command line department, you just need to include a couple of lines in these two files on her home dir: ~/.bashrc and ~/.bash_profile, the lines are: Code:
# Localization This might not work for X programs if you login directly into X, though. In that case, you should check the documentation for your distribution. Most distros heavily document the localization process. It's a common procedure. |
Thanks
Thank you very much for the reply. It was very helpful!
|
All times are GMT -5. The time now is 05:02 AM. |