Updates:
Cc: [email protected]
Comment #5 on issue 22727 by [email protected]: Tips & Tricks text on NTP
in wrong language
http://code.google.com/p/chromium/issues/detail?id=22727
Hi Miranda,
on OS X, the locale describes how dates, currencies, etc should be
formatted. The UI language is independent of the
current (NS)locale however. The current locale is set in System
Preferences->Language & Text -> Formats, while the
current UI language is set in System Preferences->Lanugage & Text ->
Language. On the box where I made the
screenshot, the UI language is set to english, while the locale is german.
Here's a small test program:
#include <Cocoa/Cocoa.h>
/*
gcc -o locale locale.m -framework AppKit
*/
int main() {
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSLog(@"Current locale: %...@\n", [[NSLocale currentLocale]
localeIdentifier]);
NSLog(@"Preferred Languages: %...@\n", [NSLocale preferredLanguages]);
[pool release];
}
And here's the output on my box:
$ ./locale
2009-10-04 20:09:05.614 locale[8525:903] Current locale: de_DE
2009-10-04 20:09:05.617 locale[8525:903] Preferred Languages: (
en,
de,
ja,
fr,
es,
it,
nl,
sv,
nb,
da,
fi,
pt,
"zh-Hans",
"zh-Hant",
ko,
ru,
pl,
"pt-PT"
)
To decide text in which language should be displayed, we should look at
preferredLanguages, while the current locale
should be used for formatting dates and currencies (but e.g. Garage Band
gets this wrong too).
(cc'ing our i18n expert in case I say something stupid, but I'm pretty sure
this is right)
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---