• 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: Localized country name from iso country code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Localized country name from iso country code
      • From: mmalc crawford <email@hidden>
References: 
 >Localized country name from iso country code (From: Ruotger Skupin <email@hidden>)

  • Prev by Date: Re: Re: NSImageView broken
  • Next by Date: @properties and Information Hiding
  • Previous by thread: Localized country name from iso country code
  • Next by thread: Re: Localized country name from iso country code
  • Index(es):
    • Date
    • Thread