Compare commits

..

No commits in common. "f58208087a3b154b1c126309d115b0fca74b0ba1" and "cedb59404f6a59f1a38c8d20729b7c1bcc434c2b" have entirely different histories.

1 changed files with 2 additions and 4 deletions

6
.github/locales.py vendored
View File

@ -56,8 +56,6 @@ for file in glob.glob(f"{XML_NAME}*/strings.xml"):
if child.text.startswith("\\@string/"):
print(f"[{file}] fixing {child.attrib['name']}")
child.text = child.text.replace("\\@string/", "@string/")
with open(file, 'w') as fp:
fp.write('<?xml version="1.0" encoding="utf-8"?>\n')
tree.write(fp, encoding="utf-8", method="xml", pretty_print=True, xml_declaration=False)
tree.write(file, encoding="utf-8", method="xml", pretty_print=True, xml_declaration=True)
except ET.ParseError as ex:
print(f"[{file}] {ex}")
print(f"[{file}] {ex}")