Old 25th April 2013, 08:34   #1
mwb
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?

Click image for larger version

Name:	cancel.png
Views:	256
Size:	3.0 KB
ID:	50468

--
Mike
mwb is offline   Reply With Quote
Old 25th April 2013, 12:09   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 25th April 2013, 12:26   #3
mwb
Junior Member
 
Join Date: Feb 2013
Posts: 2
Thanks, this makes a lot of sense.
I'll not bother translating the buttons.
mwb is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump