Re: Localization not working based on region with en-US, en-UK and en lproj
Re: Localization not working based on region with en-US, en-UK and en lproj
- Subject: Re: Localization not working based on region with en-US, en-UK and en lproj
- From: Douglas Davidson <email@hidden>
- Date: Sun, 03 Feb 2013 08:15:50 -0800
The localization used is determined by matching the AppleLanguages list against the localizations available in the application's main bundle. In this case, the top entry in AppleLanguages is en, so that is the localization that will be used.
Douglas Davidson
On Feb 3, 2013, at 6:56 AM, Arun <email@hidden> wrote:
> Yes i am launching the the application between changes to the region.
>
> Not sure what is Application's preference domain? How can we set/unset this?
>
> The output of the defaults command as below.
>
> *$ defaults read com.yourcompany.Hello AppleLanguages*
> 2013-02-03 20:22:10.317 defaults[4084:903]
> The domain/default pair of (com.yourcompany.Hello, AppleLanguages) does not
> exist
>
> *$ defaults read com.yourcompany.Hello AppleLocale*
> 2013-02-03 20:22:13.093 defaults[4085:903]
> The domain/default pair of (com.yourcompany.Hello, AppleLocale) does not
> exist
> *
> $ defaults read -g AppleLanguages*
> (
> en,
> fr,
> de,
> ja,
> es,
> it,
> pt,
> "pt-PT",
> nl,
> sv,
> nb,
> da,
> fi,
> ru,
> pl,
> "zh-Hans",
> "zh-Hant",
> ko
> )
>
> *$ defaults read -g AppleLocale*
> en_US
>
>
> On Sun, Feb 3, 2013 at 7:39 PM, Keith Duncan <email@hidden> wrote:
>
>>> My project has
>>> 1. en_GB.lproj
>>> 2. en_US.lproj
>>> 3. en.lproj
>>> Directories. Each time even if I change region setting, always strings
>> from en.lproj directory is displayed.
>> Are you relaunching your application between changes to the region?
>>
>> Does your application’s preference domain have an overridden
>> AppleLanguages or AppleLocale value?
>>
>> What is the output of these commands:
>>
>> defaults read -g AppleLanguages
>> defaults read -g AppleLocale
>>
>> defaults read $YOUR_BUNDLE_IDENTIFIER AppleLanguages
>> defaults read $YOUR_BUNDLE_IDENTIFIER AppleLocale
>>
>> replacing the bundle identifier in the second as appropriate
>>
>> Cheers,
>> Keith
>>
>> _______________________________________________
>>
>> 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
> _______________________________________________
>
> 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
_______________________________________________
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