Re: Localization Issue
Re: Localization Issue
- Subject: Re: Localization Issue
- From: Deborah Goldsmith <email@hidden>
- Date: Wed, 02 Jan 2008 13:46:42 -0800
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.
Deborah Goldsmith
Internationalization, Unicode Liaison
Apple Inc.
email@hidden
On Dec 24, 2007, at 4:59 AM, parag vibhute wrote:
I am referring to Technical Q&A QA1391. There apple has provided
following code:
NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
NSArray * languages = [defaults objectForKey:@"AppleLanguages"];
NSLog(@"%@\n", languages);
Apple also mentions that this will give different output on
different OS. My application runs on 10.3+, 10.4+ & 10.5+ OS. I run
the above code on these OS & found that on 10.3.7, for traditional
chinese language, above code retuns zh_TW while on 10.4 & 10.5 it
returns zh-Hant. My requirement is there any API by which I can get
older canonical form (like zh_TW) from new canonical form (like zh-
Hant)?
Please reply.
Regards,
Parag Vibhute
echo alclr.qzcefyptyqzepns@nzx | tr a-z@. p-za-o.@
_______________________________________________
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