[Pkg-mozext-commits] [firebug] 22/55: Put default locale into a constant

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:46:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag firebug-1.10.1
in repository firebug.

commit c3927673d824390c067ffbfc478808f408c89f1a
Author: Sebastian Zartner <sebastianzartner at gmx.de>
Date:   Thu Jul 19 13:59:07 2012 +0200

    Put default locale into a constant
---
 extension/modules/locale.js | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/extension/modules/locale.js b/extension/modules/locale.js
index 3df33d5..8e6d2ed 100644
--- a/extension/modules/locale.js
+++ b/extension/modules/locale.js
@@ -3,9 +3,11 @@
 // ********************************************************************************************* //
 // Constants
 
-var Cc = Components.classes;
-var Ci = Components.interfaces;
-var Cu = Components.utils;
+const Cc = Components.classes;
+const Ci = Components.interfaces;
+const Cu = Components.utils;
+
+const DEFAULT_LOCALE = "en-US";
 
 var EXPORTED_SYMBOLS = [];
 
@@ -246,7 +248,7 @@ Locale.getDefaultStringBundle = function()
         var uri = Services.io.newURI("chrome://firebug/locale/firebug.properties", "UTF-8", null);
         var fileURI = chromeRegistry.convertChromeURL(uri).spec;
         var parts = fileURI.split("/");
-        parts[parts.length - 2] = "en-US";
+        parts[parts.length - 2] = DEFAULT_LOCALE;
         this.defaultStringBundle = stringBundleService.createBundle(parts.join("/"));
     }
     return this.defaultStringBundle;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git



More information about the Pkg-mozext-commits mailing list