Batch converter stub.
[dcpomatic.git] / src / wx / wscript
index ef1d1c083f225fc20ba442c09a062cbd03ac2c43..f1c3d1a6a47ce09eda0955a36c0c881a7007659f 100644 (file)
@@ -1,6 +1,12 @@
 import os
+import glob
+from waflib import Logs
+import i18n
 
 sources = """
+          audio_dialog.cc
+          audio_plot.cc
+          batch_view.cc
           config_dialog.cc
           dci_metadata_dialog.cc
           dir_picker_ctrl.cc
@@ -35,11 +41,10 @@ def build(bld):
     obj.source = sources
     obj.target = 'dvdomatic-wx'
 
+    i18n.po_to_mo(os.path.join('src', 'wx'), 'libdvdomatic-wx', bld)
+
 def pot(bld):
-    s = ""
-    for f in sources.split('\n'):
-        t = f.strip()
-        if len(t) > 0:
-            s += (os.path.join('src', 'wx', t)) + " "
+    i18n.pot(os.path.join('src', 'wx'), sources, 'libdvdomatic-wx')
 
-    os.system('xgettext -d libdvdomatic -s --keyword=_ -p build/src/wx -o libdvdomatic-wx.pot %s' % s)
+def pot_merge(bld):
+    i18n.pot_merge(os.path.join('src', 'wx'), 'libdvdomatic-wx')