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
Родитель 8a542f48b9
Коммит a6d4af6514
2 изменённых файлов: 11 добавлений и 7 удалений

Просмотреть файл

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

Просмотреть файл

@ -2,10 +2,12 @@
addonsLocalNone.label=No add-ons installed addonsLocalNone.label=No add-ons installed
addonsSearchStart.label=Searching for add-ons… addonsSearchStart.label=Searching for add-ons…
addonsSearchStart.button=Cancel 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.label=%S couldn't retrieve add-ons
addonsSearchFail.button=OK addonsSearchFail.button=OK
addonsSearchSuccess.button=Clear search addonsSearchSuccess2.button=Clear Search
addonsConfirmInstall.title=Installing Add-on addonsConfirmInstall.title=Installing Add-on
addonsConfirmInstall.install=Install addonsConfirmInstall.install=Install