import os
+import i18n
sources = """
ab_transcode_job.cc
ab_transcoder.cc
+ analyse_audio_job.cc
+ audio_analysis.cc
+ audio_content.cc
audio_decoder.cc
audio_source.cc
config.cc
combiner.cc
+ content.cc
cross.cc
dci_metadata.cc
dcp_content_type.cc
dolby_cp750.cc
encoder.cc
examine_content_job.cc
- external_audio_decoder.cc
+ exceptions.cc
filter_graph.cc
ffmpeg_compatibility.cc
+ ffmpeg_content.cc
ffmpeg_decoder.cc
film.cc
filter.cc
format.cc
gain.cc
image.cc
+ imagemagick_content.cc
imagemagick_decoder.cc
job.cc
job_manager.cc
log.cc
lut.cc
matcher.cc
+ playlist.cc
scp_dcp_job.cc
scaler.cc
server.cc
+ sndfile_content.cc
+ sndfile_decoder.cc
sound_processor.cc
- stream.cc
subtitle.cc
timer.cc
transcode_job.cc
ui_signaller.cc
util.cc
version.cc
+ video_content.cc
video_decoder.cc
video_source.cc
writer.cc
obj.source = sources
obj.target = 'dvdomatic'
+ i18n.po_to_mo(os.path.join('src', 'lib'), 'libdvdomatic', bld)
+
def pot(bld):
- s = ""
- for f in sources.split('\n'):
- t = f.strip()
- if len(t) > 0:
- s += (os.path.join('src', 'lib', t)) + " "
+ i18n.pot(os.path.join('src', 'lib'), sources, 'libdvdomatic')
- os.system('xgettext -d libdvdomatic -s --keyword=_ -p build/src/lib -o libdvdomatic.pot %s' % s)
+def pot_merge(bld):
+ i18n.pot_merge(os.path.join('src', 'lib'), 'libdvdomatic')