summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-05 20:20:42 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-05 20:20:42 +0100
commite4dc22a791e3607dc611762eb589c67340cc919e (patch)
tree709e2345d33af78f08e4a2c9e5aab9d72043b18d
parentde2149c04aec596f372988d4e55c94f3fd72204b (diff)
Fix xgettext call with UTF8 source code.
-rw-r--r--i18n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18n.py b/i18n.py
index 935bc3461..a3589ff82 100644
--- a/i18n.py
+++ b/i18n.py
@@ -20,7 +20,7 @@ def pot(dir, sources, name):
except:
pass
- command('xgettext -d %s -s --keyword=_ --keyword=S_ --add-comments=/ -p %s -o %s.pot %s' % (name, d, name, s))
+ command('xgettext --from-code=UTF-8 -d %s -s --keyword=_ --keyword=S_ --add-comments=/ -p %s -o %s.pot %s' % (name, d, name, s))
def pot_merge(dir, name):
for f in glob.glob(os.path.join(os.getcwd(), dir, 'po', '*.po')):