• 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: Changing the app language
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the app language


  • Subject: Re: Changing the app language
  • From: Francis Derive <email@hidden>
  • Date: Mon, 30 Jul 2007 11:09:06 +0200


On Jul 28, 2007, at 4:59 AM, Jeff Bland wrote:

I played around with the AppleLanguages thing a bit:

[[NSUserDefaults standardUserDefaults] setObject:[NSArray
arrayWithObject:@"English"] forKey:@"AppleLanguages"];
[[NSUserDefaults standardUserDefaults] synchronize];

A search for AppleLanguages in Apple's Documentation found - among others - this ( Application Kit Release Notes ( 10.3 and earlier ):


AppleLanguages

The user's preference order for localizations is stored in the AppleLanguages user default. The value for this should be an array of strings. In the past, the strings in this array have typically been language names ("English", "French", etc.). However, the preferred forms for the strings in this array, and the forms in which they are likely to appear in future, are either as language abbreviations ("en", "fr", etc.) or as locale abbreviations ("en_US", "fr_CA", etc.). Anyone using the value of this default directly must be prepared to accept any of these forms. Direct use of the default is discouraged; in most cases, NSBundle or CFBundle APIs should suffice. See the CFBundle documentation for more details on languages, locales, and localizations.


Does it help ?

Francis _______________________________________________

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: Changing the app language
      • From: Alastair Houghton <email@hidden>
References: 
 >Changing the app language (From: "Jeff Bland" <email@hidden>)
 >Re: Changing the app language (From: Douglas Davidson <email@hidden>)
 >Re: Changing the app language (From: "Jeff Bland" <email@hidden>)
 >Re: Changing the app language (From: Brian Willoughby <email@hidden>)
 >Re: Changing the app language (From: Alastair Houghton <email@hidden>)
 >Re: Changing the app language (From: "Jeff Bland" <email@hidden>)

  • Prev by Date: Re: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
  • Next by Date: Re: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
  • Previous by thread: Re: Changing the app language
  • Next by thread: Re: Changing the app language
  • Index(es):
    • Date
    • Thread