Systemlanguage

Trevor DeVore lists at mangomultimedia.com
Tue Nov 14 04:33:43 EST 2006


On Nov 13, 2006, at 5:51 AM, Eric Chatonet wrote:

> Hi Malte,
>
> Have a look at "Getuserlang" stack from Trevor on RevOnline: all  
> you want is there ;-)

Just a note about that stack - I recently came across a scenario  
where the Windows code returned an incorrect value.  It happens on  
systems where the language that is installed and the language setting  
in the regional settings do not match (e.g. English install running  
in german speaking Switzerland).  In these cases reading the registry  
setting returns "German" even though the system is displaying  
English.  The Windows multi language add-on may also cause problems.

After going over the MSDN docs I was unable to find a registry  
setting that can be used to retreive the correct value.  The MSDN  
docs state that you should use a Windows API call on XP/2000.  So  
right now I use a modified version of the handler in the  
"Getuserlang" stack that uses an external to get the correct language  
on Win XP/2000.  This works reliably in the above stated case.  If I  
can find (or someone can point me to) a pure Transcript solution then  
I will update it.  I think I've added some more languages since I  
posted the RevOnline version so I need to update it in any case.

-- 
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
trevor at bluemangolearning.com





More information about the use-livecode mailing list