зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1208141 - r=ttaubert
--HG-- extra : commitid : 72gDzk9rRI extra : histedit_source : 4eb30bdde87f87075d8c1acb690b5cd6bdd82140
This commit is contained in:
Родитель
2d116e6da2
Коммит
49f914d2d7
|
@ -623,17 +623,12 @@ ContentSearchUIController.prototype = {
|
|||
return;
|
||||
}
|
||||
let searchWithHeader = document.getElementById("contentSearchSearchWithHeader");
|
||||
while (searchWithHeader.firstChild) {
|
||||
searchWithHeader.firstChild.remove();
|
||||
}
|
||||
if (this.input.value) {
|
||||
let html = "<span class='contentSearchSearchWithHeaderSearchText'>" +
|
||||
this.input.value + "</span>";
|
||||
html = this._strings.searchForKeywordsWith.replace("%S", html);
|
||||
searchWithHeader.innerHTML = html;
|
||||
return;
|
||||
searchWithHeader.innerHTML = this._strings.searchForSomethingWith;
|
||||
searchWithHeader.querySelector('.contentSearchSearchWithHeaderSearchText').textContent = this.input.value;
|
||||
} else {
|
||||
searchWithHeader.textContent = this._strings.searchWithHeader;
|
||||
}
|
||||
searchWithHeader.appendChild(document.createTextNode(this._strings.searchWithHeader));
|
||||
},
|
||||
|
||||
_speculativeConnect: function () {
|
||||
|
|
|
@ -33,14 +33,15 @@ cmd_addFoundEngine=Add "%S"
|
|||
# grouped in a submenu using cmd_addFoundEngineMenu as a label.
|
||||
cmd_addFoundEngineMenu=Add search engine
|
||||
|
||||
# LOCALIZATION NOTE (searchForKeywordsWith):
|
||||
# LOCALIZATION NOTE (searchForSomethingWith):
|
||||
# This string is used to build the header above the list of one-click
|
||||
# search providers: "Search for <user-typed keywords> with:"
|
||||
searchForKeywordsWith=Search for %S with:
|
||||
# search providers: "Search for <user-typed string> with:"
|
||||
# NB: please leave the <span> and its class exactly as it is in English.
|
||||
searchForSomethingWith=Search for <span class='contentSearchSearchWithHeaderSearchText'></span> with:
|
||||
|
||||
# LOCALIZATION NOTE (searchWithHeader):
|
||||
# The wording of this string should be as close as possible to
|
||||
# searchForKeywordsWith. This string will be used when the user
|
||||
# searchForSomethingWith. This string will be used when the user
|
||||
# has not typed anything.
|
||||
searchWithHeader=Search with:
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ this.ContentSearch = {
|
|||
}
|
||||
this._searchSuggestionUIStrings = {};
|
||||
let searchBundle = Services.strings.createBundle("chrome://browser/locale/search.properties");
|
||||
let stringNames = ["searchHeader", "searchPlaceholder", "searchForKeywordsWith",
|
||||
let stringNames = ["searchHeader", "searchPlaceholder", "searchForSomethingWith",
|
||||
"searchWithHeader", "searchSettings"];
|
||||
for (let name of stringNames) {
|
||||
this._searchSuggestionUIStrings[name] = searchBundle.GetStringFromName(name);
|
||||
|
|
Загрузка…
Ссылка в новой задаче