Browse Source

Improve even further key sorting in amprolla_merge_translations

main
Evilham 3 years ago
parent
commit
abd30a318c
  1. 3
      amprolla_merge_translations.py

3
amprolla_merge_translations.py

@ -65,7 +65,8 @@ def write_translations(translations, filename):
for pkg, fields in sorted(translations.items()):
ordered_keys = ['Package']
ordered_keys.extend([k for k in fields.keys() if k.startswith('Description-')])
ordered_keys.extend(sorted((k for k in fields.keys()
if k.startswith('Description-'))))
for key in ordered_keys:
line = "%s: %s\n" % (key, fields[key])
bz2f.write(line.encode('utf-8'))

Loading…
Cancel
Save