Bug 391872 - wrong message when download is paused (new DM). r=mano

This commit is contained in:
sdwilsh@shawnwilsher.com 2007-08-12 14:46:32 -07:00
Родитель 5a78d95e4a
Коммит d27efc85c3
2 изменённых файлов: 8 добавлений и 1 удалений

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

@ -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...