From: Mats B. <ma...@pr...> - 2006-01-13 11:01:13
|
David Zolli wrote: >=20 > Le 31 d=E9c. J=E9r=F4me Gagnon-Voyer a =E9crit : >=20 > > On Linux they got the env lang variable to know the current language > > of the system > > > > http://wiki.tcl.tk/1624 > > > > Do we have an equivalent on Mac OS X? >=20 > You can also do that (tested on 10.3 and 10.4) : >=20 > set lang [exec defaults read NSGlobalDomain AppleLocale] >=20 Unfortunately not on 10.2.8: set lang [exec defaults read NSGlobalDomain AppleLocale] 2006-01-13 11:44:28.387 defaults[618]=20 The domain/default pair of (kCFPreferencesAnyApplication, AppleLocale) do= es not exist /Mats |