import i18n
sources = """
+ about_dialog.cc
+ audio_dialog.cc
+ audio_plot.cc
config_dialog.cc
dci_metadata_dialog.cc
dir_picker_ctrl.cc
obj.source = sources
obj.target = 'dvdomatic-wx'
-def pot(bld):
- s = ""
- for f in sources.split('\n'):
- t = f.strip()
- if len(t) > 0:
- s += (os.path.join('src', 'wx', t)) + " "
-
- os.system('xgettext -d libdvdomatic-wx -s --keyword=_ -p build/src/wx -o libdvdomatic-wx.pot %s' % s)
+ i18n.po_to_mo(os.path.join('src', 'wx'), 'libdvdomatic-wx', bld)
-def mo(bld):
- i18n.po_to_mo(os.path.join('src', 'wx'), 'libdvdomatic-wx')
+def pot(bld):
+ i18n.pot(os.path.join('src', 'wx'), sources, 'libdvdomatic-wx')
+def pot_merge(bld):
+ i18n.pot_merge(os.path.join('src', 'wx'), 'libdvdomatic-wx')