Re: How to detect current local language ID?
Re: How to detect current local language ID?
- Subject: Re: How to detect current local language ID?
- From: Emmanuel <email@hidden>
- Date: Tue, 9 Jan 2007 14:15:55 +0100
At 10:28 AM +0000 1/9/07, Martin Orpen wrote:
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"
I won't be specific here, I just vaguely remember that under some
circumstances this line may return an empty string, which implies
that you're "en" or "en_US", I don't know. That's why I would write,
in addition:
if foo is "" then set foo 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:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden