[opensuse-kde] Configured non-english language, but still english in Firefox and Gimp
Hello, i installed opensuse-12.1 with german language and in a test users KDE/systemsettings/Locale the preferred language was set to German. In Yast/System/Language the primary language is german, too. So the test users KDE programs are in german, but at least Firefox and Gimp still have english user interface. In /etc/sysconfig/language i see: ----------------------------------- # Local users will get RC_LANG as their default language, i.e. the # environment variable $LANG . $LANG is the default of all $LC_*-variables, # as long as $LC_ALL is not set, which overrides all $LC_-variables. # Root uses this variable only if ROOT_USES_LANG is set to "yes". # RC_LANG="de_DE.UTF-8" ------------------------------------ But the test users "locale" says: ----------------------------------- LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME=de_DE.utf8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=de_DE.utf8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=de_DE.utf8 LC_NAME=de_DE.UTF-8 LC_ADDRESS=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=de_DE.UTF-8 LC_ALL= ----------------------------------- I can workaround this by calling e.g. "LANG=de_DE.UTF-8 ; firefox" on the command line. Or i can fix it permanentely in ~test-user/.profile: -------------------------------------- # Most applications support several languages for their output. # To make use of this feature, simply uncomment one of the lines below or # add your own one (see /usr/share/locale/locale.alias for more codes) # This overwrites the system default set in /etc/sysconfig/language # in the variable RC_LANG. # export LANG=de_DE.UTF-8 # uncomment this line for German output -------------------------------------- But why do i have to do that, why is RC_LANG in /etc/sysconfig/language not recognized? Is it a bug, or do i miss something? Jan -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-12-29 21:25, Jan Kolarik wrote:
Or i can fix it permanentely in ~test-user/.profile:
I think the proper place is ~test-user/.i18n. And there is also the variable "KDE_LANG", but it did not work right the last time I tried. - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk78698ACgkQtTMYHG2NR9WedwCZAYHjV1EwWg+01Otq2sTUtFy1 aJUAn2DfpTwwusA2O8CDqKGsVZpDE83l =t93A -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org
On Thu, 2011-12-29 at 21:25 +0100, Jan Kolarik wrote:
Hello,
i installed opensuse-12.1 with german language and in a test users KDE/systemsettings/Locale the preferred language was set to German. In Yast/System/Language the primary language is german, too.
So the test users KDE programs are in german, but at least Firefox and Gimp still have english user interface.
I found that you need to set the language in your .bashrc file. For example, I had to add this to my file to get all non-KDE apps to be Russian: export LANG=ru_RU.UTF-8 I suspect you need this in yours: export LANG=de_DE.UTF-8 This effects GNOME apps, as well as character-based apps. Switching languages requires changing the KDE and .bashrc setting. Since it is your .bashrc, you will need to log out/in to get the non-KDE apps to follow suite. FYI, I had a discussion here about this a year or so ago. This was the advice I got. And it works as advertised.
In /etc/sysconfig/language i see: ----------------------------------- # Local users will get RC_LANG as their default language, i.e. the # environment variable $LANG . $LANG is the default of all $LC_*-variables, # as long as $LC_ALL is not set, which overrides all $LC_-variables. # Root uses this variable only if ROOT_USES_LANG is set to "yes". # RC_LANG="de_DE.UTF-8" ------------------------------------
But the test users "locale" says: ----------------------------------- LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME=de_DE.utf8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=de_DE.utf8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=de_DE.utf8 LC_NAME=de_DE.UTF-8 LC_ADDRESS=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=de_DE.UTF-8 LC_ALL= -----------------------------------
I can workaround this by calling e.g. "LANG=de_DE.UTF-8 ; firefox" on the command line.
Or i can fix it permanentely in ~test-user/.profile: -------------------------------------- # Most applications support several languages for their output. # To make use of this feature, simply uncomment one of the lines below or # add your own one (see /usr/share/locale/locale.alias for more codes) # This overwrites the system default set in /etc/sysconfig/language # in the variable RC_LANG. # export LANG=de_DE.UTF-8 # uncomment this line for German output --------------------------------------
But why do i have to do that, why is RC_LANG in /etc/sysconfig/language not recognized? Is it a bug, or do i miss something?
Jan
-- Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org
On Friday, December 30, 2011 01:16:49 PM Roger Oberholtzer wrote:
I found that you need to set the language in your .bashrc file. For example, I had to add this to my file to get all non-KDE apps to be Russian:
export LANG=ru_RU.UTF-8
I suspect you need this in yours:
export LANG=de_DE.UTF-8
This effects GNOME apps, as well as character-based apps. Switching languages requires changing the KDE and .bashrc setting. Since it is your .bashrc, you will need to log out/in to get the non-KDE apps to follow suite.
FYI, I had a discussion here about this a year or so ago. This was the advice I got. And it works as advertised.
With a little more work you can have just selected applications starting in a language of your choice directly from GUI. I did that for fun with Konqueror starting in German. Basic is that shell command: LANG=de_DE.UTF-8 konqueror will start Konqueror with German translations, provided they are installed. To have entry in KDE menu called Konqueror-de: * Right click Main Menu and select Edit. This opens Menu Editor. * Find Konqueror in Applications > Internet > Browsing * Right click on Konqueror and from the list select Copy . * Right click and from the list select Paste. This will create new entry Konqueror-2. The right side of the editor window will show exact copy of Konqueror entry. * Change entry "Command line" to LANG=de_DE.UTF-8 konqueror * Save, close editor. This way is useful if user needs only few applications in a different language. In general: * If you have to switch only on occasions to different language, then changing .bashrc is ok, as it requires to stop any work and log out and back in. * If you have to switch frequently and fast, then another user with .bashrc pointing to another language is the way. Then you start another session with that user. Switching between Sessins (users) can be done with ctrl-alt-F7 and ctrl-alt-F8 . * If you have to copy paste between languages, then having applications started from command line with LANG prefixing actual binary, as described above, is the only way I know. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org
On Fri, 2011-12-30 at 09:57 -0600, Rajko M. wrote:
On Friday, December 30, 2011 01:16:49 PM Roger Oberholtzer wrote:
I found that you need to set the language in your .bashrc file. For example, I had to add this to my file to get all non-KDE apps to be Russian:
export LANG=ru_RU.UTF-8
I suspect you need this in yours:
export LANG=de_DE.UTF-8
This effects GNOME apps, as well as character-based apps. Switching languages requires changing the KDE and .bashrc setting. Since it is your .bashrc, you will need to log out/in to get the non-KDE apps to follow suite.
FYI, I had a discussion here about this a year or so ago. This was the advice I got. And it works as advertised.
With a little more work you can have just selected applications starting in a language of your choice directly from GUI. I did that for fun with Konqueror starting in German. Basic is that shell command:
LANG=de_DE.UTF-8 konqueror
will start Konqueror with German translations, provided they are installed.
Of course. But it gets tiring when you want everything to be that way. The .bashrc solution makes for a consistent language change, whether starting a GUI app via a mouse click, or a character app in a GUI console. It also ensures that programs started by other programs get the setting. In that case, you seldom get to intervene. -- Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org
participants (4)
-
Carlos E. R.
-
Jan Kolarik
-
Rajko M.
-
Roger Oberholtzer