From 0cd1ebb0092259016644d5add92869a682913cbb Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 27 Jun 2007 22:59:45 +0000 Subject: [PATCH] Fixes for translations. #383, #384 rpmfarm@free.fr Did not include the fr.po patch because I believe it is out-of-date. --- glade/aboutdialog.glade | 1 + glade/delugegtk.glade | 16 ++++++++-------- glade/dgtkpopups.glade | 4 ++-- glade/plugin_dialog.glade | 4 ++-- po/POTFILES.in | 3 +++ src/common.py | 7 +++---- src/dialogs.py | 1 + 7 files changed, 20 insertions(+), 16 deletions(-) diff --git a/glade/aboutdialog.glade b/glade/aboutdialog.glade index 21c46bd89..c8799dc0d 100644 --- a/glade/aboutdialog.glade +++ b/glade/aboutdialog.glade @@ -10,6 +10,7 @@ False + diff --git a/glade/delugegtk.glade b/glade/delugegtk.glade index 0cfd578e4..e28ae076e 100644 --- a/glade/delugegtk.glade +++ b/glade/delugegtk.glade @@ -1005,7 +1005,7 @@ True Add Torrent - Add Torrent + Add Torrent True gtk-add @@ -1019,7 +1019,7 @@ True False Remove Torrent - Remove Torrent + Remove Torrent True gtk-remove @@ -1032,7 +1032,7 @@ True Clear Finished Torrents - Clear Finished + Clear Finished True gtk-clear @@ -1055,7 +1055,7 @@ True False Start / Pause - Start + Start True gtk-media-play @@ -1069,7 +1069,7 @@ True False Queue Torrent Up - Move Up + Move Up True gtk-go-up @@ -1083,7 +1083,7 @@ True False Queue Torrent Down - Move Down + Move Down True gtk-go-down @@ -1105,7 +1105,7 @@ True Preferences - Preferences + Preferences True gtk-preferences @@ -1118,7 +1118,7 @@ True Plugins - Plugins + Plugins True gtk-disconnect diff --git a/glade/dgtkpopups.glade b/glade/dgtkpopups.glade index 642cddddb..c9a6584e8 100644 --- a/glade/dgtkpopups.glade +++ b/glade/dgtkpopups.glade @@ -272,7 +272,7 @@ True - gtk-preferences + gtk-preferences True True @@ -302,7 +302,7 @@ True - gtk-quit + gtk-quit True True diff --git a/glade/plugin_dialog.glade b/glade/plugin_dialog.glade index d9d680e30..68fa97357 100644 --- a/glade/plugin_dialog.glade +++ b/glade/plugin_dialog.glade @@ -52,7 +52,7 @@ True False - gtk-preferences + gtk-preferences True @@ -98,7 +98,7 @@ True - gtk-close + gtk-close True diff --git a/po/POTFILES.in b/po/POTFILES.in index 7d2c9f30e..5b1eaddd2 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,7 +1,10 @@ glade/delugegtk.glade glade/dgtkpopups.glade +glade/file_tab_menu.glade +glade/plugin_dialog.glade glade/preferences_dialog.glade glade/torrent_menu.glade +glade/tray_menu.glade src/common.py src/core.py src/interface.py diff --git a/src/common.py b/src/common.py index 0bf246727..399cfaf0d 100644 --- a/src/common.py +++ b/src/common.py @@ -64,12 +64,12 @@ def get_eta(size, done, rate): def fsize(fsize_b): fsize_kb = float (fsize_b / 1024.0) if fsize_kb < 1000: - return '%.1f KiB'%fsize_kb + return _("%.1f KiB")%fsize_kb fsize_mb = float (fsize_kb / 1024.0) if fsize_mb < 1000: - return '%.1f MiB'%fsize_mb + return _("%.1f MiB")%fsize_mb fsize_gb = float (fsize_mb / 1024.0) - return '%.1f GiB'%fsize_gb + return _("%.1f GiB")%fsize_gb # Returns a formatted string representing a percentage def fpcnt(dec): @@ -114,7 +114,6 @@ def get_pixmap(fname): return os.path.join(PIXMAP_DIR, fname) def open_url_in_browser(dialog, link): - print "link: ", link try: webbrowser.open(link) except webbrowser.Error: diff --git a/src/dialogs.py b/src/dialogs.py index c9422ff28..b7209ccf3 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -226,6 +226,7 @@ def show_about_dialog(parent=None): abt.set_version(common.PROGRAM_VERSION) abt.set_authors(["Zach Tibbitts", "Alon Zakai", "Marcos Pinto", "Andrew Resch"]) abt.set_artists(["Andrew Wedderburn"]) + abt.set_translator_credits(_("translator-credits")) abt.set_website("http://deluge-torrent.org") abt.set_website_label("http://deluge-torrent.org") abt.set_icon_from_file(common.get_pixmap("deluge32.png"))