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

Localization Issue


  • Subject: Localization Issue
  • From: parag vibhute <email@hidden>
  • Date: Mon, 24 Dec 2007 18:29:06 +0530

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


  • Prev by Date: calayer mask property
  • Next by Date: Re: Warning different width?
  • Previous by thread: calayer mask property
  • Next by thread: Do NSSearchFields really send an action up the responder chain when the user clicks the cancel button?
  • Index(es):
    • Date
    • Thread