diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 98e2b1ef77f6fb63b49cd8d32ca87d3d783daf50..ee8baeb7b5329dab70c1c7653dc3368bcf7480c6 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -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?\nClick "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?\nClick "No" to undo all changes.' return QMessageBox.warning(self, u'Attention', msg, yes | no | cancel) def errorMessage(self, title, message):