Archive: Translate cancel dialog button


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?

Attachment 50468

--
Mike


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


Thanks, this makes a lot of sense.
I'll not bother translating the buttons.