Refactor language translations in config_launcher.py for improved readability

master
Yong-Jer Chuang 2024-04-26 14:35:46 +08:00
parent fe1918adfd
commit 6503612e20
1 changed files with 0 additions and 4 deletions

View File

@ -167,16 +167,12 @@ def btn_save_act(slience_mode=True):
config_dict = get_default_config() config_dict = get_default_config()
language_code = get_language_code_by_name(config_dict["advanced"]["language"]) language_code = get_language_code_by_name(config_dict["advanced"]["language"])
global combo_language
config_dict["advanced"]["language"] = combo_language.get().strip() config_dict["advanced"]["language"] = combo_language.get().strip()
# display as new language.
language_code = get_language_code_by_name(config_dict["advanced"]["language"]) language_code = get_language_code_by_name(config_dict["advanced"]["language"])
global txt_file_name
filelist = [txt_file_name[i].get().strip() for i in range(15)] filelist = [txt_file_name[i].get().strip() for i in range(15)]
config_dict["list"] = filelist config_dict["list"] = filelist
# save config.
util.save_json(config_dict, config_filepath) util.save_json(config_dict, config_filepath)
if not slience_mode: if not slience_mode: