Re: What is the System language
Re: What is the System language
- Subject: Re: What is the System language
- From: Jean-Christophe Helary <email@hidden>
- Date: Thu, 12 May 2011 20:41:29 +0900
On 12 mai 11, at 20:23, KOENIG Yvan wrote:
> Le 12 mai 2011 à 12:52, Ronald Hofmann a écrit :
>
>> Hi all,
>> I´m looking for an apple script snippet to find out what language my system is.
>> A UNIX script would also do.
>
> do shell script "defaults read 'Apple Global Domain' AppleLocale"
The result is not accurate.
My $LANG variable is set to "fr_FR.UTF-8" for a reason I don't know but my system is in English.
The above command gives:
fr_FR@currency=JPY
But defaults read NSGlobalDomain AppleLanguages gives en as the top language.
Jean-Christophe Helary
----------------------------------------
fun: http://mac4translators.blogspot.com
work: http://www.doublet.jp (ja/en > fr)
tweets: http://twitter.com/brandelune
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden