For some localizations, "Hide Toolbar" and "Show Toolbar" menu texts do not toggle
| Originator: | barijaona | ||
| Number: | rdar://18043453 | Date Originated: | 08/17/2014 |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | Xcode 5.1.1 (5B1008) and OS X 10.9.4 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary:
It is very difficult to correctly localize the menubar when it contains the usual menu items "Hide Toolbar" and "Customize Toolbar..."
More specifically, the "Hide Toolbar" and "Show Toolbar" texts would not switch correctly.
For instance, in the French version of an app, the menu text would be stuck to "Afficher la barre d'outils" instead of switching to "Masquer la barre d'outils" as it should.
The problem can for instance be seen in Cyberduck (FTP client) and Transmission (Bittorrent client).
It was also present in Vienna (RSS reader), and I had to subclass NSWindow to solve it. Discussion and references here : https://github.com/ViennaRSS/vienna-rss/issues/288
Steps to Reproduce:
1. In Xcode 5.1.1, create a new Cocoa application
2. Inside MainMenu.xib, select the window and drag and drop a Toolbar object inside it
3. In project's settings -> Localizations, add Spanish (es) and French (fr)
4. Build the app, and test it under the different localizations.
Expected Results:
In French, menu text should automatically switch between "Masquer la barre d'outils" ("Hide Toolbar") and "Afficher la barre d'outils" ("Show Toolbar"), depending on the toolbar being visible or not.
Actual Results:
It's OK in English, but even if you adapt the .strings to match Apple's usages, the text of the menu item will not change in Spanish and in French.
Version:
Xcode 5.1.1 (5B1008) and OS X 10.9.4
Notes:
My workaround here : https://github.com/barijaona/vienna-rss/commit/de803c107ca4098fb68f60a2138bc43c8ad23a02
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!