Bug 878154 - about:plugins: plugin status is not localizable. r=bsmedberg
authorFrancesco Lodolo [:flod]
Fri, 07 Jun 2013 15:21:13 -0400
changeset 145903 d65ae86e598839196d88ea016575af20a5562c96
parent 145902 cac9a6c4ab7572bab6b4472f70362cf6d77220ef
child 145904 5860d85b0006388563f52a188584181fb71b57d3
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs878154
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 878154 - about:plugins: plugin status is not localizable. r=bsmedberg
dom/locales/en-US/chrome/plugins.properties
toolkit/content/plugins.html
--- a/dom/locales/en-US/chrome/plugins.properties
+++ b/dom/locales/en-US/chrome/plugins.properties
@@ -9,11 +9,13 @@
 title_label=About Plugins
 installedplugins_label=Installed plugins
 nopluginsareinstalled_label=No installed plugins found
 findpluginupdates_label=Find updates for installed plugins at
 file_label=File:
 path_label=Path:
 version_label=Version:
 state_label=State:
+state_enabled=Enabled
+state_disabled=Disabled
 mimetype_label=MIME Type
 description_label=Description
 suffixes_label=Suffixes
--- a/toolkit/content/plugins.html
+++ b/toolkit/content/plugins.html
@@ -138,17 +138,17 @@
         dl.appendChild(versionDd);
 
         // "State: "
         var stateDd = document.createElement("dd");
         var state = document.createElement("span");
         state.setAttribute("label", "state");
         state.appendChild(document.createTextNode(pluginsbundle.GetStringFromName("state_label") + " "));
         stateDd.appendChild(state);
-        status = plugin.isActive ? "Enabled" : "Disabled";
+        status = plugin.isActive ? pluginsbundle.GetStringFromName("state_enabled") : pluginsbundle.GetStringFromName("state_disabled");
         if (plugin.blocklistState in stateNames) {
           status += " (" + stateNames[plugin.blocklistState] + ")";
         }
         stateDd.appendChild(document.createTextNode(status));
         dl.appendChild(stateDd);
 
         // Plugin Description
         var descDd = document.createElement("dd");