How to set the license file depending on the language
Hello,
how can I set the license file (RTF) in the license Dialog depending on the language chosen ?
Thanks.
BYe Defcon0.
Archive: How to set the license file depending on the language
How to set the license file depending on the language
Hello,
how can I set the license file (RTF) in the license Dialog depending on the language chosen ?
Thanks.
BYe Defcon0.
OK.
I've added
LicenseLangString license ${LANG_GERMAN} Lizenz.rtfinto the first 10 lines (after all the !define's).
LicenseLangString license ${LANG_ENGLISH} Lizenz_eng.rtf
It would help if you included the actual code that breaks.
Did you insert this after defining the multiple license files?
LicenseData $(license)
I read the languages.nsi but still no success
At first I forgot LicenseData $(license)
Now I have
LicenseLangString MyLicense ${LANG_GERMAN} "Lizenz.rtf"after the !defines.
LicenseLangString MyLicense ${LANG_ENGLISH} "Lizenz_eng.rtf"
LicenseData $(MyLicense)
!insertmacro MUI_PAGE_LICENSE "Lizenz.rtf"
That should be
!insertmacro MUI_PAGE_LICENSE $(MyLicense)
and the correct file will be picked based on the system languageMhm. Still doesn't work :(
I have:
LicenseLangString MyLicense ${LANG_ENGLISH} "Lizenz_eng.rtf"The warning:
LicenseLangString MyLicense ${LANG_GERMAN} "Lizenz.rtf"
LicenseData $(MyLicense)
!insertmacro MUI_PAGE_LICENSE $(MyLicense)
Could you attach the script that you are using?
CF
Here's the file.
Thanks :)
LicenseLangString MyLicense ${LANG_ENGLISH} "Lizenz_eng.rtf"these lines should be placed after those:
LicenseLangString MyLicense ${LANG_GERMAN} "Lizenz.rtf"
!insertmacro MUI_LANGUAGE "English"and the licenseData line should be removed as the MUI LICENSEPAGE macro will do it for ya.
!insertmacro MUI_LANGUAGE "German"
... and you are missing !insertmacro MUI_RESERVEFILE_LANGDLL
Check also Check ${NSISDIR}\Examples\Modern UI\MultiLanguage.nsi".
CF
Mhm I didn't needed that line I think. It works with Comm@nder12s lines.
Thanks to all !