the new translate-toolkit does not need "removeblanks" anymore
This commit is contained in:
parent
81e5a2e8fd
commit
1f75580b95
|
@ -170,12 +170,10 @@ def process_language_file(hdf_file, po_dir, textDomain):
|
||||||
for po_unit in po_data.units:
|
for po_unit in po_data.units:
|
||||||
po_unit.settarget(po_unit.getsource())
|
po_unit.settarget(po_unit.getsource())
|
||||||
po_data.removeduplicates()
|
po_data.removeduplicates()
|
||||||
po_data.removeblanks()
|
|
||||||
po_data.savefile(po_file)
|
po_data.savefile(po_file)
|
||||||
else:
|
else:
|
||||||
po_content = translate.storage.po.pofile.parsefile(po_file)
|
po_content = translate.storage.po.pofile.parsefile(po_file)
|
||||||
po_content.removeduplicates()
|
po_content.removeduplicates()
|
||||||
po_content.removeblanks()
|
|
||||||
po_content.savefile(po_file)
|
po_content.savefile(po_file)
|
||||||
revert_if_unchanged(po_file)
|
revert_if_unchanged(po_file)
|
||||||
## make it writeable for pootle
|
## make it writeable for pootle
|
||||||
|
|
Loading…
Reference in New Issue