Merge master.
[dcpomatic.git] / i18n.py
diff --git a/i18n.py b/i18n.py
index ce28d25e99d1e6d359132a8fcba6ebeabbf1a78a..51d236dc631d36d5a36b3d0f29d8667db17a6b46 100644 (file)
--- a/i18n.py
+++ b/i18n.py
@@ -8,7 +8,7 @@ def command(c):
 
 def pot(dir, sources, name):
     s = ""
-    for f in sources.split('\n'):
+    for f in sources.split():
         t = f.strip()
         if len(t) > 0:
             s += (os.path.join(dir, t)) + " "
@@ -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 ${SRC} -o ${TGT}', source = bld.path.make_node(po), target = bld.path.get_bld().make_node(mo))
+        bld(rule = 'msgfmt -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)