mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fix locales.py
This commit is contained in:
parent
0d40b5ebe3
commit
09fe9873cf
1 changed files with 2 additions and 0 deletions
2
.github/locales.py
vendored
2
.github/locales.py
vendored
|
@ -53,6 +53,8 @@ for file in glob.glob(f"{XML_NAME}*/strings.xml"):
|
||||||
try:
|
try:
|
||||||
tree = ET.parse(file)
|
tree = ET.parse(file)
|
||||||
for child in tree.getroot():
|
for child in tree.getroot():
|
||||||
|
if not child.text:
|
||||||
|
continue
|
||||||
if child.text.startswith("\\@string/"):
|
if child.text.startswith("\\@string/"):
|
||||||
print(f"[{file}] fixing {child.attrib['name']}")
|
print(f"[{file}] fixing {child.attrib['name']}")
|
||||||
child.text = child.text.replace("\\@string/", "@string/")
|
child.text = child.text.replace("\\@string/", "@string/")
|
||||||
|
|
Loading…
Reference in a new issue