Re: Internationalization: How to bring the locale in line with the language?
Re: Internationalization: How to bring the locale in line with the language?
- Subject: Re: Internationalization: How to bring the locale in line with the language?
- From: Jonathon Mah <email@hidden>
- Date: Thu, 4 Nov 2004 06:22:53 +1030
On 4 Nov 2004, at 02:15, Uli Zappe wrote:
So is there no way to bring the locale in line with the language in
time?
Did you try changing the default before NSApplicationMain() was
called?
No, but there I would have a hard time finding out what the used
language will be. I don't want to hardcode the locale (then I could
obviously simply not use localized methods in my app), but bring it in
line with the language the app actually uses depending on the user's
preferences and the available localized NIB files.
You could put each locale in the localized .strings file, and then set
the setting to whatever NSLocalizedString() returns. That way, it'd be
in English if it were using English strings, etc.
(I'm assuming that the application is set-up enough to use
NSLocalizedString() before NSApplicationMain() is called — I haven't
tried that yet.)
Jonathon Mah
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden