Forcing Application Bundle to run in a specific language?

Wednesday, October 12 2005 @ 04:47 AM UTC

Contributed by: ivan_tan

Any idea how to force an Application Bundle to run in a specific language (other than the OS's UI language), maybe though command line parameters, etc.?

The order of languages is stored in ~/Library/Preferences/.GlobalPreferences.plist, under the key AppleLanguages as an array of strings:


	<key>AppleLanguages</key>
	<array>
		<string>fr</string>
		<string>en</string>
		<string>es</string>
		<string>de</string>
		<string>pt</string>
		<string>ja</string>
		<string>it</string>
		<string>nl</string>
		<string>sv</string>
		<string>nb</string>
		<string>da</string>
		<string>fi</string>
		<string>zh-Hans</string>
		<string>zh-Hant</string>
		<string>ko</string>
	</array>
If you write a tool to change that default on the fly before launching the targeted application or if writing a Cocoa application before entering the NSApplicationMain you should be able to change the language for this particular application.

0 comments



http://www.macosxguru.net/article.php?story=20051012054725315