Fix translated string in addtorrentdialog

This commit is contained in:
Calum Lind 2011-06-03 01:08:04 +01:00
parent a75fa41c42
commit 85d4602949

View File

@ -619,11 +619,11 @@ class AddTorrentDialog(component.Component):
elif deluge.common.is_magnet(url): elif deluge.common.is_magnet(url):
self.add_from_magnets([url]) self.add_from_magnets([url])
else: 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): def add_from_url(self, url):
dialog = gtk.Dialog( dialog = gtk.Dialog(
_("Downloading.."), _("Downloading..."),
flags=gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_NO_SEPARATOR, flags=gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_NO_SEPARATOR,
parent=self.dialog) parent=self.dialog)
dialog.set_transient_for(self.dialog) dialog.set_transient_for(self.dialog)
@ -665,7 +665,7 @@ class AddTorrentDialog(component.Component):
else: else:
log.debug("Download failed: %s", result) log.debug("Download failed: %s", result)
dialog.destroy() 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() details=result.getErrorMessage(), parent=self.dialog).run()
return result return result