Topic LANGUAGE command

We have two new locations for Keyman technical support:

The Tavultesoft Forums are now read only.


# LANGUAGE command   2007-01-26 06:43:19.230
Bruce Button
I'm trying to use the LANGUAGE command in keyboards that I am creating. However, I keep on getting syntax (compilation) errors. I use syntax like this:

LANGUAGE Greek

and I've tried positioning the command in different sections of the program. I'm sure that I must be misreading the manual, but can you help?

Thanks.

# RE: LANGUAGE command   2007-01-26 09:36:08.277
Tavultesoft
Tavultesoft Staff
Hi Bruce,

The LANGUAGE statement needs to be used in the following format:
LANGUAGE %nLang%, %nSubLang%

Where nLang and nSubLang are the Windows language codes as specified at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_238z.asp

The numbers to use are at the left, but it's a little complex.
Using Chinese (Macao) as an example, the code appears in hex as
0x1404
It would be split up as:
sublangpart = 0x14, prilangpart = 0x04

To find the numbers to use with the LANGUAGE statement, divide sublangpart by 4 (14 hex = 20 decimal), which is 5. Thus the code to use Chinese (Macao) would be:
LANGUAGE 4, 5


For Greek, the code is 0x0408, so you would use:
LANGUAGE 8, 1


We'll be clarifying this in the Keyman Developer 7.0 documentation.


Kind regards,

Paul Durdin
# RE: LANGUAGE command   2007-01-26 18:21:13.963
Bruce Button
Thanks, Paul. I see that it is not completely straightforward but your explanation makes things clear.