|
|
#1 |
|
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. ++ |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|