• 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: How to get the native localization of zh_TW?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the native localization of zh_TW?


  • Subject: Re: How to get the native localization of zh_TW?
  • From: Florent Pillet <email@hidden>
  • Date: Fri, 14 Nov 2003 10:22:00 +0100

Use the Locale Utilities. What you want is first obtain a LocaleRef using LocaleRefFromLocaleString(), then obtain the "real name" using LocaleGetName(). You can even obtain all the localized variants of the locale name using LocaleGetIndName(). And this works on OS 8/9, and 10.0+.

Florent


On 13 nov. 03, at 18:52, Stiphane Sudre wrote:

There must be a bug in the code I wrote to localize the English name to the localized name (I'm using both EnglishToISO.strings and Language.strings to do this).

Maybe CFLocaleCreateCanonicalLocaleIdentifierFromString is doing this and would spare some locs but I need 10.1-10.2 compatibility.

--
Florent Pillet, Code Segment email@hidden
Developer tools and end-user products for Palm OS & Mac OS X
ICQ: 117292463 http://perso.wanadoo.fr/fpillet
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: How to get the native localization of zh_TW? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: "Warp" effect?
  • Next by Date: Re: Migrating to keyed archiving...?
  • Previous by thread: Re: How to get the native localization of zh_TW?
  • Next by thread: Re: How to get the native localization of zh_TW?
  • Index(es):
    • Date
    • Thread