• 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: How to detect current local language ID?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect current local language ID?


  • Subject: Re: How to detect current local language ID?
  • From: Martin Orpen <email@hidden>
  • Date: Tue, 9 Jan 2007 10:28:34 +0000

On 9 Jan 2007, at 09:28, Horky Chen wrote:

Could you please tell me how to detect current local language ID with Shell script?


set foo to do shell script "defaults read 'Apple Global Domain' 'AppleLocale'"
--> "en_GB"


or AS:

 	set foo to user locale of (get system info)
--> "en_GB"


Using defaults also allows you to get the list of available languages:

defaults read 'Apple Global Domain' 'AppleLanguages'
--> (en, ja, fr, de, es, it, nl, pt, sv, nb, da, fi, "zh-Hans", "zh- Hant", ko)



Regards

--
Martin Orpen
<http://www.idea-digital.com/>

_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: How to detect current local language ID?
      • From: "Horky Chen" <email@hidden>
    • Re: How to detect current local language ID?
      • From: Emmanuel <email@hidden>
References: 
 >How to detect current local language ID? (From: "Horky Chen" <email@hidden>)

  • Prev by Date: How to detect current local language ID?
  • Next by Date: indesign, file paths of every image not on clipboard
  • Previous by thread: How to detect current local language ID?
  • Next by thread: Re: How to detect current local language ID?
  • Index(es):
    • Date
    • Thread