Re: Language tags
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.