Skip to content
⌘ NSIS Forum Archive

MUI2 multi-language + user language files

3 posts

Netsurfer24#

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
MSG#
Originally Posted by Netsurfer24 View Post
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.
!insertmacro MUI_LANGUAGE "English"
!include LangstringsEnglish.nsh
!insertmacro MUI_LANGUAGE "German"
!include LangstringsGerman.nsh