Languages are (not) known?!
Hi.
I am confused. I build a new installer with "standard" dialogs etc. But this time the Compiler shows warnings:
unknown variable/constant "{LANG_FRENCH}" detected, ignoring (macro:_==:1)
unknown variable/constant "{LANG_GERMAN}" detected, ignoring (macro:_==:1)
unknown variable/constant "{LANG_ITALIAN}" detected, ignoring (macro:_==:1)
unknown variable/constant "{LANG_SPANISH}" detected, ignoring (macro:_==:1)
${If} $LANGUAGE == ${LANG_FRENCH}
MessageBox MB_OK|MB_ICONEXCLAMATION "Le programme d'installation fonctionne déj�_."
${ElseIf} $LANGUAGE == ${LANG_GERMAN}
MessageBox MB_OK|MB_ICONEXCLAMATION "Die Installation läuft bereits."
${ElseIf} $LANGUAGE == ${LANG_ITALIAN}
MessageBox MB_OK|MB_ICONEXCLAMATION "L'Installer è gi�_ stato avviato."
${ElseIf} $LANGUAGE == ${LANG_SPANISH}
MessageBox MB_OK|MB_ICONEXCLAMATION "El instalador ya está funcionando."
${Else}
MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running."
${EndIf}
Anyone can explain this? I am using this construct in every of my installation in the .onInit section. But this time (nsis 2.40) the compiler doesnt seem to like it. Anything wrong or missing?!
EDIT ---- SOLVED ---- EDIT ---- SOLVED ---- EDIT
Solution:
You have to add the other languages as well (e.g. "spanish") to be able to dectect SPANISH as language (${LANG_SPANISH} else it won't work! Not very good ... but ... ok.