From 34c95a08a3e23a597f7268786768097223d7a54a Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 3 Jun 2011 19:01:20 +0100 Subject: [PATCH] Fix translations texts in glade and python files --- .../deluge/plugins/autoadd/data/autoadd_options.glade | 8 ++++---- .../Label/deluge/plugins/label/data/label_options.glade | 5 +---- deluge/ui/gtkui/createtorrentdialog.py | 2 +- deluge/ui/gtkui/glade/dgtkpopups.glade | 2 +- deluge/ui/gtkui/glade/preferences_dialog.glade | 4 ++-- deluge/ui/gtkui/menubar.py | 2 +- deluge/ui/gtkui/systemtray.py | 6 +++--- 7 files changed, 13 insertions(+), 16 deletions(-) diff --git a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/autoadd_options.glade b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/autoadd_options.glade index ea7167e9d..adde185ed 100644 --- a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/autoadd_options.glade +++ b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/autoadd_options.glade @@ -1096,7 +1096,7 @@ also delete the .torrent file used to add it. True - Yes + gtk-yes True True False @@ -1112,7 +1112,7 @@ also delete the .torrent file used to add it. - No + gtk-no True True False @@ -1173,7 +1173,7 @@ also delete the .torrent file used to add it. True - Yes + gtk-yes True True False @@ -1189,7 +1189,7 @@ also delete the .torrent file used to add it. - No + gtk-no True True False diff --git a/deluge/plugins/Label/deluge/plugins/label/data/label_options.glade b/deluge/plugins/Label/deluge/plugins/label/data/label_options.glade index 0316d2205..db13b57cb 100644 --- a/deluge/plugins/Label/deluge/plugins/label/data/label_options.glade +++ b/deluge/plugins/Label/deluge/plugins/label/data/label_options.glade @@ -549,10 +549,7 @@ True True - tracker1.org -tracker2.com -this doesn't do anything yet.. - + tracker1.org diff --git a/deluge/ui/gtkui/createtorrentdialog.py b/deluge/ui/gtkui/createtorrentdialog.py index 6c13f4534..ce74f6db8 100644 --- a/deluge/ui/gtkui/createtorrentdialog.py +++ b/deluge/ui/gtkui/createtorrentdialog.py @@ -371,7 +371,7 @@ class CreateTorrentDialog: def _on_create_torrent_progress(self, value, num_pieces): percent = float(value)/float(num_pieces) pbar = self.glade.get_widget("progressbar") - pbar.set_text(_("%.2f%%") % (percent*100)) + pbar.set_text("%.2f%%" % (percent*100)) if percent >= 0 and percent <= 1.0: pbar.set_fraction(percent) diff --git a/deluge/ui/gtkui/glade/dgtkpopups.glade b/deluge/ui/gtkui/glade/dgtkpopups.glade index 78e4a48ff..68f2c4b0a 100644 --- a/deluge/ui/gtkui/glade/dgtkpopups.glade +++ b/deluge/ui/gtkui/glade/dgtkpopups.glade @@ -34,7 +34,7 @@ True 0 - label + label True diff --git a/deluge/ui/gtkui/glade/preferences_dialog.glade b/deluge/ui/gtkui/glade/preferences_dialog.glade index 8aec4c9e6..e3f645903 100644 --- a/deluge/ui/gtkui/glade/preferences_dialog.glade +++ b/deluge/ui/gtkui/glade/preferences_dialog.glade @@ -741,7 +741,7 @@ used sparingly. True False 0 - 0000 + 0000 5 @@ -1146,7 +1146,7 @@ used sparingly. True True 4 - 0x00 + 0x00 False False True diff --git a/deluge/ui/gtkui/menubar.py b/deluge/ui/gtkui/menubar.py index a29350597..d0a844b3c 100644 --- a/deluge/ui/gtkui/menubar.py +++ b/deluge/ui/gtkui/menubar.py @@ -81,7 +81,7 @@ class MenuBar(component.Component): item.set_name(menuitem) item.connect("activate", self.on_menuitem_set_unlimited) submenu.append(item) - item = gtk.MenuItem(_("Other..")) + item = gtk.MenuItem(_("Other...")) item.set_name(menuitem) item.connect("activate", self.on_menuitem_set_other) submenu.append(item) diff --git a/deluge/ui/gtkui/systemtray.py b/deluge/ui/gtkui/systemtray.py index 542a56db1..b12feb2c5 100644 --- a/deluge/ui/gtkui/systemtray.py +++ b/deluge/ui/gtkui/systemtray.py @@ -200,7 +200,7 @@ class SystemTray(component.Component): except Exception, e: log.debug("Unable to hide system tray menu widgets: %s", e) - self.tray.set_tooltip(_("Deluge\nNot Connected..")) + self.tray.set_tooltip(_("Deluge") + "\n" + _("Not Connected...")) def shutdown(self): if self.config["enable_system_tray"]: @@ -469,13 +469,13 @@ class SystemTray(component.Component): vbox = gtk.VBox(spacing=5) hbox.pack_start(vbox, False) - label = gtk.Label(_("Deluge is password protected!")) + label = gtk.Label("%s" % _("Deluge is password protected!")) label.set_use_markup(True) label.set_alignment(0.0, 0.5) label.set_line_wrap(True) vbox.pack_start(label, False) - tlabel = gtk.Label(_("Enter your password to continue")) + tlabel = gtk.Label("%s" % _("Enter your password to continue")) tlabel.set_use_markup(True) tlabel.set_alignment(0.0, 0.5) tlabel.set_line_wrap(True)