Re: Localized country name from iso country code
Re: Localized country name from iso country code
- Subject: Re: Localized country name from iso country code
- From: Stephane Sudre <email@hidden>
- Date: Thu, 1 Nov 2007 13:59:26 +0100
On Nov 1, 2007, at 1:36 PM, Ruotger Skupin wrote:
Hi,
is there an easy way to get a localized country name from an ISO
country code (with or without NSLocale)?
example (User uses German):
"DE" --> "Deutschland"
"FR" --> "Frankreich"
example (User uses French):
"DE" --> "Allemagne"
"FR" --> "France"
Yes, there is.
Look in /System/Library/PrivateFrameworks/IntlPreferences.framework/
Resources
In each .lproj language folder, you should find the
LocalizedLanguage.strings file.
The format may look strange but you can open the file as a NSDictionary.
The /System/Library/PrivateFrameworks/IntlPreferences.framework/
ResourcesLanguage.strings file could also be of some interest.
_______________________________________________
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