However, the message that appears is "English message". Even weirder, when I comment out
"!insertmacro MUI_LANGUAGE "French"
the message that appears is "French message".
I assumed that by setting the language, by means of
"!insertmacro MUI_LANGUAGE "xxx" "
later, when defining a string by means of LangString, automatically the one corresponding to language "xxx" will be used.
!include mui.nsh
!include LogicLib.nsh
Name "meta"
OutFile "meta.exe"
;--------------------------------
!insertmacro MUI_PAGE_INSTFILES
;--------------------------------
;Languages !!! After INST_FILES...
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
;--------------------------------
;Language strings
LangString message ${LANG_ENGLISH} "English message"
LangString message ${LANG_FRENCH} "French message"
;--------------------------------
;Installer Sections
Section "Dummy Section" SecDummy
MessageBox MB_OK "A translated message: $(message)"
SectionEnd