I am not sure if I have to provide the language files saved with the correct codepage (as seems to be the ones from C:\Program Files\NSIS\Contrib\Modern UI\Language files) or is it ok if I provide just an UTF-8 file.
In order to test this I tried to use the C:\Program Files\NSIS\Contrib\Modern UI\Language files\Arabic.nsh as this one is supposed to be saved in the correct form.
So steps I did:
- Create a very simple installer
- and as I couldn't use the Arabic.nsh as it's by default provided, I opened it with VC++ editor, deleted all the lines except:
...
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "Arabic"
!include "Arabic.nsh"
...
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
StrCpy $msg "${MUI_TEXT_LICENSE_TITLE}"
MessageBox MB_ICONEXCLAMATION|MB_OK "$msg"
FunctionEnd
and then just save it.
!define MUI_TEXT_LICENSE_TITLE "إتفاقية الترخيص"
Problem is, when I run the installer I am not able to see the right chars. All I see are "monkeys". Please see the attached files: momo.nsi and Arabic.nsh.
Questions:
1) Can you pls tell me what am I doing wrong above?
2) Can smbd pls give me an arabic.nsh with just one correct define?
3) Once I have the above I'll keep trying, with and without UTF-8, but still I can ask: can I provide the language files saved in UTF-8 format? or do I have to provide the file in the correct codepage? (pls note that I'm not familiar with codepage and languages)
Thx,
Viv