Exemplo n.º 1
0
 def on_language(self, _instance, language):
     self.gui.log(f"Switching language to {language}", OUTPUT_INFO)
     i18n.switch_lang(language)
     self.gui._config["general"]["lang"] = language
     self.gui.save_config()
     if self.gui.game:
         self.gui.update_state()
         self.gui.controls.set_status("", STATUS_INFO)
Exemplo n.º 2
0
 def on_language(self, _instance, language):
     self.gui.log(f"Switching language to {language}", OUTPUT_INFO)
     i18n.switch_lang(language)
     if language != "haha":
         self.gui._config["general"]["lang"] = language
         self.gui.save_config()