X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=i18n.py;h=dc0a6ca7c9c554d36ae6f897e5ce244c52c7a832;hb=1c7061594c9fa38bba8d493e68d716758f3ad4b2;hp=26a8a10ec3041ad2bd3592b6eb7f485d6f021c59;hpb=570625d8a1900698e139e03fdf97604a52371231;p=dcpomatic.git diff --git a/i18n.py b/i18n.py index 26a8a10ec..dc0a6ca7c 100644 --- a/i18n.py +++ b/i18n.py @@ -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')): @@ -32,5 +32,5 @@ def po_to_mo(dir, name, bld): po = os.path.join('po', '%s.po' % lang) mo = os.path.join('mo', lang, '%s.mo' % name) - bld(rule = 'msgfmt -f ${SRC} -o ${TGT}', source = bld.path.make_node(po), target = bld.path.get_bld().make_node(mo)) + bld(rule = 'msgfmt -c -f ${SRC} -o ${TGT}', source = bld.path.make_node(po), target = bld.path.get_bld().make_node(mo)) bld.install_files(os.path.join('${PREFIX}', 'share', 'locale', lang, 'LC_MESSAGES'), mo)