зеркало из https://github.com/mozilla/pjs.git
Bug 553143 - Make it easier to view all add-ons (recommended and search results) [r=vingtetun]
This commit is contained in:
Родитель
c57f11d501
Коммит
b575b3cecb
|
@ -604,9 +604,15 @@ var ExtensionsView = {
|
|||
if (aTotalResults > aAddons.length) {
|
||||
let showmore = document.createElement("richlistitem");
|
||||
showmore.setAttribute("typeName", "showmore");
|
||||
showmore.setAttribute("title", strings.getFormattedString("addonsSearchMore.label", [aTotalResults]));
|
||||
showmore.setAttribute("description", strings.getFormattedString("addonsSearchMore.description", [aAddons.length]));
|
||||
|
||||
|
||||
let titleBase = strings.getString("addonsSearchMore.label");
|
||||
let title = PluralForm.get(aTotalResults, titleBase).replace("#1", aTotalResults);
|
||||
showmore.setAttribute("title", title);
|
||||
|
||||
let descBase = strings.getString("addonsSearchMore.description");
|
||||
let desc = PluralForm.get(aAddons.length, descBase).replace("#1", aAddons.length);
|
||||
showmore.setAttribute("description", desc);
|
||||
|
||||
let url = gPrefService.getCharPref("extensions.getAddons.search.browseURL");
|
||||
url = url.replace(/%TERMS%/g, encodeURIComponent(this.searchBox.value));
|
||||
url = formatter.formatURL(url);
|
||||
|
|
|
@ -8,11 +8,19 @@ addonsSearchNone.button=Try Again
|
|||
addonsSearchFail.label=%S couldn't retrieve add-ons
|
||||
addonsSearchFail.button=OK
|
||||
addonsSearchSuccess2.button=Clear Search
|
||||
addonsSearchMore.label=Show all %S results
|
||||
addonsSearchMore.description=If these %S results aren't what you're looking for, try this
|
||||
addonsBrowseAll.label=Browse all add-ons
|
||||
addonsBrowseAll.description=addons.mozilla.org has many to explore
|
||||
|
||||
# LOCALIZATION NOTE (addonsSearchMore.label): Semi-colon list of plural forms.
|
||||
# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
|
||||
# #1 total number of add-ons that match the search terms
|
||||
addonsSearchMore.label=Show result;Show all #1 results
|
||||
|
||||
# LOCALIZATION NOTE (addonsSearchMore.description): Semi-colon list of plural forms.
|
||||
# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
|
||||
# #1 number of search results currently visible
|
||||
addonsSearchMore.description=If this result isn't what you're looking for, try this;If these #1 results aren't what you're looking for, try this
|
||||
|
||||
addonsSearchEngine.description=Integrated Search
|
||||
|
||||
addonsConfirmInstall.title=Installing Add-on
|
||||
|
|
Загрузка…
Ссылка в новой задаче