Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launch an application with a specific language



On Jan 27, 2004, at 12:23 PM, Jean Bovet wrote:

Is there any way in Cocoa (or in Carbon) to launch an application (from a Cocoa application) by specifying a specific localization language ? It can be useful when localizing an application to be able to launch it in another language than the current one specified in the system preferences...

Yes, certainly, by using command-line arguments. Try this from a shell:

/Applications/TextEdit.app/Contents/MacOS/TextEdit -AppleLanguages "(fr, en)"

The value, e.g. "(fr, en)", must be an array of strings indicating the localizations in preference order. The quotation marks are necessary to protect the value from the shell.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Launch an application with a specific language (From: Jean Bovet <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.