Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the app language




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.