Fixed translaiton settings
This commit is contained in:
parent
b3ed7101fc
commit
b819eb439c
@ -15,7 +15,7 @@ __title__ = "cpl_translation"
|
|||||||
__author__ = "Sven Heidemann"
|
__author__ = "Sven Heidemann"
|
||||||
__license__ = "MIT"
|
__license__ = "MIT"
|
||||||
__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de"
|
__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de"
|
||||||
__version__ = "2023.4.0"
|
__version__ = "2023.4.0.post1"
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
@ -53,4 +53,4 @@ init()
|
|||||||
# build-ignore-end
|
# build-ignore-end
|
||||||
|
|
||||||
VersionInfo = namedtuple("VersionInfo", "major minor micro")
|
VersionInfo = namedtuple("VersionInfo", "major minor micro")
|
||||||
version_info = VersionInfo(major="2023", minor="4", micro="0")
|
version_info = VersionInfo(major="2023", minor="4", micro="0.post1")
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"Version": {
|
"Version": {
|
||||||
"Major": "2023",
|
"Major": "2023",
|
||||||
"Minor": "4",
|
"Minor": "4",
|
||||||
"Micro": "0"
|
"Micro": "0.post1"
|
||||||
},
|
},
|
||||||
"Author": "Sven Heidemann",
|
"Author": "Sven Heidemann",
|
||||||
"AuthorEmail": "sven.heidemann@sh-edraft.de",
|
"AuthorEmail": "sven.heidemann@sh-edraft.de",
|
||||||
|
@ -5,12 +5,12 @@ class TranslationSettings(ConfigurationModelABC):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
languages: list = None,
|
languages: list = None,
|
||||||
default_lang: str = None,
|
default_language: str = None,
|
||||||
):
|
):
|
||||||
ConfigurationModelABC.__init__(self)
|
ConfigurationModelABC.__init__(self)
|
||||||
|
|
||||||
self._languages = [] if languages is None else languages
|
self._languages = [] if languages is None else languages
|
||||||
self._default_lang = default_lang
|
self._default_lang = default_language
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def languages(self) -> list[str]:
|
def languages(self) -> list[str]:
|
||||||
|
Loading…
Reference in New Issue
Block a user