• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Localization not working based on region with en-US, en-UK and en lproj
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Arun <email@hidden>
  • Date: Sun, 03 Feb 2013 22:05:00 +0530

How can we make the application to use locale based localization? The apple
documentation tells that first locale based folders are searched.
On Feb 3, 2013 9:45 PM, "Douglas Davidson" <email@hidden> wrote:

> 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


  • Follow-Ups:
    • Re: Localization not working based on region with en-US, en-UK and en lproj
      • From: "Gary L. Wade" <email@hidden>
References: 
 >Localization not working based on region with en-US, en-UK and en lproj (From: Arun <email@hidden>)
 >Re: Localization not working based on region with en-US, en-UK and en lproj (From: Kyle Sluder <email@hidden>)
 >Re: Localization not working based on region with en-US, en-UK and en lproj (From: Keith Duncan <email@hidden>)
 >Re: Localization not working based on region with en-US, en-UK and en lproj (From: Arun <email@hidden>)
 >Re: Localization not working based on region with en-US, en-UK and en lproj (From: Keith Duncan <email@hidden>)
 >Re: Localization not working based on region with en-US, en-UK and en lproj (From: Arun <email@hidden>)
 >Re: Localization not working based on region with en-US, en-UK and en lproj (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Localization not working based on region with en-US, en-UK and en lproj
  • Next by Date: Re: Localization not working based on region with en-US, en-UK and en lproj
  • Previous by thread: Re: Localization not working based on region with en-US, en-UK and en lproj
  • Next by thread: Re: Localization not working based on region with en-US, en-UK and en lproj
  • Index(es):
    • Date
    • Thread