zepitou
26th May 2006 16:23 UTC
!insertmacro MUI_LANGDLL_DISPLAY bug?
Hey,
I'm building multi language installer with MUI, so that to allow customer to choose installation language. I use :
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd
And it works, but in any case I write some code in this function (like things I would like to be perfomed before installation really start, and/or calling a function) with LangString var (to show what's happenning regarding to the language choosen), it's not localized (always choosing the english LangString var). When installation really start, it's back into choosen language...
I'm using NSIS v.2.16
Cédric.
Afrow UK
26th May 2006 17:24 UTC
Search the forum. LangStrings only work after .onInit and not during.
-Stu
zepitou
29th May 2006 08:59 UTC
ty for the answer.
Except that I don't really understand why.
During .onInit, internal var "$Language" is acessible and contain the right value regarding to the language choosen with "insertmacro MUI_LANGDLL_DISPLAY". So that with a simple "${Switch} $LANGUAGE" I can still show localized message... but no "LangString" available?!
Afrow UK
29th May 2006 09:45 UTC
To display a localised message, use a switch statement with defines:
!define Msg_English ...
!define Msg_French ...
etc
-Stu