7 def build_i18n(bld,dir,name,sources):
11 pot_file = '%s.pot' % name
18 '--copyright-holder="Paul Davis"' ]
20 print 'Updating ', pot_file
21 os.spawnvp (os.P_WAIT, 'xgettext', args)
23 po_files = glob.glob ('po/*.po')
25 for po_file in po_files:
30 print 'Updating ', po_file
31 os.spawnvp (os.P_WAIT, 'msgmerge', args)
33 for po_file in po_files:
34 mo_file = po_file.replace ('.po', '.mo')
40 print 'Generating ', po_file
41 os.spawnvp (os.P_WAIT, 'msgfmt', args)