Fix issue on chinese language resource.

This commit is contained in:
Benoit Marty 2023-12-06 14:57:50 +01:00
parent 5e4b8ed536
commit 4d5fefa105

View File

@ -96,7 +96,8 @@ write_file(os.path.join(data_defs_dir, "values/strings_sas.xml"), default)
for lang in cumul:
androidLang = lang\
.replace("_", "-r")\
.replace("zh-rHans", "zh-rCN")
.replace("zh-rHans", "zh-rCN") \
.replace("zh-rHant", "zh-rTW")
write_file(os.path.join(data_defs_dir, "values-" + androidLang + "/strings_sas.xml"), cumul[lang])
print()