Re: diable localization
Re: diable localization
- Subject: Re: diable localization
- From: John Joyce <email@hidden>
- Date: Thu, 07 Apr 2011 11:20:31 +0900
On Apr 6, 2011, at 4:43 PM, Felix Franz wrote:
>
> On Apr 5, 2011, at 3:55 PM, Georg Seifert wrote:
>
>> Hi,
>>
>> I what to give my users the possibility to disable the localization of my app. Is there a way to tell the system (NSBundle?) to always load the english nibs?
>
> Just read http://homepage.mac.com/mmalc/Stepwise/Internationalization/ it mentions the command line switch:
>
> $ /Applications/TextEdit.app/Contents/MacOS/TextEdit -AppleLanguages "(Spanish)"
>
> this is a normal default, so
>
> $ defaults write com.apple.TextEdit AppleLanguages "(Spanish)"
>
> should work, or set the argument/default inside the main function before calling NSApplicationMain
>
> Grüße,
>
> Felix
>
Normally the defaults are empty for this and the app will load the first localized nib found in priority based on the System Preferences preferred language setting for the user account.
However, you can also specify a language in your plist and you can specify it in your app's code.
_______________________________________________
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