Archive: Problem with languages


Problem with languages
Hello!
I use NSIS to create multilanguage installer.

In main file I create Combobox with languages like this:
;==================================
; Languages
!insertmacro LCM_LANGUAGE "English"
!insertmacro LCM_LANGUAGE "Russian"
!insertmacro LCM_LANGUAGE "French"
!insertmacro LCM_LANGUAGE "SimpChinese"
!insertmacro LCM_LANGUAGE "Japanese"
!insertmacro LCM_LANGUAGE "Spanish"

I have .nsh files for all languages.
For example:

!insertmacro MUI_UNSET PCM_CUR_LANG
!define PCM_CUR_LANG "JAPANESE"

LangString TEXT_LANGUAGE_SHORT ${LANG_${PCM_CUR_LANG}} "jp"

; Registration dialog
LangString TEXT_AUTHORIZE_TITLE ${LANG_${PCM_CUR_LANG}} "***21830;***21697;***12398;***30331;***37682;"

When I'm saving file with Unicode or Utf-8 makensisw returns an error:

!insertmacro: end of MUI_LANGUAGE
Invalid command: !insertmacro
!include: error in script: "languages\Japanese.nsh" on line 1
Error in macro LCM_LANGUAGE on macroline 7
!include: error in script: "installer.nsh" on line 86
Error in script "D:\Work\VisualStudio\PowerCompres\1.2.16 (Back up) Base Version\AMD LIVE! Compress\Full\installer\installer_def.nsi" on line 25 -- aborting creation process

In other case (when I'm saving .nsh file with japanese codepage) makensisw compiles my code. But when I run the compiled installation the text what I see is not a valid japanese text.
Problem is with Japanese and Chinese. French, Spanish, Russian are OK.

If anyone knows the solution of this problem, please, tell me.

Thank you in advance!


NSIS installers are not Unicode enabled. You must select the correct language for non-Unicode applications in the Regional and Language Options control panel in order to view the text correctly.