Re: How to get the native localization of zh_TW?
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.