On Mon, 2010-11-29 at 12:22 -0500, Anton Aylward wrote:
Roger Oberholtzer said the following on 11/29/2010 10:59 AM:
I'm not sure that you can set OOo to not use its own settings.
Like any proper Linux program, it uses the locale environment variables.
Not it doesn't As I said in an earlier message, I tried
$ LANG=de_DE oowriter
and because I had previously set the internal language to English (en_US) that what it stayed at. OOo ignored the environment.
Odd. I did the same with Russian and it worked. Of course, I had to be sure the Russian translations were installed. Before that the setting was ignored. This works on openSUSE 11.2. And I just tried it on openSUSE 11.4 M4 and LibreOffice and it works: LANG=ru_RU oowriter I just installed the German localization files for oo, and, it works too, using your command. Exactly as I described. Be sure you do not have any oo stuff already running. I think the first process sets the locale. If you start another oowriter, it seems to inherit the already running guy's locale. Do you have the oo quickstart running? I don't.
I have verified this. If KDE would propagate them, it would all work like magic. There is no need to configure openOffice to get the menus and all in language X.
That may be so, but the question I asked was a bit different. I have them set inside OOo; I can't see how to set them to 'nothing'. Presumably if I could then I could test to see if OOo paid attention at all to the value of LANG in its environment.
I have not changed anything in oo for locale. They are in their virgin state. Whatever that is. My changes are effected fully by LANG. In my case, set in my .bashrc file. But I see it also works on the command line as shown above.
I can't say how much further OO takes this into the documents you edit (spelling checks and paper size, for example). But the OO user interface correctly follows locale settings.
The screen at oowriter: tools -> options -> language setings -> language has
Language of User Interface -- Pulldown field Locale Setting -- Pulldown field
Neither pulldown has a 'nothing' or 'use enviroment' option. You HAVE to choose some setting.
The default is English (USA). I just tried on a system where oo had never been run. This is consistent with the general locale system where English is usually the default.
And as I said, with the envirment set to 'de_DE' they are both 'english' and 'german' does not apear as an option for the first.
I do not know that this would effect the items selected in the menu items here. But I know it effects the text in ALL oo menus.
From this I conclude that the OOo user interace DOES NOT follow lcoale settings.
Sorry I don't come to the same conclusion. LANG= works as expected. Provided the needed RPMs are installed. I can report the rpms I have on Thursday when I get back to the office. No translations are installed by default.
The screen also has
Default Languages for Documents: -- Pulldown field.
If I manually set that to 'german' -it isn't set by the environment - the yes the dcoument wants german text and spelling.
Carlos E. R. (earlier in this thread) says that GNOME propagates the locale info. Not that this would carry much weight in KDE circles, I guess.
OOo, Firefox, Thunderbird and a few others like Gimp and InkSkape are Gnome-native, not KDE native. I don't have Gnome laoded so I can't try out the obvious tests like "set langauge under Gnome the invoke under KDE".
But I suspect that there are many programmes that neither export not import from the environment.
This is true. The app has to support it. We are adding this to our software. That is why I am actively checking this. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org