• 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 Issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localization Issue


  • Subject: Re: Localization Issue
  • From: Deborah Goldsmith <email@hidden>
  • Date: Wed, 02 Jan 2008 22:46:45 -0800

http://en.wikipedia.org/wiki/Canonicalization

Deborah Goldsmith
Internationalization, Unicode Liaison
Apple Inc.
email@hidden

On Jan 2, 2008, at 10:36 PM, parag vibhute wrote:

Thanks for reply.

You both have mentioned terms "canonicalization" & I also have read this in API reference but I have not understood what does this term means. Can you please explain this?

Thanks,
Parag

On Jan 3, 2008 5:09 AM, Douglas Davidson <email@hidden> wrote:

On Jan 2, 2008, at 1:46 PM, Deborah Goldsmith wrote:

> There is no way to go from the newer form to the older form. You can
> use CFLocaleCreateCanonicalLanguageIdentifierFromString to go from
> the older forms to the preferred version (on 10.4 or later). If
> you're running on 10.3, that API is not available.
>
> You can also use APIs on NSBundle/CFBundle to avoid having to do
> this canonicalization yourself. That's the best option.

Yes, this is a good illustration of why you usually don't want to use
the AppleLanguages default directly.  You can use
CFBundleCopyPreferredLocalizationsFromArray() and
CFBundleCopyLocalizationsForPreferences() to do most of what you might
want to do with the contents of this default, without having to deal
with canonicalization issues, and you automatically get to match the
standard CFBundle behavior.

Douglas Davidson




--

There are many things in your life that will catch your eye but only a few will catch your heart....pursue those'.

_______________________________________________

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


References: 
 >Re: Localization Issue (From: Deborah Goldsmith <email@hidden>)
 >Re: Localization Issue (From: Douglas Davidson <email@hidden>)
 >Re: Localization Issue (From: "parag vibhute" <email@hidden>)

  • Prev by Date: Re: Localization Issue
  • Next by Date: SOLVED: How to disallow user from selecting locked folders
  • Previous by thread: Re: Localization Issue
  • Next by thread: Multiple windows per document and NSUndoManager
  • Index(es):
    • Date
    • Thread