summaryrefslogtreecommitdiffstats
path: root/generate_pot.py
diff options
context:
space:
mode:
Diffstat (limited to 'generate_pot.py')
-rwxr-xr-xgenerate_pot.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/generate_pot.py b/generate_pot.py
index 51660f56a..b46baee77 100755
--- a/generate_pot.py
+++ b/generate_pot.py
@@ -11,6 +11,8 @@
"""Parses Python and Javascript code for translation strings to create the 'deluge.pot' template for translators"""
+from __future__ import print_function
+
import os
import re
from datetime import datetime
@@ -30,7 +32,7 @@ WEBUI_RENDER_DIR = "deluge/ui/web/render"
INFILES_LIST = "infiles.list"
POT_FILEPATH = os.path.join("deluge", "i18n", "deluge.pot")
-RE_EXC_PLUGIN_BUILD = re.compile("deluge\/plugins\/.*\/build")
+RE_EXC_PLUGIN_BUILD = re.compile("deluge\\/plugins\\/.*\\/build")
xgettext_cmd = [
"xgettext",