mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-08 03:32:30 -04:00
Make generation script sort the resources.
This will avoid unnecessary modification of the qrc file just because of random unsorted order.
This commit is contained in:
parent
42feaa9ac5
commit
ecad664bdf
@ -34,7 +34,7 @@ qresource.tail = "\n"
|
|||||||
json_files = translation_dir.glob("*.json")
|
json_files = translation_dir.glob("*.json")
|
||||||
|
|
||||||
node = None
|
node = None
|
||||||
for json in translation_dir.glob("*.json"):
|
for json in sorted(translation_dir.glob("*.json")):
|
||||||
if node is not None:
|
if node is not None:
|
||||||
node.tail += " " * 8
|
node.tail += " " * 8
|
||||||
node = ET.SubElement(qresource, "file")
|
node = ET.SubElement(qresource, "file")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user