• 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: Language tags
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Language tags


  • Subject: Re: Language tags
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 13 Apr 2003 22:33:43 -0700

On Sunday, April 13, 2003, at 08:48 PM, mmalcolm crawford wrote:

On Friday, April 4, 2003, at 12:46 AM, Yuhui wrote:

I've figured out how to use NSUserDefaults to get the user's language. But the iCalendar format uses the 2-letter ISO 639 format, e.g. "English" = "en". Short of writing a lookup table, is there any Apple built-in function/dictionary to convert a language into the 2-letter version?

The only way I've found so far is to use IntlUtility, as in:


For further background, I have looked through all the functions etc. in
<file:///Developer/Documentation/Carbon/text/LocaleUtilities/ Locale_Utilities/Miscellaneous/ManagerIntro.html>

but haven't found anything to reliably get from, say, "English" to "en".

I'd be pleased to find that I overlooked something.

mmalc
_______________________________________________
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.

  • Follow-Ups:
    • Re: Language tags
      • From: MacInsight <email@hidden>
    • Re: Language tags
      • From: Alexander Reichstadt <email@hidden>
References: 
 >Re: Language tags (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Flag images?
  • Next by Date: Re: Flag images?
  • Previous by thread: Re: Language tags
  • Next by thread: Re: Language tags
  • Index(es):
    • Date
    • Thread