Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 14th September 2012, 11:28   #1
regina_ochotzki
Junior Member
 
Join Date: Sep 2012
Posts: 3
Translate ok and cancel in MessageBox

I added translation into several languages to our installer. I noticed that the ok and cancel buttons in a MessageBox are still in English. Is it possible to translate these also?

Thanks for help
Regina
regina_ochotzki is offline   Reply With Quote
Old 14th September 2012, 11:38   #2
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,275
no and yes. no because the button text is determined by the language locale of the system being run on. yes because it is possible via means to hack the messagebox and alter the text but that can (and has been known to cause other issues).

so really, the safest way is to create your own messagebox (using nswindows i believe) which allows you to set the text as needed. it's probably not elegant but there is no version of the hack still available (i used to provide a replacement messagebox plug-in which used the hack method but lost the source code and the prior compile didn't work with newer NSIS and Windows versions). or you need to find someone willing to re-create the hack for you (i'm not able to).

-daz
DrO is offline   Reply With Quote
Old 14th September 2012, 11:47   #3
regina_ochotzki
Junior Member
 
Join Date: Sep 2012
Posts: 3
Thanks, I told my Product Owner to create a new Story to implement own message boxed if this is really important ;-)
But btw. is there a reason, why everything is translatable but the buttons in message boxes are not?
regina_ochotzki is offline   Reply With Quote
Old 14th September 2012, 11:53   #4
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,275
that's just how the OSes messagebox works. messageboxes only allow for the title, message and depending on the version of the messagebox api used, the icon.

-daz
DrO is offline   Reply With Quote
Old 14th September 2012, 11:54   #5
regina_ochotzki
Junior Member
 
Join Date: Sep 2012
Posts: 3
Thanks ;-)
regina_ochotzki is offline   Reply With Quote
Reply
Go Back   Winamp 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