Roger Oberholtzer said the following on 11/26/2010 07:56 AM:
When I want to switch to a new locale, I need to make multiple changes:
1. Select the locale in KDE (Configure Desktop -> Locale). This results on all KDE using that locale.
But that is not enough to make everything use the new locale.
2. Add LANG=whatever to my .bashrc file.
As an example, if I do step 1, the openOffice ICON is in the language of the KDE locale. However, openOffice itself fill not be in that locale unless I do step 2. This applies to all non-KDE applications. The 'locale' command in a Konsole, for example, does not reflect the KDE setting done in step 1. It will be correct only if I do step 2.
The editing of .bashrc seems the odd step. Am I missing something?
This is what I observe and deduce. A 'ps -ef' gives me root 3145 3067 0 07:34 ? 00:00:00 -:0 anton 4091 3145 0 07:46 ? 00:00:00 /bin/sh /usr/bin/startkde I look at cat /proc/4091/environ| tr '\000' '\n' (so as to see the strings) and I don't see any environment setting there. That's becuase I don't have anything in my ~/.xinitrc So any application I start from the menu or ~/.kde4/Autostart or session restart isn't going to have that set either. There's a Q.E.D. at this point, but lets look furhter. I have a Konsole open. anton 4726 1 0 07:47 ? 00:00:08 kdeinit4: konsole [kdeinit] -session 10b1e26742000125046551500000039700025_1290902959_343241 -name Qt-subapplication and that doesn't have a LANG either. You may want to check various bashrc.local and bashrc.expert along the way, though. But the shells I start under the Konsole ... anton 4735 4726 0 07:47 pts/2 00:00:00 /bin/bash anton 4741 4726 0 07:47 pts/0 00:00:00 /bin/bash anton 4747 4726 0 07:47 pts/1 00:00:00 /bin/bash anton 4753 4726 0 07:47 pts/3 00:00:00 /usr/bin/ssh -l root localhost each has LANGUAGE= LANG=en_US.UTF-8 in their environment. So, starting applications from the KDE menu, not least of all Gnome applications like OpenOfice, Thunderbird, Firefox and Gimp, won't set the LANG environment. They are started directly. OH WAIT! In the menu editor there is the option Advanced -> Run In Terminal [] and options for therein. perhaps running from a terminal (which means a shell) will set the environment from ~/.bashrc before starting the application. Why not try that ? But that won't help with session restore? Or will it? Either way, putting something in ~/.xinitrc that is shared with or calls or sources ~/.bashrc might be more useful and more generic.. -- "Realizing the importance of the case, my men are rounding up twice the number of usual suspects" - Cpt Renault to Major Strasser, Cassablanaca -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org