• 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
Re: localization Q
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >localization Q (From: John Mikros <email@hidden>)

  • Prev by Date: Re: Determining current language
  • Next by Date: What's the difference...
  • Previous by thread: localization Q
  • Next by thread: Define NSError Domain
  • Index(es):
    • Date
    • Thread