X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fwscript;h=7f9cde9acae25bad106a0a6c9327df135e6b4314;hb=4461bdec05261dfc9cdd7639dad13c6ced4cbc35;hp=ef1d1c083f225fc20ba442c09a062cbd03ac2c43;hpb=fa6c885de512cdde0590c2bbe9ea424030a12c6b;p=dcpomatic.git diff --git a/src/wx/wscript b/src/wx/wscript index ef1d1c083..7f9cde9ac 100644 --- a/src/wx/wscript +++ b/src/wx/wscript @@ -1,6 +1,12 @@ import os +import glob +from waflib import Logs +import i18n sources = """ + audio_dialog.cc + audio_mapping_view.cc + audio_plot.cc config_dialog.cc dci_metadata_dialog.cc dir_picker_ctrl.cc @@ -9,6 +15,7 @@ sources = """ filter_dialog.cc filter_view.cc gain_calculator_dialog.cc + imagemagick_content_dialog.cc job_manager_view.cc job_wrapper.cc new_film_dialog.cc @@ -35,11 +42,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')