Re: Changing the app language
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