Archive: Thai Language Support


Thai Language Support
Hi all,

My installer has support of Thai Language. As I have some other language support also, but when I add code with Thai language support, compiler generates two warning message as

"""""""""

2 warnings:
Thai language file version doesn't match. Using default English texts for missing strings. (macro:MUI_LANGUAGEFILE_BEGIN:11)
!warning: Thai Modern UI language file version doesn't match. Using default English texts for missing strings. (macro:MUI_LANGUAGEFILE_END:5)

"""""""""

and with these warning messages if I execute the application with my own defined welcome message[LangString], the welcome message displayed on the Welcome page in case of Thai is displayed as junk characters, but in other 6 different languages[simp chinese, arabic...], the strings come in that particular language.

Can anyone tell me where I am wrong, how can I eliminate these warning message.

Regards
Venu


You get those warnings because the Thai language files are out of date. But they have nothing to do with Thai being displayed as junk on your computer. In order for Thai to display right on your computer, you need to set the default language for non-Unicode applications to Thai. This can be done in the Regional and Language Options control panel.


Hi all,

As I have observed in latest NSIS 2.01, the language files "Thai.nsh" and "Thai.nlf" are not the updated one. The version of file shown in "Thai.nsh" is 1.63 but all other language files have 1.68 version instead.
Same way the .nlf file for Thai shows "NLF v2" and other language files show "NLF v6".

The problem I am getting in Thai is, NSIS doesnot display the MUI_WELCOMEPAGE_TITLE and MUI_FINISHPAGE_TITLE in Thai language font, instead it displays some junk characters.

Please reply soon if it is the limitation.

Regards
Venu


It's not a limitation.


Thanks for reply.

I tried by setting the Regional Language setting to Thai, and even I tested on Windows ME[Thai Language] OS, but there also it does not displayed "MUI_WELCOMEPAGE_TITLE" and "MUI_FINISHPAGE_TITLE" in Thai language. But all other strings apart from those two are displayed in "Thai" language fonts.

Do I have to do some other setting on WinME[Thai Lang] OS or on WinXP[Eng] also.

Regards
Venu


It's possible that the default font doesn't support Thai. In that case, the NLF can contain a different font for NSIS to use. Chinese NLFs use that. But that leads us to point zero, the Thai language files are out of date.


So, is there no way to sort out this problem?

Regards
Venu


You can get someone who speaks Thai to update the language files and set a proer font.


Thanks again,

Which file I should update, "thai.nlf" file or "Thai.nsh" file. If I update the missing strings from "English.nsh", will that be sufficient.

Regards
Venu


Both should be updated. NSIS and the MUI already fill in the blanks from English.nlf and English.nsh alone, it won't help much if you just copy and paste it from there. To have display normally on the welcome page you just need to find a font that supports Thai and put it in the NLF.


I am using "SetFont "Arial" 10", in my installer. But as the Thai language does not support "Arial, times, verdana ,...", so I want to disable the font setting in case of Thai language selection.

Can anybody tell me, how to disable the font setting in case of "Thai" language selection, inside a function.


Regards
Venu


SetFont has a /LANG= switch. Use it to define a font for every language but Thai.