Bug 518366: Clear search button shown when there are no recommended add-ons [r=gavin.sharp]

This commit is contained in:
Mark Finkle 2009-10-24 01:13:13 -04:00
parent 56749ded5a
commit 276e0de912
2 changed files with 11 additions and 7 deletions

View File

@ -526,10 +526,12 @@ var ExtensionsView = {
let strings = document.getElementById("bundle_browser");
if (aAddons.length == 0) {
let item = this.displaySectionMessage("repo",
strings.getString("addonsSearchNone.label"),
strings.getString("addonsSearchSuccess.button"),
true);
let msg = aIsRecommended ? strings.getString("addonsSearchNone.recommended") :
strings.getString("addonsSearchNone.search");
let button = aIsRecommended ? strings.getString("addonsSearchNone.button") :
strings.getString("addonsSearchSuccess2.button");
let item = this.displaySectionMessage("repo", msg, button, true);
if (aSelectFirstResult)
this._list.scrollBoxObject.scrollToElement(item);
return;
@ -570,7 +572,7 @@ var ExtensionsView = {
}
if (!aIsRecommended)
this.displaySectionMessage("repo", null, strings.getString("addonsSearchSuccess.button"), true);
this.displaySectionMessage("repo", null, strings.getString("addonsSearchSuccess2.button"), true);
},
showPage: function ev_showPage(aItem) {

View File

@ -2,10 +2,12 @@
addonsLocalNone.label=No add-ons installed
addonsSearchStart.label=Searching for add-ons…
addonsSearchStart.button=Cancel
addonsSearchNone.label=No matches found
addonsSearchNone.search=No matches found
addonsSearchNone.recommended=No recommended add-ons
addonsSearchNone.button=Try Again
addonsSearchFail.label=%S couldn't retrieve add-ons
addonsSearchFail.button=OK
addonsSearchSuccess.button=Clear search
addonsSearchSuccess2.button=Clear Search
addonsConfirmInstall.title=Installing Add-on
addonsConfirmInstall.install=Install