Browse Source

Merge pull request #337 from Hoikas/fix_334

Fix #334.
pull/346/head
Adam Johnson 2 years ago committed by GitHub
parent
commit
9f34cba95c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      korman/exporter/locman.py

6
korman/exporter/locman.py

@ -150,7 +150,7 @@ class LocalizationConverter:
def iter_element(element): def iter_element(element):
if language_name is None: if language_name is None:
yield from element.items() yield from sorted(element.items())
else: else:
yield language_name, element yield language_name, element
@ -160,9 +160,9 @@ class LocalizationConverter:
write_line("<localizations>") write_line("<localizations>")
write_line("<age name=\"{}\">", self._age_name, indent=1) write_line("<age name=\"{}\">", self._age_name, indent=1)
for set_name, elements in sets.items(): for set_name, elements in sorted(sets.items()):
write_line("<set name=\"{}\">", set_name, indent=2) write_line("<set name=\"{}\">", set_name, indent=2)
for element_name, value in elements.items(): for element_name, value in sorted(elements.items()):
write_line("<element name=\"{}\">", element_name, indent=3) write_line("<element name=\"{}\">", element_name, indent=3)
for translation_language, translation_value in iter_element(value): for translation_language, translation_value in iter_element(value):
if _ESHTML_REGEX.search(translation_value): if _ESHTML_REGEX.search(translation_value):

Loading…
Cancel
Save