Old 12th March 2009, 12:31   #1
dbach
Member
 
Join Date: Apr 2006
Location: Somewhere in Germany
Posts: 81
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.
dbach is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump