Yes/No buttons
When using another language the confirmation message boxes appears with the button texts in English (Yes/No) not in the selected language. What should I do to fix this?
Archive: Yes/No buttons
Yes/No buttons
When using another language the confirmation message boxes appears with the button texts in English (Yes/No) not in the selected language. What should I do to fix this?
As far as I remember the Yes/No texts are set by Windows, not by NSIS.
-Stu
What can I do to modify them?
give this a go, it allows you to specify the button text (best to check out the readme in the file ;) )
[edit]
and normally the button text is defined by the system but that plugin hacks around it so it should fit with what you want
-daz
Exit confirmation message
What about the exit confirmation message box?
that plugin would need to be altered or a new one made which will work on the messageboxes that the installer directly shows by itself. the main issue is that the operating system is very inflexible when it comes to the dealing with message boxes and so extreme hacks (like the plugin i linked to) have to be done :( as time permits between my other Winamp projects i'll be updating that plugin and i'll see what i can get done for the handling of the built in messageboxes
-daz
Another option at least for the MUI_ABORTWARNING dialog is to remove the "!define MUI_ABORTWARNING" and add "!define MUI_CUSTOMFUNCTION_ABORT UserAbort" instead. Then create a function like such:
Function UserAbort
messagebox::show 0 2 MB_YESNO|MB_ICONEXCLAMATION 0 0 "$(TEXT_ABORTWARNING_MSG)" "$(TEXT_CAPTION_MSG)" "/but1 $(TEXT_YES_MSG)" "/but2 $(TEXT_NO_MSG)"
Pop $0
StrCmp $0 "2" 0 +2
Abort
FunctionEnd
I use an older version of DrO's excellent plugin but it would work the same you'd just need to rework the arguments to the messagebox::show. I also use his plugin to show message boxes in the correct language.