Follow-up fix for bug 562760 to allow language packs to show up in the add-ons manager. r=dtownsend
authorBen Parr <bparr@mozilla.com>
Thu, 10 Jun 2010 18:47:15 -0700
changeset 43492 63f5ac31b8c487a1391d493a6a003d89a0d06875
parent 43491 0d404b63f71ba57ea633ebee489165fe7101c9ed
child 43493 71446dba02c81872f53176e211b8babecc76a819
push id13734
push userdtownsend@mozilla.com
push dateFri, 11 Jun 2010 01:47:44 +0000
treeherdermozilla-central@63f5ac31b8c4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdtownsend
bugs562760
milestone1.9.3a6pre
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
Follow-up fix for bug 562760 to allow language packs to show up in the add-ons manager. r=dtownsend
toolkit/locales/en-US/chrome/mozapps/extensions/extensions.dtd
toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties
toolkit/mozapps/extensions/content/extensions.js
toolkit/mozapps/extensions/content/extensions.xul
--- a/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.dtd
+++ b/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.dtd
@@ -5,17 +5,17 @@
 <!ENTITY listEmpty.search.label               "Could not find any matching add-ons">
 <!ENTITY listEmpty.button.label               "Learn more about add-ons">
 
 
 <!-- categories / views -->
 <!-- LOCALIZATION NOTE: These should match the header-* entries in extensions.properties -->
 <!ENTITY view.search.label                    "Search">
 <!ENTITY view.discover.label                  "Get Add-ons">
-<!ENTITY view.languages.label                 "Languages">
+<!ENTITY view.locales.label                   "Languages">
 <!ENTITY view.searchengines.label             "Search Engines">
 <!ENTITY view.features.label                  "Extensions">
 <!ENTITY view.appearance.label                "Themes">
 <!ENTITY view.plugins.label                   "Plugins">
 
 <!-- addon updates -->
 <!ENTITY updates.updateNow.label              "Update add-ons">
 <!ENTITY updates.updating.label               "Updating add-ons">
--- a/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties
+++ b/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties
@@ -4,17 +4,17 @@ aboutWindowCloseButton=Close
 #LOCALIZATION NOTE (aboutWindowVersionString) %S is the addon version
 aboutWindowVersionString=version %S
 #LOCALIZATION NOTE (aboutAddon) %S is the addon name
 aboutAddon=About %S
 
 #LOCALIZATION NOTE These should match the view.*.label entities in extensions.dtd
 header-search=Search Results
 header-discover=Get Add-ons
-header-language=Languages
+header-locale=Languages
 header-searchengine=Search Engines
 header-extension=Extensions
 header-theme=Themes
 header-plugin=Plugins
 
 #LOCALIZATION NOTE (header-goBack) %S is the name of the pane to go back to
 header-goBack=Back to %S
 
--- a/toolkit/mozapps/extensions/content/extensions.js
+++ b/toolkit/mozapps/extensions/content/extensions.js
@@ -609,17 +609,17 @@ var gCategories = {
         if (gViewController.parseViewId(viewId).type == "search") {
           viewId += encodeURIComponent(gHeader.searchQuery);
         }
 
         gViewController.loadView(viewId);
       }
     }, false);
 
-    var maybeHidden = ["addons://list/language", "addons://list/searchengine"];
+    var maybeHidden = ["addons://list/locale", "addons://list/searchengine"];
     maybeHidden.forEach(function(aId) {
       var type = gViewController.parseViewId(aId).param;
       AddonManager.getAddonsByTypes([type], function(aAddonsList) {
         self.get(aId).hidden = (aAddonsList.length == 0);
 
         if (aAddonsList.length > 0)
           return;
 
--- a/toolkit/mozapps/extensions/content/extensions.xul
+++ b/toolkit/mozapps/extensions/content/extensions.xul
@@ -103,17 +103,17 @@
         <richlistitem id="category-search" value="addons://search/"
                       class="category"
                       name="&view.search.label;" disabled="true"/>
         <richlistitem id="category-discover" value="addons://discover/"
                       class="category"
                       name="&view.discover.label;"/>
         <richlistitem id="category-languages" value="addons://list/locale"
                       class="category"
-                      name="&view.languages.label;" hidden="true"/>
+                      name="&view.locales.label;" hidden="true"/>
         <richlistitem id="category-searchengines"
                       value="addons://list/searchengine"
                       class="category"
                       name="&view.searchengines.label;" hidden="true"/>
         <richlistitem id="category-extensions" value="addons://list/extension"
                       class="category"
                       name="&view.features.label;"/>
         <richlistitem id="category-themes" value="addons://list/theme"