Re: best way to get user's default language...not a list of installed languages
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