• 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: changing locale
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing locale


  • Subject: Re: changing locale
  • From: Alexander Cohen <email@hidden>
  • Date: Tue, 10 Jun 2008 22:01:53 -0400


On Jun 10, 2008, at 8:50 PM, Douglas Davidson wrote:


On Jun 10, 2008, at 5:42 PM, Alexander Cohen wrote:

Thats what i though but here is my problem, and i'm sure im not the only who has it. I am currently working on localizing apps for mulitple languages. I would like to have an easy way to set the locale without going into the system prefs and trying once again to guess which settings i need to change to get my locale to zh_CN, or zh_TW, KO or anything else.

Locale is not the same as localization. It sounds like what you are interested in is localization. If you want to launch a specific application instance in a specific localization, you can do so by specifying command-line arguments. For example,


/Applications/TextEdit.app/Contents/MacOS/TextEdit -AppleLanguages "(de)"

will launch TextEdit in German. You should also be able to set command-line arguments in Xcode. The first argument here is - AppleLanguages, the name of the default. The second is an array of strings, so that you could (for example) use "(de,en)" to specify a preference order of German first, English second. The quotes are for the shell.

Nice, i didnt know that. Im not sure this completely fullfills my needs, but it will do for now.


thx

AC
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >changing locale (From: Alexander Cohen <email@hidden>)
 >Re: changing locale (From: Deborah Goldsmith <email@hidden>)
 >Re: changing locale (From: Alexander Cohen <email@hidden>)
 >Re: changing locale (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Where are window prefs stored?
  • Next by Date: Re: Spotlight sources w/o actual files?
  • Previous by thread: Re: changing locale
  • Next by thread: NSSlider responding to superview's drawRect
  • Index(es):
    • Date
    • Thread