To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=86470 Issue #|86470 Summary|Wrong Java locale when using the languagepacks "nl" an |d "fr" Component|framework Version|OOo 2.3.1 Platform|All URL| OS/Version|All Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|tm Reported by|clutz
------- Additional comments from [EMAIL PROTECTED] Tue Feb 26 13:01:13 +0000 2008 ------- Our custom UNO-component is written in java and for the sake of introducing localization in our component, we read the java-settings returned by java.util.Locale.getDefault().getLanguage(), which is a global setting inside the jvm managed by OOo. This global setting is not set correctly when the languag-settings of OOo are changed. I've got the followin settings: en_us version of OOo 2.3.1 on Windows with the additional language packages for de, nl and fr. The default locale of my Windows-System is "de" depending on the active language set in Tools->Options->Language Settings->User Interface, the following language is returned: for "English (US)" the language "en" is returned (OK), for "Netherland (Netherland)" the language "de" is returned (expected "nl"), for "France (France)" the language "de" is returned (expected "fr") for "Germany (Germany)" the language "de" is returned (OK) hence: all additionional language packages return "de" on my system. It seems that the locale is only set correctly when running in Englisch (US)-Mode and that for all other language the system setting is used. to prove this theory I changed the global locale of my windows system to "Netherland" with the result that for all additional language packages the Locale.getDefault().getLanguage() "nl" is returned. If you like to reproduce this behaviour, use the attached beanshell-macro. 1) select a language in Tools->Options->Language Settings->User Interface and close OOo. 2) open the attached document and press the button "Print Java Locale" --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]