Skip to content
⌘ NSIS Forum Archive

Multilanguage

8 posts

fredeckbert#

Multilanguage

How to set the license text (MUI_PAGE_LICENSE text/rtf_file) depending on the chosen
language (MUI_LANGDLL_DISPLAY)? Thanks a lot.
fredeckbert#
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."
cri_ned#
in my example I use it like this:
LicenseLangString license ${LANG_ENGLISH} "license.txt"

and I use modern UI...
rene.grobbee#
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"
and i have this:
;--------------------------------
;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"
Greetings,
René
goldy1064#
!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"