Fixing utf-8 encodinf traduction files

This commit is contained in:
Silversthorn 2021-10-09 12:51:41 +02:00
parent eee528f329
commit 895e6106a7

View File

@ -37,11 +37,11 @@ class Translation():
)
try:
if not self.cached_translation:
with open(lang_file, 'r') as f:
with open(lang_file, 'r', encoding='utf-8') as f:
data = json.load(f)
self.cached_translation = data
elif self.cached_translation_lang != lang:
with open(lang_file, 'r') as f:
with open(lang_file, 'r', encoding='utf-8') as f:
data = json.load(f)
self.cached_translation = data
self.cached_translation_lang = lang