Determine active OS langguage

Scott Rossi scott at tactilemedia.com
Wed Oct 5 13:51:17 EDT 2005


Recently, Trevor DeVore  wrote:

> Let me walk through the
> logic of the function to see where it might be going wrong.
> ...
> get queryRegistry("HKEY_CURRENT_USER\Control Panel\International
> \Locale") --> RETURNS HEX
> get baseConvert(it,16,10) --> CONVERT HEX TO DECIMAL (1036 FOR FRENCH
> STANDARD)
> get it bitAND 1023

Without knowing exactly what you're doing, I think you may not need the
bitAND portion of the code.  If you're using the MS provided tables of
locales and/or languages, you only need to get either decimal or hex values.
In the localized projects I've worked on (sometimes 15 languages), this was
all that was needed to determine language and locale of a system.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com




More information about the use-livecode mailing list