Prev Previous Post   Next Post Next
Old 9th May 2005, 10:22   #1
Satsuki
Junior Member
 
Join Date: Jul 2004
Posts: 30
langdll and oninit

hello,

i use nsis for some time but i've spotted a bug or maybe i misunderstood myself.

i want to do a multi-langual installer.

hre's a part of my script:
...
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_RESERVEFILE_LANGDLL
!include "nsiscripts\langs\langfiles\fre.nsh"
!include "nsiscripts\langs\langfiles\eng.nsh"
...
function .oninit
!insertmacro MUI_LANGDLL_DISPLAY
....
but in the function oninit i do some system verif, like directX , windows version.... and messagebox the user if there is some error or bad version.
these messagebox remain in the french language all the time.
once the oninit function over, the GUI and all message are well translated in the selected language, but not in the oninit function.

so bug or bad nsis utilisation from me ?

i could do a StrCmp $LANGUAGE witch works in oninit but i've a dozen of sentence in oninit and the installer will add more and more language (at time there's already 5 language) so it would be realy uncool to do dozen and dozen of strcomp + goto and will complex the traduction a lot.

any possible solution to use the langstring in oninit ?

thanks a lot.
++
Satsuki is offline   Reply With Quote
 
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