summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-07 21:26:23 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-07 21:26:23 +0200
commit034d87c836f9fba82142a06b5f666c84ca10bd50 (patch)
tree805cfda0521741b9da5a58c0c8f3ec6e010713d5 /module/plugins/hooks
parent[ExtractArchive] Improve send2trash feature (diff)
downloadpyload-034d87c836f9fba82142a06b5f666c84ca10bd50.tar.xz
[YadiSk] Fix https://github.com/pyload/pyload/issues/1321
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/AntiVirus.py2
-rw-r--r--module/plugins/hooks/ExtractArchive.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/AntiVirus.py b/module/plugins/hooks/AntiVirus.py
index f94d8d205..78f5aaa23 100644
--- a/module/plugins/hooks/AntiVirus.py
+++ b/module/plugins/hooks/AntiVirus.py
@@ -85,7 +85,7 @@ class AntiVirus(Hook):
send2trash.send2trash(file)
else:
- self.logWarning("Unable to move file to trash, move to quarantine instead")
+ self.logWarning(_("Unable to move file to trash, move to quarantine instead"))
pyfile.setCustomStatus(_("file moving"))
shutil.move(file, self.getConfig('quardir'))
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index 8b6a140cd..2f981d06b 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -478,7 +478,7 @@ class ExtractArchive(Hook):
send2trash.send2trash(file)
else:
- self.logWarning("Unable to move %s to trash" % os.path.basename(f))
+ self.logWarning(_("Unable to move %s to trash") % os.path.basename(f))
self.logInfo(name, _("Extracting finished"))
extracted_files = archive.files or archive.list()