Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调整语言更改后的提示 #17

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading