Re: Distribution lists
Re: Distribution lists
- Subject: Re: Distribution lists
- From: "Alexey Proskuryakov" <email@hidden>
- Date: Wed, 06 Jul 2005 21:31:48 +0400
On Wed, 6 Jul 2005 09:47:35 -0700 Christopher Ryan <email@hidden> wrote:
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
You can do something like:
var appleLanguages = system.defaults['AppleLanguages'];
system.log(appleLanguages);
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".
- WBR, Alexey Proskuryakov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden