- NSIS Discussion
- Thai Language Support
Archive: Thai Language Support
Venu
15th October 2004 05:39 UTC
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
kichik
15th October 2004 14:12 UTC
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.
Venu
15th October 2004 14:22 UTC
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
kichik
15th October 2004 14:31 UTC
It's not a limitation.
Venu
15th October 2004 14:43 UTC
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
kichik
15th October 2004 14:50 UTC
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.
Venu
15th October 2004 14:55 UTC
So, is there no way to sort out this problem?
Regards
Venu
kichik
15th October 2004 14:57 UTC
You can get someone who speaks Thai to update the language files and set a proer font.
Venu
15th October 2004 15:00 UTC
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
kichik
15th October 2004 15:02 UTC
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.
Venu
18th October 2004 05:49 UTC
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
kichik
18th October 2004 18:37 UTC
SetFont has a /LANG= switch. Use it to define a font for every language but Thai.