Re: Localization and Regions
Re: Localization and Regions
- Subject: Re: Localization and Regions
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 08 Nov 2011 14:02:32 +0700
On 8 Nov 2011, at 13:45, Gary L. Wade wrote:
> That's how it's always worked. One can argue that Apple should ask the user, when moving a more-specific locale (en-GB) away from a less-specific locale (en), if the less-specific locale should "stick around" and be moved up into the intuitive order following the more-specific locale. Naturally, such an argument should be voiced as a radar feature request.
> --
> Gary L. Wade (Sent from my iPhone)
> http://www.garywade.com/
I am not quite sure that you are correct.
1. I tried some of my own apps and they (if not having en_GB) just use en. Never use de.
2. I found "Internationalization Programming Topics" → "Language and Locale Designations" → "Language-Specific Project Directories" which says:
"In Mac OS X, the bundle routines look for the requested resource in any region-specific directories first, followed by more generalized language directories."
I guess this means: Mac OS X looks for en_GB first, then, if not finding it, looks for en, then for my other language preferences (like de).
Which is what my own apps do.
And what NSFont does not.
Kind regards,
Gerriet.
> On Nov 7, 2011, at 10:31 PM, "Gerriet M. Denkmann" <email@hidden> wrote:
>
>> Assuming that I have the following language preferences (System Preferences → Language and Text → Language):
>>
>> British English,
>> Deutsch
>> Français
>> English
>>
>> what is a program supposed to do if it has:
>> en.lproj
>> de.lproj
>> but NOT en_GB.lproj ?
>>
>> I guess (but did not find an authoritative answer) that it should look for:
>> en_GB
>> en
>> de
>> fr
>> en
>> it's development language (Localization native development region = CFBundleDevelopmentRegion)
>>
>> But with my language settings -[NSFont displayName] returns German font names.
>> Obviously NSFont does not have en_GB font names, and it does NOT look into it's en.lproj but jumps directly to de.lproj.
>>
>> When I change my language preferences to:
>> British English,
>> English
>> Deutsch
>> Français
>>
>> NSFont works as expected.
>>
>>
>> Is this correct? Or should I file a bug?
>> I have no recollection of seeing this before Lion (I'm using 10.7.2).
>>
>> Also: this language mixture (mostly English, sometimes mixed with some German) is seen in several places, but the font display name is an easily reproducible example.
>>
>>
>> Kind regards,
>>
>> Gerriet.
_______________________________________________
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