Skip to content

Commit

Permalink
feat(#17): adjust the tip after changing language
Browse files Browse the repository at this point in the history
  • Loading branch information
GSCmax authored Mar 5, 2024
1 parent 542215e commit badec37
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,16 @@ def change_language(_, language_combo: ttk.Combobox):
global language
language = LanguageType.find_value(language_combo.get())
if language == LanguageType.SIMPLIFIED_CHINESE:
log('语言已更改为简体中文\n请重启程序以应用更改\n')
messagebox.showinfo('提示', '语言已更改为简体中文\n请重启程序以应用更改')
log('语言设置已更改为"简体中文"\n请在当前操作完成后手动重启此程序以应用更改')
messagebox.showinfo(
'提示',
'语言设置已更改为"简体中文"\n请在当前操作完成后手动重启此程序以应用更改'
)
else:
log('Language has been changed to English\nPlease restart the program to apply the changes')
log('Language setting has been changed to "English"\nPlease manually restart this program after the current operation is completed to apply the changes')
messagebox.showinfo(
'Prompt',
'Language has been changed to English\nPlease restart the program to apply the changes'
'Language setting has been changed to "English"\nPlease manually restart this program after the current operation is completed to apply the changes'
)


Expand Down

0 comments on commit badec37

Please sign in to comment.