Determine active OS langguage

graham samuel graham.samuel at wanadoo.fr
Wed Oct 5 07:16:58 EDT 2005


Oops - I'm an amateur at these things. I now see that there is also  
another folder, Geo, within Control Panel\International, and I can see

Control Panel\International\Geo\Nation

of which the value on my machine is 84 (presumably Hex, so decimal  
132). Not sure what that means, but it still doesn't accord with your  
idea of primary language codes AFAIKS...

Graham

I just wrote:
> Hi Trevor
>
> Tried your function out on a French Windows XP SP2 system running  
> RunRev 2.6 (after taking out spurious returns) and it didn't work -  
> it just returned "en" because your registry query put nothing into  
> tUserLangs. I am no expert, but it looks to me as if the Registry  
> entries in the French system are under Control Panel\International 
> \iCountry or \sCountry or \sLanguage
>
> The value of iCountry on my system is 33 [which is the  
> international phone code] and of sCountry is France [which is of  
> course both French and English for France - presumably a German  
> system for example would not say 'Germany' but 'Deutschland', but I  
> haven't got a system to test it on) and of sLanguage is FRA. There  
> is also \Locale which is a Hex figure 0000040C.
>
> I'll experiment further it you would like to suggest which  
> direction to take.
>
> HTH
>
> Graham
>

----------------------------------------
Graham Samuel / The Living Fossil Co. / UK and France




More information about the use-livecode mailing list