Bug 602535 - "in download manager, change "Remove" button to "Delete" button" [r=mark.finkle]

This commit is contained in:
Wesley Johnston 2010-10-08 09:18:00 -04:00
Родитель 23530dfa8a
Коммит 01548314b1
4 изменённых файлов: 11 добавлений и 5 удалений

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

@ -140,7 +140,7 @@
<xul:label class="hide-on-select download-retry-failed normal" value="&downloadFailed.label;" xbl:inherits="state" />
<xul:button class="show-on-select download-retry" label="&downloadRetry.label;"
oncommand="DownloadsView.retryDownload(document.getBindingParent(this));"/>
<xul:button class="show-on-select download-remove" label="&downloadRemove.label;"
<xul:button class="show-on-select download-remove" label="&downloadDelete.label;"
oncommand="DownloadsView.removeDownload(document.getBindingParent(this));"/>
</xul:hbox>
</xul:vbox>
@ -164,7 +164,7 @@
<xul:spacer flex="1"/>
<xul:button anonid="open-button" label="&downloadOpen2.label;"
oncommand="DownloadsView.openDownload(document.getBindingParent(this));"/>
<xul:button anonid="remove-button" label="&downloadRemove.label;"
<xul:button anonid="remove-button" label="&downloadDelete.label;"
oncommand="DownloadsView.removeDownload(document.getBindingParent(this));"/>
</xul:hbox>
</xul:vbox>

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

@ -377,10 +377,14 @@ var DownloadsView = {
},
removeDownload: function dv_removeDownload(aItem) {
this._dlmgr.removeDownload(aItem.getAttribute("downloadID"));
let strings = Elements.browserBundle;
let f = this._getLocalFile(aItem.getAttribute("file"));
if (f.exists())
f.remove(false);
let res = Services.prompt.confirm(null, strings.getString("downloadsDeleteTitle"), f.leafName);
if(res) {
this._dlmgr.removeDownload(aItem.getAttribute("downloadID"));
if (f.exists())
f.remove(false);
}
},
cancelDownload: function dv_cancelDownload(aItem) {

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

@ -56,6 +56,7 @@
<!ENTITY downloadResume.label "Resume">
<!ENTITY downloadRetry.label "Retry">
<!ENTITY downloadRemove.label "Remove">
<!ENTITY downloadDelete.label "Delete">
<!ENTITY downloadFailed.label "Failed">
<!ENTITY noResults.label "No results">

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

@ -78,6 +78,7 @@ donwloadsYesterday=Yesterday
# LOCALIZATION NOTE (MonthDate): #1 month name; #2 date number; e.g., January 22
downloadsMonthDate=#1 #2
downloadsEmpty=No downloads
downloadsDeleteTitle=Delete File
# Alerts
alertAddons=Add-ons