Fix translated string in addtorrentdialog
This commit is contained in:
parent
a75fa41c42
commit
85d4602949
|
@ -619,11 +619,11 @@ class AddTorrentDialog(component.Component):
|
|||
elif deluge.common.is_magnet(url):
|
||||
self.add_from_magnets([url])
|
||||
else:
|
||||
dialogs.ErrorDialog(_("Invalid URL"), _("%s is not a valid URL." % url), self.dialog).run()
|
||||
dialogs.ErrorDialog(_("Invalid URL"), "%s %s" % (url, _("is not a valid URL.")), self.dialog).run()
|
||||
|
||||
def add_from_url(self, url):
|
||||
dialog = gtk.Dialog(
|
||||
_("Downloading.."),
|
||||
_("Downloading..."),
|
||||
flags=gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_NO_SEPARATOR,
|
||||
parent=self.dialog)
|
||||
dialog.set_transient_for(self.dialog)
|
||||
|
@ -665,7 +665,7 @@ class AddTorrentDialog(component.Component):
|
|||
else:
|
||||
log.debug("Download failed: %s", result)
|
||||
dialog.destroy()
|
||||
dialogs.ErrorDialog(_("Download Failed"), _("Failed to download : %s" % url),
|
||||
dialogs.ErrorDialog(_("Download Failed"), "%s %s" % (_("Failed to download:"), url),
|
||||
details=result.getErrorMessage(), parent=self.dialog).run()
|
||||
return result
|
||||
|
||||
|
|
Loading…
Reference in New Issue