[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torbutton/master] Bug 5183: Localize the "Spoof english" button strings.



commit 9b8bef5e3b8dd892fe03c11639dfddaa1bc3a276
Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date:   Sat Mar 2 11:23:27 2013 -0800

    Bug 5183: Localize the "Spoof english" button strings.
---
 src/chrome/content/torbutton.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 49cd9b8..29baa0c 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -483,13 +483,12 @@ function torbutton_prompt_for_language_preference() {
       .getService(Components.interfaces.nsIPromptService);
 
   // Display two buttons, both with string titles.
-  var flags = prompts.BUTTON_POS_0 * prompts.BUTTON_TITLE_IS_STRING +
-      prompts.BUTTON_POS_1 * prompts.BUTTON_TITLE_IS_STRING;
+  var flags = prompts.STD_YES_NO_BUTTONS;
 
   var strings = torbutton_get_stringbundle();
   var message = strings.GetStringFromName("torbutton.popup.prompted_language");
 
-  var response = prompts.confirmEx(null, "", message, flags, "Yes", "No", null,
+  var response = prompts.confirmEx(null, "", message, flags, null, null, null,
       null, {value: false});
 
   // Update preferences to reflect their response and to prevent the prompt from

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits