X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=i18n.py;h=fa91783b6993d397936352173a9fe9c86f4a1941;hb=f07623551706b849190c84059bac455088f8eb1e;hp=51d236dc631d36d5a36b3d0f29d8667db17a6b46;hpb=dc0667cab0bc4e578662c9a64777229ad985b396;p=dcpomatic.git diff --git a/i18n.py b/i18n.py index 51d236dc6..fa91783b6 100644 --- a/i18n.py +++ b/i18n.py @@ -3,7 +3,7 @@ import os from waflib import Logs def command(c): - print c + print(c) os.system(c) def pot(dir, sources, name): @@ -20,7 +20,7 @@ def pot(dir, sources, name): except: pass - command('xgettext -d %s -s --keyword=_ --add-comments=/ -p %s -o %s.pot %s' % (name, d, name, s)) + command('xgettext -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')):