Hello,
how can I set the license file (RTF) in the license Dialog depending on the language chosen ?
Thanks.
BYe Defcon0.
How to set the license file depending on the language
12 posts
OK.
I've added
And I've got one warning:
LicenseLangString "license" set multiple times for 0, wasting space (C:\Documents and Settings\Administrator\Desktop\Setup\Setup.nsi:18)
And the text isn't set to the right language 🙁
What am I doing wrong ?
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
And I've got one warning:
LicenseLangString "license" set multiple times for 0, wasting space (C:\Documents and Settings\Administrator\Desktop\Setup\Setup.nsi:18)
And the text isn't set to the right language 🙁
What am I doing wrong ?
It would help if you included the actual code that breaks.
Did you insert this after defining the multiple license files?
CF
Did you insert this after defining the multiple license files?
You should probably have a look at the languages.nsi example in the ${NSISDIR}\Examples folder.LicenseData $(license)
CF
I read the languages.nsi but still no success
At first I forgot LicenseData $(license)
Now I have
But what do I write instead of Lizenz.rtf here ?
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)
But what do I write instead of Lizenz.rtf here ?
!insertmacro MUI_PAGE_LICENSE "Lizenz.rtf"
That should be
CF
and the correct file will be picked based on the system language!insertmacro MUI_PAGE_LICENSE $(MyLicense)
CF
Mhm. Still doesn't work 🙁
I have:
2 warnings:
LicenseLangString "MyLicense" set multiple times for 0, wasting space (C:\Documents and Settings\Administrator\Desktop\Setup\Setup.nsi:40)
LangString "MyLicense" is not set in language table of language German
And when I pick English language it works and the English License Agreement is there and when I pick German the License Text field is empty.
I have:
LicenseLangString MyLicense ${LANG_ENGLISH} "Lizenz_eng.rtf"The warning:
LicenseLangString MyLicense ${LANG_GERMAN} "Lizenz.rtf"
LicenseData $(MyLicense)
!insertmacro MUI_PAGE_LICENSE $(MyLicense)
2 warnings:
LicenseLangString "MyLicense" set multiple times for 0, wasting space (C:\Documents and Settings\Administrator\Desktop\Setup\Setup.nsi:40)
LangString "MyLicense" is not set in language table of language German
And when I pick English language it works and the English License Agreement is there and when I pick German the License Text field is empty.
Could you attach the script that you are using?
CF
CF
Here's the file.
Thanks 🙂
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
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 !
Thanks to all !