Old 9th February 2005, 09:44   #1
beradrian
Guest
 
Posts: n/a
Yes/No buttons

When using another language the confirmation message boxes appears with the button texts in English (Yes/No) not in the selected language. What should I do to fix this?
  Reply With Quote
Old 9th February 2005, 09:50   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
As far as I remember the Yes/No texts are set by Windows, not by NSIS.

-Stu
Afrow UK is offline   Reply With Quote
Old 9th February 2005, 09:53   #3
beradrian
Junior Member
 
Join Date: Feb 2005
Location: Romania
Posts: 2
Send a message via Yahoo to beradrian
What can I do to modify them?
beradrian is offline   Reply With Quote
Old 9th February 2005, 11:02   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
give this a go, it allows you to specify the button text (best to check out the readme in the file )

[edit]
and normally the button text is defined by the system but that plugin hacks around it so it should fit with what you want

-daz
DrO is offline   Reply With Quote
Old 9th February 2005, 12:33   #5
beradrian
Junior Member
 
Join Date: Feb 2005
Location: Romania
Posts: 2
Send a message via Yahoo to beradrian
Exit confirmation message

What about the exit confirmation message box?
beradrian is offline   Reply With Quote
Old 9th February 2005, 12:54   #6
DrO
 
Join Date: Sep 2003
Posts: 27,873
that plugin would need to be altered or a new one made which will work on the messageboxes that the installer directly shows by itself. the main issue is that the operating system is very inflexible when it comes to the dealing with message boxes and so extreme hacks (like the plugin i linked to) have to be done as time permits between my other Winamp projects i'll be updating that plugin and i'll see what i can get done for the handling of the built in messageboxes

-daz
DrO is offline   Reply With Quote
Old 9th February 2005, 15:47   #7
scully13
Senior Member
 
Join Date: Apr 2004
Posts: 130
Another option at least for the MUI_ABORTWARNING dialog is to remove the "!define MUI_ABORTWARNING" and add "!define MUI_CUSTOMFUNCTION_ABORT UserAbort" instead. Then create a function like such:

Function UserAbort
messagebox::show 0 2 MB_YESNO|MB_ICONEXCLAMATION 0 0 "$(TEXT_ABORTWARNING_MSG)" "$(TEXT_CAPTION_MSG)" "/but1 $(TEXT_YES_MSG)" "/but2 $(TEXT_NO_MSG)"
Pop $0
StrCmp $0 "2" 0 +2
Abort
FunctionEnd

I use an older version of DrO's excellent plugin but it would work the same you'd just need to rework the arguments to the messagebox::show. I also use his plugin to show message boxes in the correct language.
scully13 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