Bug 479645. Slight wording fix to rights stuff. r=gavin,pike.
authorMike Beltzner <beltzner@mozilla.com>
Wed, 25 Feb 2009 14:54:14 -0500
changeset 25512 ee49a98d26460a09e7799c618e0610bf68a87d0d
parent 25511 1963ead6e19bf15556b12c1bea28c69b0b039b7e
child 25519 b04f906a5454266818d0d6616060dd330d9d904b
push id5586
push userbzbarsky@mozilla.com
push dateWed, 25 Feb 2009 19:54:35 +0000
treeherdermozilla-central@ee49a98d2646 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin, pike
bugs479645
milestone1.9.2a1pre
Bug 479645. Slight wording fix to rights stuff. r=gavin,pike.
browser/components/nsBrowserGlue.js
browser/locales/en-US/chrome/browser/aboutRights.properties
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -441,37 +441,37 @@ BrowserGlue.prototype = {
     // Stick the notification onto the selected tab of the active browser window.
     var win = this.getMostRecentBrowserWindow();
     var browser = win.gBrowser; // for closure in notification bar callback
     var notifyBox = browser.getNotificationBox();
 
     var brandBundle  = this._bundleService.createBundle("chrome://branding/locale/brand.properties");
     var rightsBundle = this._bundleService.createBundle("chrome://browser/locale/aboutRights.properties");
 
-    var buttonLabel     = rightsBundle.GetStringFromName("buttonLabel");
-    var buttonAccessKey = rightsBundle.GetStringFromName("buttonAccessKey");
-    var productName     = brandBundle.GetStringFromName("brandFullName");
-    var notifyText      = rightsBundle.formatStringFromName("notifyText", [productName], 1);
+    var buttonLabel      = rightsBundle.GetStringFromName("buttonLabel");
+    var buttonAccessKey  = rightsBundle.GetStringFromName("buttonAccessKey");
+    var productName      = brandBundle.GetStringFromName("brandFullName");
+    var notifyRightsText = rightsBundle.formatStringFromName("notifyRightsText", [productName], 1);
     
     var buttons = [
                     {
                       label:     buttonLabel,
                       accessKey: buttonAccessKey,
                       popup:     null,
                       callback: function(aNotificationBar, aButton) {
                         browser.selectedTab = browser.addTab("about:rights");
                       }
                     }
                   ];
 
     // Set pref to indicate we've shown the notification.
     var currentVersion = this._prefs.getIntPref("browser.rights.version");
     this._prefs.setBoolPref("browser.rights." + currentVersion + ".shown", true);
 
-    var box = notifyBox.appendNotification(notifyText, "about-rights", null, notifyBox.PRIORITY_INFO_LOW, buttons);
+    var box = notifyBox.appendNotification(notifyRightsText, "about-rights", null, notifyBox.PRIORITY_INFO_LOW, buttons);
     box.persistence = 3; // arbitrary number, just so bar sticks around for a bit
   },
 
   // returns the (cached) Sanitizer constructor
   get Sanitizer() 
   {
     if(typeof(Sanitizer) != "function") { // we should dynamically load the script
       Cc["@mozilla.org/moz/jssubscript-loader;1"].
--- a/browser/locales/en-US/chrome/browser/aboutRights.properties
+++ b/browser/locales/en-US/chrome/browser/aboutRights.properties
@@ -1,3 +1,3 @@
 buttonLabel = Know your rights…
 buttonAccessKey = K
-notifyText = %S is free and open software from the non-profit Mozilla Foundation.
+notifyRightsText = %S is free and open source software from the non-profit Mozilla Foundation.