Build and install mo files from po.
[dcpomatic.git] / src / tools / wscript
index 8af3d06a5fd3bd254311c03cce540525b0d2fa20..64d5efe56e3d8d0c934e5e8a9ef8084c9e2000d3 100644 (file)
@@ -23,9 +23,7 @@ def build(bld):
                 obj.source += ' ../../windows/dvdomatic.rc'
             obj.target = t
 
-def pot(bld):
-    os.system('xgettext -d dvdomatic -s --keyword=_ -p build/src/tools -o dvdomatic.pot %s' % os.path.join('src', 'tools', 'dvdomatic.cc'))
-
-def mo(bld):
-    i18n.po_to_mo(os.path.join('src', 'tools'), 'dvdomatic')
+        i18n.po_to_mo(os.path.join('src', 'tools'), 'dvdomatic', bld)
 
+def pot(bld):
+    i18n.pot(os.path.join('src', 'tools'), 'dvdomatic.cc', 'dvdomatic')