Issue 93983 - Aqua: native dialogs have wrong language in multilingual installations
Summary: Aqua: native dialogs have wrong language in multilingual installations
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOO300m5
Hardware: Mac Mac OS X, all
: P3 Trivial (vote)
Target Milestone: OOo 3.0
Assignee: joerg.skottke
QA Contact: issues@porting
URL:
Keywords: aqua
Depends on:
Blocks:
 
Reported: 2008-09-17 12:27 UTC by hdu@apache.org
Modified: 2008-10-21 13:36 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hdu@apache.org 2008-09-17 12:27:23 UTC
In a multilingual OOo Aqua installation (de_en-US_es_fr_hu_it_nl_pl_pt_pt-BR_ru_sv) the language of 
native dialogs seems to be french. OOo's builtin dialogs have the correct language: the system language.
Comment 1 hdu@apache.org 2008-09-17 12:57:57 UTC
@obr: you once implemented the *.lproj bundles. Any idea how to set the preference to the current 
language?
Comment 2 hdu@apache.org 2008-09-17 13:24:18 UTC
http://commons.oreilly.com/wiki/index.php/Learning_Cocoa_with_Objective-
C/Miscellaneous_Topics/Localization#Localized_Resource_Search_Algorithm
suggests that changing the names of the *.lprol files to their counterparts in
Apple->SystemPreferences->International->Language might solve the problem. Experimentally 
renaming some lproj-files seem to confirm this.

@obr: is this the correct fix?
@is: please change *.lproj file names in the bundle
Comment 3 nospam4obr 2008-09-17 13:55:55 UTC
I am not sure I understand the suggested fix correctly, but if it is to rename
e.g. "en" to "English", then this needs to be evaluated carefully, because 

http://developer.apple.com/documentation/MacOSX/Conceptual/BPInternational/Articles/LanguageDesignations.html#//apple_ref/doc/uid/20002144-130435

states that "Although these names are still recognized and processed by CFBundle
and NSBundle, their use is deprecated and support for them in future versions of
Mac OS X is not guaranteed."
Comment 4 ingo.schmidt-rosbiegal 2008-09-17 14:31:12 UTC
Tests showed, that there are problems with the directory "en-US.lproj". Renaming
this to "en-US.lproj" solves this problem.
After discussion with MH this is relevant for OOo 3.0 and will be fixed in cws
native199.
Comment 5 hdu@apache.org 2008-09-17 14:36:04 UTC
@obr: thanks for the pointer!
@is: 
http://developer.apple.com/documentation/MacOSX/Conceptual/BPInternational/Articles/LanguageDesig
nations.html/apple_ref/doc/uid/20002144-SW1 suggests that
en_US.lproj should work (currently we have en-US.lproj). Is replacing the minus with an underline the best 
solution for that problem?
Comment 6 ingo.schmidt-rosbiegal 2008-09-17 15:06:41 UTC
No, en_US.lproj was not successful, too. I will use en.lproj.
Comment 7 ingo.schmidt-rosbiegal 2008-09-17 15:34:28 UTC
Hm,

setting the system language to "US English" instead of "English", both versions,
en-US.lproj and en_US.lproj, work fine. But using "English" as system language
requires an en.lproj. So, to avoid problems for all people using "English"
(which is more visible in language selection), the fix could be to use always
en.lproj instead of en-US or en_US. 
Comment 8 ingo.schmidt-rosbiegal 2008-09-17 16:29:13 UTC
Fixed in cws native199.
Comment 9 ingo.schmidt-rosbiegal 2008-09-17 16:29:55 UTC
is -> jsk: please verify in cws native199.
Comment 10 joerg.skottke 2008-09-18 14:51:21 UTC
Verified
Comment 11 joerg.skottke 2008-10-21 13:36:44 UTC
Directory is called en.lproj and others are named after similar naming scheme.
Closing.