Archive: MUI2 multi-language + user language files


MUI2 multi-language + user language files
  Hi,

I searched the forum and googled around but I couldn't find a helping answer ...

I am using the Modern UI (MUI2.nsh) for a multi-language installer.
So I include the existing languages by

!insertmacro MUI_LANGUAGE "English"

>!insertmacro MUI_LANGUAGE "German"
and so on, as I want to use the strings for the existing pages.

But I also have lots of custom pages, message boxes etc. which need custom strings like
LangString Installer_Running${LANG_ENGLISH} "The installer is already running."

>LangString Installer_Running ${LANG_GERMAN} "Das Installationsprogramm wird bereits ausgeführt."
My question is: Can I use an external/ a separate file for each language?
Or is it possible to add my custom strings to the xyz.nsh files in ..\Contrib\Language files?

Thanks,
Gunther

Originally posted by Netsurfer24
Can I use an external/ a separate file for each language?
Or is it possible to add my custom strings to the xyz.nsh files in ..\Contrib\Language files?
Sure you can.

"English"

>!include LangstringsEnglish.nsh
>!insertmacro MUI_LANGUAGE "German"
>!include LangstringsGerman.nsh
>

Hi MSG!

Thanks a lot!
Sometimes things are so simple ...

Gunther