Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Saturday, July 21 2018 @ 10:53 AM BST

Forcing Application Bundle to run in a specific language?

   
Carbon Development FAQAny 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.
 

What's Related

Story Options

Forcing Application Bundle to run in a specific language? | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
 Copyright © 2018 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.05 seconds