![]() |
#1 |
Junior Member
Join Date: Feb 2013
Posts: 2
|
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? -- Mike |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Feb 2013
Posts: 2
|
Thanks, this makes a lot of sense.
I'll not bother translating the buttons. |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|