Bug 616193: only show Charlton trademark attribution in en-US/en-GB, don't make it localizable, r=dolske, a=blocking

This commit is contained in:
Gavin Sharp
2010-12-02 14:54:58 -05:00
parent ecabff9e31
commit ecca1b183e
5 changed files with 16 additions and 5 deletions

View File

@@ -73,6 +73,17 @@ function init(aEvent)
document.getElementById("version").value += " (" + buildDate + ")";
}
#ifdef MOZ_OFFICIAL_BRANDING
// Hide the Charlton trademark attribution for non-en-US/en-GB
// DO NOT REMOVE without consulting people involved with bug 616193
let chromeRegistry = Cc["@mozilla.org/chrome/chrome-registry;1"].
getService(Ci.nsIXULChromeRegistry);
let currentLocale = chromeRegistry.getSelectedLocale("global");
if (currentLocale != "en-US" && currentLocale != "en-GB") {
document.getElementById("extra-trademark").hidden = true;
}
#endif
#ifdef MOZ_UPDATER
gAppUpdater = new appUpdater();
#endif