• 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: best way to get user's default language...not a list of installed languages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: best way to get user's default language...not a list of installed languages


  • Subject: Re: best way to get user's default language...not a list of installed languages
  • From: Emmanuel <email@hidden>
  • Date: Wed, 26 Jan 2005 19:50:22 +0100

At 9:44 AM -0800 1/26/05, Graham Anderson wrote:
wow that was a bit confusing...
is there an accepted way to get the user's default language that works in most case and then politely fails if it can not ?

Accepted, I don't know. Recommended by Satimage-software, I can tell:

-----------------------
set x to ""
try
	set x to system attribute "LANG"
	if x = "" then set x to do shell script "defaults read -g AppleLocale"
end try
if x = "" then set x to "en"
-----------------------

Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: best way to get user's default language...not a list of installed languages
      • From: Graham Anderson <email@hidden>
References: 
 >Re: 'include' statement in applescript (From: Paul Berkowitz <email@hidden>)
 >Re: 'include' statement in applescript (From: Graham Anderson <email@hidden>)
 >Re: 'include' statement in applescript (From: "Adam K. Wuellner" <email@hidden>)
 >best way to get user's default language...not a list of installed languages (From: Graham Anderson <email@hidden>)

  • Prev by Date: Re: definition list recommendations?
  • Next by Date: [ann] HTMLDictionary
  • Previous by thread: best way to get user's default language...not a list of installed languages
  • Next by thread: Re: best way to get user's default language...not a list of installed languages
  • Index(es):
    • Date
    • Thread