Old 26th May 2006, 16:23   #1
zepitou
Junior Member
 
Join Date: May 2006
Location: France
Posts: 13
Exclamation !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.
zepitou is offline   Reply With Quote
Old 26th May 2006, 17:24   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Search the forum. LangStrings only work after .onInit and not during.

-Stu
Afrow UK is offline   Reply With Quote
Old 29th May 2006, 08:59   #3
zepitou
Junior Member
 
Join Date: May 2006
Location: France
Posts: 13
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?!

Last edited by zepitou; 29th May 2006 at 09:37.
zepitou is offline   Reply With Quote
Old 29th May 2006, 09:45   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
To display a localised message, use a switch statement with defines:

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

-Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump