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 22:18:38 +0900
On 12 May 2011, 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"
Here is the last word, from Apple:
http://developer.apple.com/library/ios/#documentation/MacOSX/Conceptual/BPInternational/Articles/ChoosingLocalizations.html
AppleLocale is for the system locale (basically a set of values reflecting choices like area/currency etc) and AppleLanguages is for preferred languages, of which the first is the language in which the applications will be displayed (if a localization is available).
Since SL is a Posix system, I guess that page is relevant:
http://en.wikipedia.org/wiki/Locale
cf. "General locale settings" for what the value expresses.
I suppose that OSX overrides the locale value with the Language value everywhere it is practical but keeps local values for "minor" items like the ones described in that section of the article.
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