multilingual license text files
Hi folks,
there are 2 text files that got to be assigned to the "license text window". German and English. So far I use this syntax (and it runs):
; License page
!insertmacro MUI_PAGE_LICENSE "L:\Projekte\Projekt Test\Lizenz1031.txt"
.
.
.; Language files
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "German"
Language selection dialoge for the user is offerd by this:
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd
That code works for German, but just for German only.
for English the path would be:
"L:\Projekte\Projekt Test\Lizenz1033.txt"
I would like to use a "Variable" as parameter for MUI_PAGE_LICENSE , assigned with one the 2 pathes, selected wether the user chooses English or German.
Programming languages that I am familiar with, do offer that (parameter)methode. How is the syntax in this "NSIS language"? Please help me with a proper syntax example!
Somewhere else in the procedure I already distinguish the languages like this, and it works:
${If} $Language == '1031'
.... how is the code for the path assignment to the Variable??
${Else}
.... how is the code for the path assignment to the Variable??
${EndIf}
and where has that to be placed in the procedure, before what, after what?
By the way: Is there any "official" Name for the language used here? So I would be able to get literature from the bookshop to prevent to show up in this forum like a newby.:weird:
Regards
pkfode