зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1362112 - Add missing string in aboutUrlClassifier.properties. r=francois
MozReview-Commit-ID: HXptt8ElxSX --HG-- extra : rebase_source : 7e114b77be4de632273da79080d8e658ea60d7b4
This commit is contained in:
Родитель
4a15743eb6
Коммит
09aa558f00
|
@ -580,7 +580,7 @@ PROT_ListManager.prototype.updateError_ = function(table, updateUrl, result) {
|
|||
this.updateInterval, false);
|
||||
|
||||
Services.obs.notifyObservers(null, "safebrowsing-update-finished",
|
||||
"update error(" + result + ")");
|
||||
"update error: " + result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -608,7 +608,7 @@ PROT_ListManager.prototype.downloadError_ = function(table, updateUrl, status) {
|
|||
delay, false);
|
||||
|
||||
Services.obs.notifyObservers(null, "safebrowsing-update-finished",
|
||||
"download error(" + status + ")");
|
||||
"download error: " + status);
|
||||
}
|
||||
|
||||
PROT_ListManager.prototype.QueryInterface = function(iid) {
|
||||
|
|
|
@ -85,7 +85,17 @@ var Provider = {
|
|||
document.getElementById("update-" + p).disabled = false;
|
||||
|
||||
let elem = document.getElementById(p + "-col-lastupdateresult");
|
||||
elem.childNodes[0].nodeValue = aData;
|
||||
if (aData.startsWith("success")) {
|
||||
elem.childNodes[0].nodeValue = bundle.GetStringFromName("success");
|
||||
} else if (aData.startsWith("update error")) {
|
||||
elem.childNodes[0].nodeValue =
|
||||
bundle.formatStringFromName("updateError", [aData.split(": ")[1]], 1);
|
||||
} else if (aData.startsWith("download error")) {
|
||||
elem.childNodes[0].nodeValue =
|
||||
bundle.formatStringFromName("downloadError", [aData.split(": ")[1]], 1);
|
||||
} else {
|
||||
elem.childNodes[0].nodeValue = aData;
|
||||
}
|
||||
},
|
||||
|
||||
register() {
|
||||
|
|
|
@ -17,3 +17,9 @@ Disabled = Disabled
|
|||
Updating = updating
|
||||
|
||||
CannotUpdate = cannot update
|
||||
|
||||
success = success
|
||||
|
||||
updateError = update error (%S)
|
||||
|
||||
downloadError = download error (%S)
|
Загрузка…
Ссылка в новой задаче