Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
09366736
Commit
09366736
authored
Jan 19, 2022
by
HinGwenWoong
Browse files
Optimize discardChangesDialog attention message when using chinese as language.
parent
c645a865
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+4
-1
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
09366736
...
...
@@ -1790,7 +1790,10 @@ class MainWindow(QMainWindow, WindowMixin):
def
discardChangesDialog
(
self
):
yes
,
no
,
cancel
=
QMessageBox
.
Yes
,
QMessageBox
.
No
,
QMessageBox
.
Cancel
msg
=
u
'You have unsaved changes, would you like to save them and proceed?
\n
Click "No" to undo all changes.'
if
self
.
lang
==
'ch'
:
msg
=
u
'您有未保存的变更, 您想保存再继续吗?
\n
点击 "No" 丢弃所有未保存的变更.'
else
:
msg
=
u
'You have unsaved changes, would you like to save them and proceed?
\n
Click "No" to undo all changes.'
return
QMessageBox
.
warning
(
self
,
u
'Attention'
,
msg
,
yes
|
no
|
cancel
)
def
errorMessage
(
self
,
title
,
message
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment