| Summary: | Application menu is not localized correctly | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Sakis Kotisis <kotisis> | ||||
| Component: | SWT | Assignee: | Scott Kovatch <skovatch> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Silenio Quarti <Silenio_Quarti> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse.felipe, remy.suen, skovatch | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | 3.7 M5 | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Sakis Kotisis
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. |