• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What is the System language
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the System language


  • Subject: Re: What is the System language
  • From: KOENIG Yvan <email@hidden>
  • Date: Thu, 12 May 2011 14:13:30 +0200


Le 12 mai 2011 à 13:41, Jean-Christophe Helary a écrit :



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.


Thanks for the feedback.

I guess that you are running the system in English while you are in France.

I was unaware of this behavior so I will have to edit a lot of my scripts.

Yvan KOENIG (VALLAURIS, France) 12 mai 2011 14:12:00



_______________________________________________
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
  • Follow-Ups:
    • Re: What is the System language
      • From: Jean-Christophe Helary <email@hidden>
References: 
 >What is the System language (From: Ronald Hofmann <email@hidden>)
 >Re: What is the System language (From: KOENIG Yvan <email@hidden>)
 >Re: What is the System language (From: Jean-Christophe Helary <email@hidden>)

  • Prev by Date: Re: Quit Handler... What Am I Missing Here?
  • Next by Date: Re: What is the System language
  • Previous by thread: Re: What is the System language
  • Next by thread: Re: What is the System language
  • Index(es):
    • Date
    • Thread