Archive: Adding unsupported languages


Adding unsupported languages
I am writing an installer to be used in Cambodia where they speak Khmer (Cambodian). Users who will be using the installer already have the proper fonts installed and their systems configured.

According to this page

http://www.unicode.org/unicode/onlinedat/languages.html

Khmer has no Windows constant defined but does have a Win Code (0x53).

I have a few questions:

- The language ID shown by MakeLangId.exe, what is this number based on? Thought it might be the decimal equiv of the Win Code but it isnt. What would I use for the Khmer.nlf Language ID?

- since there is no Win32 LANG_KHMER define, what should I use for the Khmer.nsh line '!insertmacro MUI_LANGUAGEFILE_BEGIN "Khmer"'

- Has anyone experimented with the Language Selection Dialog switching the system region to the appropiate Code Page on language selection so that say Russian users on English Windows can see the correct font & not garbage? Then on exiting the installation switch back to the original code page. This would only work on WinXP & Win2K I think.

- Where can I find the sources to the binaries under ${NSISDIR}/bin ?

thanks for your assistance,

c.


The numbers shown in MakeLangId.exe are created using the MAKELANGID macro defined in the Windows API header files. Its source code is now in CVS and is also attached. I don't know why I haven't uploaded it before.

You could try using the code page from that website. If Windows supports the Khmer code page, it should work.

For switching without rebooting you can try Nolybab.