diff --git a/create_potfiles_in.py b/create_potfiles_in.py
index e500a0a06..d6d21bd4f 100755
--- a/create_potfiles_in.py
+++ b/create_potfiles_in.py
@@ -1,18 +1,25 @@
#!/usr/bin/env python
import os
+import re
# Paths to exclude
EXCLUSIONS = [
- "deluge/scripts"
+ "deluge/scripts",
+ "deluge/i18n",
]
POTFILE_IN = "deluge/i18n/POTFILES.in"
-print "Creating " + POTFILE_IN + " .."
+pattern = "deluge\/plugins\/.*\/build"
+compiled = re.compile(pattern)
+
+print "Creating " + POTFILE_IN + " ..."
to_translate = []
for (dirpath, dirnames, filenames) in os.walk("deluge"):
for filename in filenames:
- if os.path.splitext(filename)[1] in (".py", ".glade") and dirpath not in EXCLUSIONS:
+ if os.path.splitext(filename)[1] in (".py", ".glade") \
+ and dirpath not in EXCLUSIONS \
+ and not compiled.match(dirpath):
to_translate.append(os.path.join(dirpath, filename))
f = open(POTFILE_IN, "wb")
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/AutoAdd/deluge/plugins/autoadd/data/config.glade b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/config.glade
index e051e64b1..33ab498bd 100644
--- a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/config.glade
+++ b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/data/config.glade
@@ -84,7 +84,7 @@
- gtk-edit
+ gtk-edit
True
False
True
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/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py
index a5f413d31..309e9123b 100644
--- a/deluge/ui/gtkui/addtorrentdialog.py
+++ b/deluge/ui/gtkui/addtorrentdialog.py
@@ -649,13 +649,13 @@ class AddTorrentDialog(component.Component):
else:
dialogs.ErrorDialog(
_("Invalid URL"),
- _("%s is not a valid URL." % 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)
@@ -698,7 +698,7 @@ class AddTorrentDialog(component.Component):
log.debug("Download failed: %s", result)
dialog.destroy()
dialogs.ErrorDialog(
- _("Download Failed"), _("Failed to download : %s" % url),
+ _("Download Failed"), "%s %s" % (_("Failed to download:"), url),
details=result.getErrorMessage(), parent=self.dialog
).run()
return result
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 @@
diff --git a/deluge/ui/gtkui/glade/preferences_dialog.glade b/deluge/ui/gtkui/glade/preferences_dialog.glade
index 6f1b7c7ac..e3f645903 100644
--- a/deluge/ui/gtkui/glade/preferences_dialog.glade
+++ b/deluge/ui/gtkui/glade/preferences_dialog.glade
@@ -619,7 +619,7 @@ used sparingly.
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- page 6
+ page 6
False
@@ -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
@@ -1524,7 +1524,7 @@ Disabled
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- page 7
+ page 7
1
@@ -2098,7 +2098,7 @@ Disabled
True
False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- page 8
+ page 8
2
@@ -2831,7 +2831,7 @@ status tab (<b>EXPERIMENTAL!!!</b>)
True
False
- page 10
+ page 10
3
@@ -3205,7 +3205,7 @@ status tab (<b>EXPERIMENTAL!!!</b>)
True
False
- page 11
+ page 11
4
@@ -3573,7 +3573,7 @@ status tab (<b>EXPERIMENTAL!!!</b>)
True
False
- page 11
+ page 11
5
@@ -4119,7 +4119,7 @@ status tab (<b>EXPERIMENTAL!!!</b>)
True
False
- page 12
+ page 12
6
diff --git a/deluge/ui/gtkui/glade/tray_menu.glade b/deluge/ui/gtkui/glade/tray_menu.glade
index ac983601f..504e2e7d2 100644
--- a/deluge/ui/gtkui/glade/tray_menu.glade
+++ b/deluge/ui/gtkui/glade/tray_menu.glade
@@ -144,7 +144,7 @@