Re: natural languages
Re: natural languages
- Subject: Re: natural languages
- From: Devon E Bowen <email@hidden>
- Date: Fri, 25 Apr 2003 15:59:06 -0400 (EDT)
>
You should be prepared for "Dutch", "nl", or "nl_NL" to represent
>
Dutch. In practice the last form listed is used only in cases in which
>
there really are significant regional variants, e.g. "de_DE" vs
>
"de_CH", but there is no guarantee that the longer form will not be
>
used for other languages. Furthermore, although Apple does not do so,
>
it is possible to use any arbitrary string for a language name, so you
>
should be prepared for that.
>
>
Also, if you do read the AppleLanguages default directly, remember that
>
it is a default which anyone can muck with; protect yourself against
>
malformed data. You should check to make sure that the value of the
>
default is an array, and that the entries in the array are strings.
Ugh. Well, maybe I'll use your suggestion then and repeatedly ask for
preferred languages throughout an array. Thanks.
Devon
_______________________________________________
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.