[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r18706: {torbutton} Fix bug 910: failure to replace LANG in navigagtor.appVersio (torbutton/trunk/src/chrome/content)
Author: mikeperry
Date: 2009-02-27 02:57:21 -0500 (Fri, 27 Feb 2009)
New Revision: 18706
Modified:
torbutton/trunk/src/chrome/content/torbutton.js
Log:
Fix bug 910: failure to replace LANG in
navigagtor.appVersion.
Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js 2009-02-27 03:05:27 UTC (rev 18705)
+++ torbutton/trunk/src/chrome/content/torbutton.js 2009-02-27 07:57:21 UTC (rev 18706)
@@ -779,18 +779,22 @@
try {
var lang = new RegExp("LANG", "gm");
var appname = torprefs.getCharPref("appname_override");
+ var appvers = torprefs.getCharPref("appversion_override");
if(torprefs.getBoolPref("spoof_english")) {
appname = appname.replace(lang,
torprefs.getCharPref("spoof_locale"));
+ appvers = appvers.replace(lang,
+ torprefs.getCharPref("spoof_locale"));
} else {
appname = appname.replace(lang,
m_tb_prefs.getCharPref("general.useragent.locale"));
+ appvers = appvers.replace(lang,
+ m_tb_prefs.getCharPref("general.useragent.locale"));
}
m_tb_prefs.setCharPref("general.appname.override", appname);
- m_tb_prefs.setCharPref("general.appversion.override",
- torprefs.getCharPref("appversion_override"));
+ m_tb_prefs.setCharPref("general.appversion.override", appvers);
m_tb_prefs.setCharPref("general.platform.override",
torprefs.getCharPref("platform_override"));