Localization

Ken Ray kray at sonsothunder.com
Tue Aug 17 10:45:04 CDT 2004


On 8/17/04 10:35 AM, "Thierry Arbellot" <thierry.arbellot at wanadoo.fr> wrote:

> 
> On Tuesday, Aug 17, 2004, at 17:08 Europe/Paris, Jan Decroos wrote:
> 
>> 
>> on Mac OS X you can get the language by
>> word 1 of item 1 of line 2 of shell("defaults read NSGlobalDomain
>> AppleLanguages")
>> -> "English"  or "Dutch" or  "German" or ...
>> 
>> Jan
>> 
> on MacOS 10.2.8 and Rev 2.1, this script returns empty
> 
> To get the language, I use
> replaceText(shell("defaults read NSGlobalDomain
> AppleLanguages"),"(\s|\(|\))","")

Thierry,

When you get this, is the first one in the list the one that is currently
the active language? If not, how do you tell what is the currently active
language?

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list