diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-23 00:12:11 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-23 00:12:11 +0000 |
| commit | 7913cba90bccb9501b63a0518c58abbd5a6b330d (patch) | |
| tree | 6d201d7d9e6c7bdc8dff61ca549a533eb1636c8e /src/lib/wscript | |
| parent | c4cf2ae86bfe3369acd13212ba8df494496b4de0 (diff) | |
Try to centralise .pot building.
Diffstat (limited to 'src/lib/wscript')
| -rw-r--r-- | src/lib/wscript | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/wscript b/src/lib/wscript index ee89ad085..59047c70d 100644 --- a/src/lib/wscript +++ b/src/lib/wscript @@ -1,4 +1,5 @@ import os +import i18n sources = """ ab_transcode_job.cc @@ -68,10 +69,4 @@ def build(bld): obj.target = 'dvdomatic' def pot(bld): - s = "" - for f in sources.split('\n'): - t = f.strip() - if len(t) > 0: - s += (os.path.join('src', 'lib', t)) + " " - - os.system('xgettext -d libdvdomatic -s --keyword=_ -p build/src/lib -o libdvdomatic.pot %s' % s) + i18n.pot(os.path.join('src', 'lib'), sources, 'libdvdomatic') |
