Lenge
19th October 2007 09:27 UTC
MUI: Wrong language in message boxes
Hello world,
is there any way to make the MUI abort warning (and all other message boxes) use the language specified by MUI_LANGUAGE for their buttons regardless of the OS language?
I have set MUI_LANGUAGE to English.
When the installer runs on a German Windows XP, the abort warning box shows "Ja" and "Nein" buttons below the english message text (instead of "Yes" and "No").
I'd suggest to make all message boxes always use the language defined by MUI_LANGUAGE.
Jens
Besides - do I have any option to make the MUI abort message box use MB_ICONQUESTION instead of MB_ICONEXCLAMATION?
kichik
19th October 2007 11:55 UTC
Message box buttons can't be localized. See the following for more details:
http://sourceforge.net/tracker/index...49&atid=373085
As for changing the icon, you'd have to edit Contrib\Modern UI\System.nsh.
Lenge
19th October 2007 16:20 UTC
As most other installation systems I have worked with do have localized message boxes, I suggest that NSIS should offer them too.
A straightforward approach would be to internally use user-defined message boxes with custom button texts.
This would allow NSIS to internally localize the button texts before passing them to the operating system.
In the meantime, is there a way to use my own .onUserAbort function yet still work with MUI? (If I could somehow disable MUI's abort function and use my own instead, I'd be able to use my own message box with customized button texts.)
Jens
kichik
19th October 2007 16:24 UTC
You can define your own function with MUI_CUSTOMFUNCTION_ABORT and remove MUI_ABORTWARNING to avoid the other message box. You can use the MessageBox plug-in to change the button texts.
http://nsis.sourceforge.net/MessageBox_plug-in
Lenge
20th October 2007 00:12 UTC
Thank you very much for the hint!
I'll have a look at the plugin and see what I can do.