site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com On Wed, 6 Jul 2005 09:47:35 -0700 Christopher Ryan <ryanc@apple.com> wrote: You can do something like: var appleLanguages = system.defaults['AppleLanguages']; system.log(appleLanguages); - WBR, Alexey Proskuryakov _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... The javascript bridge in Distributions provides a bridge to "defaults" which contains an ordered list of languages. Yep, that's a workaround not recommended (though partially documented) by Apple ;-P if(appleLanguages && appleLanguages.length && (appleLanguages[0] == 'en')){ system.log('Running in English!!!'); } The contents of AppleLanguages preference key are not documented, are subject to change, and did change in the past. For some users, English would be encoded as "en", for others as "English". U.S. English is encoded as "en_US", but in future systems, it may easily become "en-us". This email sent to site_archiver@lists.apple.com
participants (1)
-
Alexey Proskuryakov