Re: Language tags
Re: Language tags
- Subject: Re: Language tags
- From: Alexander Reichstadt <email@hidden>
- Date: Mon, 14 Apr 2003 19:17:04 -0700
If we have 12 languages we ship a product in then that means we have
144 items to take care of, because each of the 12 languages will be
referred to differently in each of them. Microsoft for instance and I
think to remember ships for more than three times as many.
And, are you e.g. entering a double byte string reference for
"English", say in Chinese (and also what region, CH_xy), from which you
want this function to return "en"?
It's a wild guess, but maybe the question is why you would need to do
such a conversion per se.
Alex
On Sunday, April 13, 2003, at 10:33 PM, mmalcolm crawford wrote:
>
From: mmalcolm crawford <email@hidden>
>
Date: Sun Apr 13, 2003 10:33:43 PM US/Pacific
>
To: Yuhui <email@hidden>
>
Cc: email@hidden
>
Subject: Re: Language tags
>
>
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.