Add possibility to change the language

This commit is contained in:
Yohann D'ANELLO
2020-11-27 20:53:24 +01:00
parent 2498fd2a61
commit 4287b4f045
5 changed files with 30 additions and 8 deletions

View File

@ -14,7 +14,7 @@ from .interfaces import Map, Logs
from .resources import ResourceManager
from .settings import Settings
from . import menus
from .translations import gettext as _
from .translations import gettext as _, setlocale
from typing import Callable
@ -38,6 +38,7 @@ class Game:
self.settings.load_settings()
self.settings.write_settings()
self.settings_menu.update_values(self.settings)
setlocale(self.settings.LOCALE)
self.logs = Logs()
self.message = None