Localize Hide / Show menu?
Localize Hide / Show menu?
- Subject: Localize Hide / Show menu?
- From: email@hidden
- Date: Mon, 3 Dec 2001 17:11:35 +0100
I would like to distract the list, and Ondra in particular, from a quite
sterile discussion on the number of classes in a good project ;-) (that
reminds me a well known debate on the number of angels that can sit on the
top of the pin, you know), by asking a real question about toggling menu
like:
Hide something /Show something
I know how to handle these menus, but my question is: how do you properly
localize them? For standard menus, it is just a matter of translating the
menu item in IB. But for these one, you have to choose between one of the
form in the mainMenu.nib file, and where is the other one? If in
localizable.strings, it seems difficult to link the two form together...
Also it is not safe to assume that only the first word change, this
depends on the language.
My solution (please don't laugh) is to put the whole string
"Hide something/Show something"
in the menu and then programmatically separate it by components in
validateMenuItem (in particular I assume that the real menu menu items
doesn't contain a slash).
What do you think of that? is there a better solution?
Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.