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: Sun, 25 Jul 2004 12:18:19 -0700
On 7/25/04 7:51 AM, "Emmanuel" <email@hidden> wrote:
>
So far, my proposition is:
>
>
------------------------
>
on UserLanguage()
>
set x to system attribute "LANG"
>
if x = "" then set x to do shell script "defaults read -g AppleLocale"
>
find text "^[^_]+" in x with regexp and string result
>
end UserLanguage
>
------------------------
Emanuel,
I know that. Thanks. But if you've been following the thread in detail,
you'll have seen that some people have "" for "defaults read -g
AppleLocale". That's really what we're trying to discover here: what
assumptions, if any, can be made when the result is "". It does not appear
to be always "en_US", or is it?
We need someone in Europe or Asia to make a new user, don't touch
International Prefs at all, and see what the result is. But maybe a new user
just inherits a default from the first user. Ideally, some day, maybe
someone can check in their first user immediately after installing OS 10.3
for the first time, choosing "Choisir le Francais" button in the Welcome
screen. Maybe somebody who appears to be still in OS 10.2.8 and is planning
to move to 10.3 without doing an "Upgrade" but instead an "Erase and
Install", someone who must have one or two test machines available for
testing out their app and osax, someone like.... ;-)
The question is: will that process result in :
"fr_FR"
or
""
If it results in "fr_FR", then we can deduce that "" really means "en_US".
(A confirmation from someone in the UK or Australia would be necessary.)
If it results in "", then we still wouldn't know anything...
--
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.