Changeset b5915e95 in trac.git
- Timestamp:
- Nov 2, 2021, 5:17:45 AM (2 years ago)
- Branches:
- 1.6-stable, trunk
- Children:
- beb3e4e
- Parents:
- 8b50151
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/merge_catalog.py
r8b50151 rb5915e95 15 15 from datetime import datetime 16 16 import argparse 17 import io 17 18 import os.path 18 19 import sys … … 128 129 target.language_team = '%s <%s>' % (locale, pot.msgid_bugs_address) 129 130 target.fuzzy = False # clear fuzzy flag of the header 131 with io.BytesIO() as buf: 132 write_po(buf, target) 133 content = str(buf.getvalue(), 'utf-8') 134 # write catalog with native newline 130 135 with open(target_file, 'w', encoding='utf-8') as f: 131 write_po(f, target)136 f.write(content) 132 137 del f 133 138 print('Merged %d messages from %s and updated %s' % (n, source_file,
Note:
See TracChangeset
for help on using the changeset viewer.