• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Localize Hide / Show menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Localize Hide / Show menu?
      • From: Stéphane Sudre <email@hidden>
References: 
 >Hide Toolbar not toggling to Show Toolbar (From: Gonzalo Castro <email@hidden>)

  • Prev by Date: RE: Question
  • Next by Date: RE: Question
  • Previous by thread: Hide Toolbar not toggling to Show Toolbar
  • Next by thread: Re: Localize Hide / Show menu?
  • Index(es):
    • Date
    • Thread