Re: Languages supported by OS X?
Re: Languages supported by OS X?
- Subject: Re: Languages supported by OS X?
- From: ∞ <email@hidden>
- Date: Sun, 8 Jul 2007 22:42:53 +0200
Il giorno 08/lug/07, alle ore 22:24, jeff ganyard ha scritto:
(i.e. en-US or en-UK, and not the locales en_US and en_UK)
As far as I can understand, en-US and en-UK are *always* locales;
they mean "English as spoken in the United States" and "English as
spoken in the United Kingdom" (note the geographical element which is
typical of locales).
So: your best bet is looking at the NSLocale. [NSLocale
currentLocale] returns the correct locale at all times.
If this is to retrieve strings, I am sorry to say the docs report OS
X as capable of using an en_US.lproj and an en_UK.lproj, but I just
tested a similar situation (it_IT and it_CH on an Italian-locale
machine) and it doesn't work (it_IT is always chosen over it_CH even
when Switzerland replaces Italy in the appropriate places of System
Preferences).
But really, what is the nature of these things? Note that the system
has standard ways to retrieve locale-dependent information such as
date formatting and currency, if this is what you need.
- ∞
_______________________________________________
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