languages: refactor

- No full restart requirement just reload
- Fix some systems not loading the language
- Fix RTL not applied if the lang was not set by the system
This commit is contained in:
alfrix
2022-10-26 00:49:49 -03:00
parent 93457b2961
commit d3d7104ec4
7 changed files with 58 additions and 35 deletions

View File

@@ -64,8 +64,6 @@ class KlippyWebsocket(threading.Thread):
self.connect()
def connect(self):
_ = self._screen.lang.gettext
def ws_on_close(ws, a=None, b=None):
self.on_close(ws)