зеркало из https://github.com/mozilla/gecko-dev.git
Bug 602535 - "in download manager, change "Remove" button to "Delete" button" [r=mark.finkle]
This commit is contained in:
Родитель
23530dfa8a
Коммит
01548314b1
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче