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.
Douglas Davidson _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]