Re: Clever question on Localization
Re: Clever question on Localization
- Subject: Re: Clever question on Localization
- From: Annard Brouwer <email@hidden>
- Date: Fri, 8 Jun 2001 09:35:30 -0700
There is an entry in NSUserDefaults called "NSLanguages". This is an
array of languages that the user prefers. Based on the values in this
array NSBundle will choose one of the available localizations.
However, I would like to point out that besides language there are a lot
of other interesting values to look up for localization: monetary unit
(and how to display these), all kinds of date formatting, and also
measurements.
I don't know if the latter is documented but there is an entry called
"NSMeasurementUnit" and I think the values can be "Inches" and
"Centimeters". A lot of developers don't read this and it leaves me, a
foreigner in a country that still hasn't caught up with the rest of the
civilised world, with inches for measurements in a lot of applications!
Annard
On Friday, June 8, 2001, at 02:55 , Stiphane Sudre wrote:
How do you know which localization is used in a running Cocoa
Applications ?