Archive: Language File - Doesn't matter which option is choosen


Language File - Doesn't matter which option is choosen
  I have a little prob.

i have a setup which has to be bilangual.
everything seems to be correct, i declared english and german langstrings


LangString WELCOME_TEXT${LANG_GERMAN} "Dieser Assistent unterstützt sie bei der Installation des ${PRODUCT_NAME}$\n$\rBei einer vorhandenen Installation wird ein ein Backup der alten Komponenten erzeugt, welches bei erfolgreicher Installation der neuen Version entfernt wird.$\n$\rSie benötigen die IP Adresse Ihres Testcenterservers zur vollständigen Durchführung der Installation.$\n$\r$\n$\rKlicken sie auf Weiter um den Vorgang fortzusetzen." 

LangString MUI_TEXT_WELCOME_INFO_TITLE ${LANG_GERMAN} "Willkommen beim Installations Assistenten für ${PRODUCT_NAME}"
LangString MUI_TEXT_WELCOME_INFO_TEXT ${LANG_GERMAN} "Dieser Assistent wird Sie durch die Installation von ${PRODUCT_NAME} begleiten.\r\n\r\nEs wird empfohlen vor der Installation alle anderen Programme zu schließen, damit bestimmte Systemdateien ohne Neustart ersetzt werden können.\r\n\r\n$_CLICK"

>LangString WELCOME_TEXT ${LANG_ENGLISH} "Welcome to ${PRODUCT_NAME}-Installation"

LangString MUI_TEXT_WELCOME_INFO_TITLE ${LANG_ENGLISH} "Welcome to the $(^NameDA) Setup Wizard"
LangString MUI_TEXT_WELCOME_INFO_TEXT ${LANG_ENGLISH} "This wizard will guide you through the installation of $(^NameDA).\r\n\r\nIt is recommended that you close all other applications before starting Setup. This will make it possible to update relevant system files without having to reboot your computer.\r\n\r\n$_CLICK"
but if i choose "english" in the installation there are still the german langstrings displayed...

It's confusing at first, but works nicely in the end...


Define your strings in both languages...


LangString MY_WELCOME_TEXT ${LANG_ENGLISH} "English Text"
LangString MY_WELCOME_INFO_TITLE ${LANG_ENGLISH} "English Text"
LangString MY_WELCOME_INFO_TEXT ${LANG_ENGLISH} "English Text"
LangString MY_MSGBOX ${LANG_ENGLISH} "English Text"

LangString MY_WELCOME_TEXT ${LANG_GERMAN} "German Text"
LangString MY_WELCOME_INFO_TITLE ${LANG_GERMAN} "German Text"
LangString MY_WELCOME_INFO_TEXT ${LANG_GERMAN} "German Text"
LangString MY_MSGBOX ${LANG_GERMAN} "German Text"

Then use this to define the MUI, Messagebox, or Interface Texts

LangString WELCOME_TEXT "$(MY_WELCOME_TEXT)"
LangString MUI_TEXT_WELCOME_INFO_TITLE "$(MY_WELCOME_INFO_TITLE)"
LangString MUI_TEXT_WELCOME_INFO_TEXT "$(MY_WELCOME_INFO_TEXT)"

Messagebox mb_ok "$(My_MSGBOX)" /SD IDOK


Cheers,

ZIMSMS