Re: calling nibtool in Objective-C code ?
Re: calling nibtool in Objective-C code ?
- Subject: Re: calling nibtool in Objective-C code ?
- From: email@hidden
- Date: Wed, 28 Jun 2006 08:52:30 +0200 (CEST)
- Importance: Normal
>
> We have menu titles called "Undo" that are localised fine without any
> trouble at all.
Yes, for languages that have good builtin support within Mac OS X. But
I'm localizing my apps for Breton. What happens is that when the Mac
does not know the Breton translation for an automatically localized feature,
it looks for the next preferred language.
>What built-in rules are you referring to?
To summarize (if Breton is the preferred language) :
1) If you just replace "Undo" and "Redo" with their Breton equivalents
in the MainMenu.nib(br) file, it will be simply ignored at runtime, because
NSApplication will rewrite the item titles when launching, consulting
NSUndoManager.
2) If you go one step further and override the
redoMenuTitleForUndoActionName: and
undoMenuTitleForUndoActionName: in NSUndoManager,
the menu items will be translated correctly
* only when enabled* ; otherwise they are displayed in
the second preferred language again.
AFAIK, this not-very-clean subclassing of NSApplication is
the only way to solve my problem with my version of
Mac OS X (10.4.0).
Ewan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden