Fixed translation loading
This commit is contained in:
parent
0914f969e5
commit
511622820a
@ -15,7 +15,7 @@ __title__ = 'cpl_translation'
|
|||||||
__author__ = 'Sven Heidemann'
|
__author__ = 'Sven Heidemann'
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
__copyright__ = 'Copyright (c) 2022 sh-edraft.de'
|
__copyright__ = 'Copyright (c) 2022 sh-edraft.de'
|
||||||
__version__ = '2022.10.0.post1'
|
__version__ = '2022.10.0.post2'
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
@ -51,4 +51,4 @@ init()
|
|||||||
# build-ignore-end
|
# build-ignore-end
|
||||||
|
|
||||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
||||||
version_info = VersionInfo(major='2022', minor='10', micro='0.post1')
|
version_info = VersionInfo(major='2022', minor='10', micro='0.post2')
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"Version": {
|
"Version": {
|
||||||
"Major": "2022",
|
"Major": "2022",
|
||||||
"Minor": "10",
|
"Minor": "10",
|
||||||
"Micro": "0.post1"
|
"Micro": "0.post2"
|
||||||
},
|
},
|
||||||
"Author": "Sven Heidemann",
|
"Author": "Sven Heidemann",
|
||||||
"AuthorEmail": "sven.heidemann@sh-edraft.de",
|
"AuthorEmail": "sven.heidemann@sh-edraft.de",
|
||||||
|
@ -34,7 +34,7 @@ class TranslationService(TranslationServiceABC):
|
|||||||
raise FileNotFoundError()
|
raise FileNotFoundError()
|
||||||
|
|
||||||
file_dict = {}
|
file_dict = {}
|
||||||
with open(f'translation/{lang}.json', 'r', encoding='utf8') as file:
|
with open(f'translation/{lang}.json', 'r', encoding='utf-8') as file:
|
||||||
file_dict = json.load(file)
|
file_dict = json.load(file)
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user