Re: localization Q
Re: localization Q
- Subject: Re: localization Q
- From: Douglas Davidson <email@hidden>
- Date: Mon, 26 Sep 2005 13:40:19 -0700
On Sep 23, 2005, at 4:22 PM, John Mikros wrote:
However, there are places where Cocoa localizes things for us, and
I need to be able to tell it programmatically what language to use
in these cases.
For example, all the items under the Apple menu; Undo and Redo;
Special Characters under Edit. These will get localized to the
language set as the Development Region in the Info.plist or to the
top language in System Preferences if Development Region is set to
"Global".
Is there an API to tell cocoa what language to use for menus that
it manages?
There is no API for this, primarily because it needs to be determined
very early in launch. It can be controlled, however, by setting the
AppleLanguages default for your application, either in user defaults
or on the command line. For example, launching with
/Applications/MyApp.app/Contents/MacOS/MyApp -AppleLanguages
"(de,en)"
will launch your application in German.
Douglas Davidson
_______________________________________________
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