def set_language_properly(language): g.set_language(language) g.load_string_defs() g.load_base_defs() g.load_tech_defs() g.load_item_defs() g.load_event_defs() g.load_location_defs() dialog.Dialog.top.map_screen.needs_rebuild = True dialog.Dialog.top.map_screen.needs_redraw = True
def set_language_properly(language): g.set_language(language) g.load_string_defs() g.load_knowledge_defs() g.load_difficulty_defs() g.load_base_defs() g.load_tech_defs() g.load_item_defs() g.load_event_defs() g.load_task_defs() g.load_location_defs() g.load_theme_defs() dialog.Dialog.top.needs_rebuild = True dialog.Dialog.top.needs_redraw = True
def set_language_properly(language): i18n.set_language(language) g.load_strings() g.load_knowledge_defs() g.load_difficulty_defs() g.load_base_defs() g.load_tech_defs() g.load_item_defs() g.load_event_defs() g.load_task_defs() g.load_location_defs() theme.current.update() dialog.Dialog.top.needs_reconfig = True dialog.Dialog.top.needs_rebuild = True dialog.Dialog.top.needs_redraw = True
def set_language_properly(): g.set_locale() g.load_bases() g.load_techs() g.load_items() g.load_base_defs(g.language) g.load_tech_defs(g.language) g.load_item_defs(g.language) g.load_string_defs(g.language) try: g.load_location_defs(g.language) except NameError: # We haven't initialized the location yet. This will be handled when # we do that. pass dialog.Dialog.top.map_screen.needs_rebuild = True dialog.Dialog.top.map_screen.needs_redraw = True