Re: Getting the default language with AppleScript
Re: Getting the default language with AppleScript
- Subject: Re: Getting the default language with AppleScript
- From: Axel Luttgens <email@hidden>
- Date: Sun, 25 Jul 2004 15:02:47 +0200
Paul Berkowitz wrote:
[...] 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).
When installing the OS, I always boot from the CD, erase the disk, then
proceed with the installation.
That is, doing so bypasses any pre installed loader/booter that may have
been put at the factory with some initial language configuration on the
hard drive.
So, I'm not sure I am going to exactly describe a "standard install".
Anyway, the very first step of the installation is to choose a "main
language for the installation", by clicking on one of various buttons
labeled (IIRC): "Choose English", "Choisir le Francais", ..., then to
select the destination drive and so on.
Once the installation has completed comes a configuration step starting
with that "Welcome" thing.
In the case of the computer I am using here, I am sure to have clicked
on the "Choisir le Francais" button.
Then, in the configuration phase, I am almost sure to have choosen
"France" for the region, but otherwise done very few things with regards
to international settings.
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, given the avove, I get here:
defaults read -g AppleLocale
--> fr_FR
so that an absence of any value really
does mean "en_US".
I think you must be right.
"en_US" should be a default value.
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?
I dunno. Someone else?
:-)
While being on that matter...
When the thread started, being rather amazed, I tried to summarize the
various experiences encountered by the posters.
Here are my results (on 10.3.4) as well as a comment about what happened
for others:
======
$ defaults read com.apple.dock loc
--> fr_FR
Works for: Peter, dev_sleidy
Doesn't work for: Paul (S.), Martin
======
$ defaults read com.apple.systempreferences AppleIntlCustomFormat
--> The domain/default pair of (com.apple.systempreferences,
AppleIntlCustomFormat) does not exist
Works for: Martin, Paul (B.), dev_sleidy
Doesn't work for: Alexandre
======
system attribute "LANG"
--> ""
According to Paul (B.), this returned valid info under Jaguar or earlier.
======
$ defaults read -g AppleLocale
--> fr_FR
Works for: Paul (S.), Paul (B.), Martin, Bill
Doesn't work for: -
======
$ defaults read -g AppleLanguages
--> (French, English,German,Dutch,Italian, Japanese, Spanish, da, fi,
ko, no, pt,sv,"zh_CN","zh_TW")
Works for: John, Paul (B.), Bill, Paul (S.)
Doesn't work for: -
======
Has someone found the underlying pattern?
As well as a precise definition of the various pieces read here and there?
Axel
_______________________________________________
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.