Compare commits

...

2 Commits

Author SHA1 Message Date
Sir Aguacata b171ad16b7
Merge branch 'recloudstream:master' into master 2023-03-19 11:32:53 -07:00
Cloudburst 0cbee70683
[skip ci] Update locales.py 2023-03-19 12:51:54 +01:00
1 changed files with 2 additions and 2 deletions

4
.github/locales.py vendored
View File

@ -56,8 +56,8 @@ 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')
with open(file, 'wb') as fp:
fp.write(b'<?xml version="1.0" encoding="utf-8"?>\n')
tree.write(fp, encoding="utf-8", method="xml", pretty_print=True, xml_declaration=False)
except ET.ParseError as ex:
print(f"[{file}] {ex}")