Re: Localization
Re: Localization
- Subject: Re: Localization
- From: Horst Hoesel <email@hidden>
- Date: Thu, 20 Apr 2006 10:25:50 +0200
Hi Douglas,
[snip]
There is a sequence of fallbacks that CFBundle/NSBundle use to
select the localization used when an application is launched. If
one of the user's preferences matches one of the application's
localizations, then the most-preferred localization will be used;
if not, then the development localization will be used; if that is
not present, then English will be used; if that is not present,
then one of the application's localizations will be used; or if the
application has no localizations, then only non-localized resources
will be used.
This is not completely correct, non-localized resources override any
and all localized resources. If non-localized resources are present
it seems the system doesn't care whether localized ones exist. You
can test this yourself: open TextEdit.app's bundle and copy
German.lproj/Preferences.nib one level up to the Resources folder.
Then launch TextEdit and choose Preferences from the TextEdit menu.
The dialog will be German regardless of your preferred language
setting and the development region.
I do not recommend going without localized resources, however,
because even if your application will only ever be available in one
localization, it is likely to use localized resources from the
various frameworks installed on your system, and CFBundle/NSBundle
need to be able to determine what localization your application is
running in so as to be able to select those.
I don't have complete visibility here and might be completely wrong,
but the frameworks should choose localized resources based on user
settings, not on the language of the app. At least the most prominent
(Date & Time, number format, sort order, authentication) seem to be
handled that way.
Cheers,
Horst
_______________________________________________
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