Make translation merging more verbose.

This commit is contained in:
Kovid Goyal 2007-11-11 16:10:38 +00:00
parent 975773d766
commit d75aaa1993

View File

@ -53,11 +53,7 @@ def main(args=sys.argv):
open(po, 'wb').write(src.replace('LANGUAGE', tr)) open(po, 'wb').write(src.replace('LANGUAGE', tr))
else: else:
print 'Merging', os.path.basename(po) print 'Merging', os.path.basename(po)
p = subprocess.Popen('msgmerge -q '+po + ' ' + template.name, shell=True, stdout=subprocess.PIPE) check_call('msgmerge -v -U --backup=none '+po + ' ' + template.name)
up = p.stdout.read()
if p.wait():
raise Exception('msgmerge failed with error code: %d'%(p.wait(),))
open(po, 'wb').write(up)
buf = cStringIO.StringIO() buf = cStringIO.StringIO()
print 'Compiling translations' print 'Compiling translations'
msgfmt(buf, [po]) msgfmt(buf, [po])