forked from CreatBot/CreatBotKlipperScreen
keyboard: fix sometimes not changing language
This commit is contained in:
@@ -93,6 +93,9 @@ class Keyboard(Gtk.Box):
|
||||
for language in self.langs:
|
||||
if os.getenv('LANG').lower().startswith(language):
|
||||
return language
|
||||
for l in self.langs:
|
||||
if language.startswith(l):
|
||||
return l
|
||||
return "en"
|
||||
|
||||
def set_pallet(self, p):
|
||||
|
Reference in New Issue
Block a user