提交 09366736 编写于 作者: H HinGwenWoong

Optimize discardChangesDialog attention message when using chinese as language.

上级 c645a865
...@@ -1790,6 +1790,9 @@ class MainWindow(QMainWindow, WindowMixin): ...@@ -1790,6 +1790,9 @@ class MainWindow(QMainWindow, WindowMixin):
def discardChangesDialog(self): def discardChangesDialog(self):
yes, no, cancel = QMessageBox.Yes, QMessageBox.No, QMessageBox.Cancel yes, no, cancel = QMessageBox.Yes, QMessageBox.No, QMessageBox.Cancel
if self.lang == 'ch':
msg = u'您有未保存的变更, 您想保存再继续吗?\n点击 "No" 丢弃所有未保存的变更.'
else:
msg = u'You have unsaved changes, would you like to save them and proceed?\nClick "No" to undo all changes.' msg = u'You have unsaved changes, would you like to save them and proceed?\nClick "No" to undo all changes.'
return QMessageBox.warning(self, u'Attention', msg, yes | no | cancel) return QMessageBox.warning(self, u'Attention', msg, yes | no | cancel)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册