Skip to content
⌘ NSIS Forum Archive

Translate cancel dialog button

3 posts

mwb#

Translate cancel dialog button

Hi,

Within the NSIS installer I use different languages. Over all this works fine but I found in the Cancel screen, the buttons are still untranslated. See below; the text is in Spanish, but the buttons still read 'Yes' and 'No'. Is this a known issue? Is there anything I can do to fix this?

Click image for larger version

Name:	cancel.png
Views:	1
Size:	3.0 KB
ID:	4480103

--
Mike
Afrow UK#
NSIS just uses the MessageBox API, which itself will use the OS language for its buttons. If you want to translate the buttons you have two options. You can create your own message box windows (via a plug-in for example). You can also hack it by starting a thread before calling MessageBox, and in the thread you use FindWindow along with ${NSD_SetText} to change the button texts. To create threads you can use the nsThread plug-in.

Stu