Module lib.plugins.sourdoughbread.lang

Language selected and regional time

Expand source code
# Distributed under Pycameresp License
# Copyright (c) 2023 Remi BERTHOLET
# pylint:disable=consider-using-f-string
""" Language selected and regional time """
import tools.region
import tools.strings
import tools.logger

try:
        exec(b"from plugins.sourdoughbread.lang_%s import *"%tools.region.RegionConfig.get().lang)
        tools.logger.syslog("Select sourdoughbread lang : %s"%tools.strings.tostrings(tools.region.RegionConfig.get().lang))
except Exception as err:
        tools.logger.syslog(err)
        from plugins.sourdoughbread.lang_english import *