зеркало из https://github.com/mozilla/pjs.git
Bug 391872 - wrong message when download is paused (new DM). r=mano
This commit is contained in:
Родитель
5a78d95e4a
Коммит
d27efc85c3
|
@ -1,4 +1,5 @@
|
|||
transferred=%1SKB of %2SKB
|
||||
# LOCALIZATION NOTE (paused): — is the "em dash" (long dash)
|
||||
paused=Paused — #1
|
||||
downloading=Downloading
|
||||
notStarted=Not Started
|
||||
failed=Failed
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
function DownloadProgressListener()
|
||||
{
|
||||
var sb = document.getElementById("downloadStrings");
|
||||
this._paused = sb.getString("paused");
|
||||
this._statusFormat = sb.getString("statusFormat2");
|
||||
this._transferSameUnits = sb.getString("transferSameUnits");
|
||||
this._transferDiffUnits = sb.getString("transferDiffUnits");
|
||||
|
@ -95,6 +96,11 @@ DownloadProgressListener.prototype =
|
|||
|
||||
autoRemoveAndClose(aDownload);
|
||||
break;
|
||||
case Ci.nsIDownloadManager.DOWNLOAD_PAUSED:
|
||||
let transfer = dl.getAttribute("status-internal");
|
||||
let status = this._replaceInsert(this._paused, 1, transfer);
|
||||
dl.setAttribute("status", status);
|
||||
break;
|
||||
}
|
||||
|
||||
// autoRemoveAndClose could have already closed our window...
|
||||
|
|
Загрузка…
Ссылка в новой задаче