• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [NSBundle preferredLocalizationsFromArray:] Is the cold war really over?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSBundle preferredLocalizationsFromArray:] Is the cold war really over?


  • Subject: Re: [NSBundle preferredLocalizationsFromArray:] Is the cold war really over?
  • From: "Clark Cox" <email@hidden>
  • Date: Fri, 23 Nov 2007 18:57:47 -0800

On Nov 23, 2007 5:44 PM, Stéphane Sudre <email@hidden> 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?
2) Is Russian one of the languages selected in the International pane
of System Preferences?

If not, then IIRC, NSBundle falls back to English..

--
Clark S. Cox III
email@hidden
_______________________________________________

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

  • Follow-Ups:
    • Re: [NSBundle preferredLocalizationsFromArray:] Is the cold war really over?
      • From: Stéphane Sudre <email@hidden>
References: 
 >[NSBundle preferredLocalizationsFromArray:] Is the cold war really over? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: Position of NSStatusItem
  • Next by Date: Determining the resident set size of current process (Under 10.5+)
  • Previous by thread: [NSBundle preferredLocalizationsFromArray:] Is the cold war really over?
  • Next by thread: Re: [NSBundle preferredLocalizationsFromArray:] Is the cold war really over?
  • Index(es):
    • Date
    • Thread