Archive: !insertmacro MUI_LANGDLL_DISPLAY bug?


!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.


Search the forum. LangStrings only work after .onInit and not during.

-Stu


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?!


To display a localised message, use a switch statement with defines:

!define Msg_English ...
!define Msg_French ...
etc

-Stu