Localization

Thierry Arbellot thierry.arbellot at wanadoo.fr
Tue Aug 17 11:35:23 EDT 2004


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

> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list