forked from gooberinc/goober
made the locale option work
This commit is contained in:
parent
fe17dfb552
commit
5773e5d083
1 changed files with 3 additions and 0 deletions
3
bot.py
3
bot.py
|
@ -48,6 +48,7 @@ def build_keys():
|
||||||
|
|
||||||
build_keys()
|
build_keys()
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger("goober")
|
logger = logging.getLogger("goober")
|
||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
|
@ -66,6 +67,8 @@ settings = settings_manager.settings
|
||||||
|
|
||||||
splash_text: str = ""
|
splash_text: str = ""
|
||||||
|
|
||||||
|
k.change_language(settings["locale"])
|
||||||
|
|
||||||
|
|
||||||
with open(settings["splash_text_loc"], "r", encoding="UTF-8") as f:
|
with open(settings["splash_text_loc"], "r", encoding="UTF-8") as f:
|
||||||
splash_text = "".join(f.readlines())
|
splash_text = "".join(f.readlines())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue