Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Languages are (not) known?! (http://forums.winamp.com/showthread.php?t=304090)

dbach 12th March 2009 12:31

Languages are (not) known?!
 
Hi.

I am confused. I build a new installer with "standard" dialogs etc. But this time the Compiler shows warnings:

code:

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)




code:

${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.


All times are GMT. The time now is 17:25.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.