FROM : Stéphane Sudre
DATE : Sat Nov 24 14:32:55 2007
On samedi, novembre 24, 2007, at 03:57 AM, Clark Cox wrote:
> On Nov 23, 2007 5:44 PM, Stéphane Sudre <<email_removed>> wrote:
>> I'm seeing a strange phenomenon (a.k.a probably a bug) with +
>> [NSBundle
>> preferredLocalizationsFromArray:] on Mac OS X 10.4.10.
>>
>> I have an array with only one NSString : @"Russian".
>>
>> But the return array of [NSBundle
>> preferredLocalizationsFromArray:[NSArray arrayWithObject:@"Russian"]];
>> is "English" or "en".
>>
>> Is this the designed behavior?
>
> I have two questions for you:
> 1) Does your bundle's Resources directory have a Russian.lproj
> directory?
No. But, AFAIK, this is not related. I just have English and French
.lproj directories and the method works fine for other language such as
German, Dutch, Spanish, Brazilian Portuguese, Italian, etc.
> 2) Is Russian one of the languages selected in the International pane
> of System Preferences?
No, as a matter of fact, Russian is not. It could be the reason but
then it would mean that the API is not really robust because Russian is
a perfectly valide language name and should be returned when it's the
only one available.
DATE : Sat Nov 24 14:32:55 2007
On samedi, novembre 24, 2007, at 03:57 AM, Clark Cox wrote:
> On Nov 23, 2007 5:44 PM, Stéphane Sudre <<email_removed>> wrote:
>> I'm seeing a strange phenomenon (a.k.a probably a bug) with +
>> [NSBundle
>> preferredLocalizationsFromArray:] on Mac OS X 10.4.10.
>>
>> I have an array with only one NSString : @"Russian".
>>
>> But the return array of [NSBundle
>> preferredLocalizationsFromArray:[NSArray arrayWithObject:@"Russian"]];
>> is "English" or "en".
>>
>> Is this the designed behavior?
>
> I have two questions for you:
> 1) Does your bundle's Resources directory have a Russian.lproj
> directory?
No. But, AFAIK, this is not related. I just have English and French
.lproj directories and the method works fine for other language such as
German, Dutch, Spanish, Brazilian Portuguese, Italian, etc.
> 2) Is Russian one of the languages selected in the International pane
> of System Preferences?
No, as a matter of fact, Russian is not. It could be the reason but
then it would mean that the API is not really robust because Russian is
a perfectly valide language name and should be returned when it's the
only one available.
| Related mails | Author | Date |
|---|---|---|
| Stéphane Sudre | Nov 24, 02:44 | |
| Clark Cox | Nov 24, 03:57 | |
| Stéphane Sudre | Nov 24, 14:32 |






Cocoa mail archive

