Re: Getting the default language with AppleScript
Re: Getting the default language with AppleScript
- Subject: Re: Getting the default language with AppleScript
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 24 Jul 2004 13:22:32 -0700
On 7/24/04 12:34 PM, "LuKreme" <email@hidden> wrote:
>
On 23 Jul 2004, at 21:10, Paul Berkowitz wrote:
>
> But now I've discovered that a friend, also in OS 10.3.4 like I am,
>
> has no
>
> global AppleLocale default entry at all, and that command errors:
>
>
This means he's never explicitly set a language order in the
>
International Prefpane.
>
>
try
>
set TheLang to do shell script "defaults read -g AppleLocale"
>
on error
>
set TheLang to "en"
>
end
>
>
or thereabouts.
I think it may just be that he'd never gone into International Prefs before.
Now that he has, he's getting "en_US". I'll double-check with him that he
didn't actually alter anything in there.
I'm using "xx" for the moment. Can one assume that it would always be
"en_US" if not explicitly set? I'd expect that in other countries the
default installation is something different. When you first install OS 10.3
don't you have to confirm - or choose - a language? If I remember correctly,
in US installs, you see just a US flag + English in that box and would need
to click "Show All" or something like that to pick another. I'd expect that
in France all the introductory "Welcome" stuff is in French and the default
setting is a French flag with "francais" (forgive lack of cedilla - you
know). The default should still be available somewhere. It would be good to
know I the default installation in other countries automatically changes -g
AppleLocale to "fr_fr" or whatever, so that an absence of any value really
does mean "en_US". In fact, what happens on UK/Australian machines if you
never go into International Prefs? Can someone check? Do you get "en_UK",
etc., or nothing?
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.