Community
Participate
Working Groups
Build Identifier: 3.6 Helios Release The Cocoa application menu obeys the "-nl" argument only for the "About", "Quit" and "Hide" menu items. The rest of the items, as well as the "Help>Search" menu item are shown in the preferred system language. Reproducible: Always Steps to Reproduce: 1. Set a language different from English (e.g. Greek) as system default from Preferences 2. Open Eclipse with -nl en_US 3. Notice the application menu
Created attachment 186428 [details] Eclipse application menu if German is set as preferred language
Scott, would you know if the untranslate menu items are created by the OS ?
About, Quit and Hide are all controlled by Platform UI, and they load the strings from a resource bundle, which uses the default Java locale. SWT is not -- we just call the pathForResource variant that doesn't specify a locale, and that just loads the right nib for the current OS language. We should get the Java locale and use that, as it gets overridden by -nl and falls back to the OS by default.
Don't know if this is of any help, but this bug does not seem to happen on Carbon.
(In reply to comment #4) > Don't know if this is of any help, but this bug does not seem to happen on > Carbon. The Java VM syncs the Java locale to the OS locale. In Carbon the menu manager gives you an application menu, fully localized. In Cocoa, however, the application loads the menu, so we have to do the work ourselves. This is now fixed > 20110111. We'll now pick up whatever you specify with -nl, and fall back to the OS language if the specified language isn't available. We fall back to English if neither the language picked with -nl nor the OS language have no translation of the default nib. See /System/Library/Frameworks/JavaVM.framework/Resources for the localizations provided by Apple for the application menu.
Thank you, Scott. Any idea what target this could be included in?
(In reply to comment #6) > Thank you, Scott. Any idea what target this could be included in? 3.7M5, but look for an I-build soon to see it sooner.