translations: finished transition to string arrays

This commit is contained in:
Raphael Coeffic
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent 17b7cce05b
commit 575ed1d463
9 changed files with 886 additions and 1744 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ def get_special_chars():
for lang in["en", "fr", "de", "cz", "nl", "es", "fi", "it", "pl", "pt", "se", "cn", "tw"]:
charset = set()
tools_path = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(tools_path, "../radio/src/translations/%s.h.txt" % lang), encoding='utf-8') as f:
with open(os.path.join(tools_path, "../radio/src/translations/%s.h" % lang), encoding='utf-8') as f:
data = f.read()
for c in data:
if is_special_char(c):
@@ -100,4 +100,4 @@ def get_chars_encoding_BW(subset):
for upper, lower in subset_lowercase_BW.items():
if lower in result:
result[upper] = result[lower]
return result
return result