Multilanguage
How to set the license text (MUI_PAGE_LICENSE text/rtf_file) depending on the chosen
language (MUI_LANGDLL_DISPLAY)? Thanks a lot.
Archive: Multilanguage
Multilanguage
How to set the license text (MUI_PAGE_LICENSE text/rtf_file) depending on the chosen
language (MUI_LANGDLL_DISPLAY)? Thanks a lot.
Use LicenseLangString. See Examples\languages.nsi for an example.
It works for the classic UI but I can't get it work for the modern UI.
LicenseLangString... "Does the same as LangString only it loads the string from a text/RTF file
and defines a special LangString that can be used only by LicenseData."
You can also use that LangString for MUI_PAGE_LICENSE.
in my example I use it like this:
LicenseLangString license ${LANG_ENGLISH} "license.txt"
and I use modern UI...
Can someone plz post the License part of there script for me, as i don't know what i need to past where
i want to use this:
LicenseLangString license ${LANG_ENGLISH} "license.txt"
;--------------------------------
;Language Selection Dialog Settings
;Remember the installer language
!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
!define MUI_LANGDLL_REGISTRY_KEY "Software\UFM Installer"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
;--------------------------------
; Pages
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\orange-r-nsis.bmp"
!define MUI_HEADERIMAGE_RIGHT
!insertmacro MUI_PAGE_LICENSE "license.txt"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "Dutch"
!insertmacro MUI_PAGE_LICENSE "$(myLicense)"
....
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "Dutch"
LicenseLangString myLicense ${LANG_ENGLISH} "license_en.txt"
LicenseLangString myLicense ${LANG_DUTCH} "license_nl.txt"
Thx man that worked,
Greetings,
René