From fd7801c3191e47165c9d2de7a0dd2b299d923f7e Mon Sep 17 00:00:00 2001 From: HinGwenWoong Date: Wed, 19 Jan 2022 10:28:29 +0800 Subject: [PATCH] Optimize savePPlabel information message when using chinese as language. --- PPOCRLabel/PPOCRLabel.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index b1ccfc2f..783b3ca3 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -2094,8 +2094,11 @@ class MainWindow(QMainWindow, WindowMixin): f.write(key + '\t') f.write(json.dumps(self.PPlabel[key], ensure_ascii=False) + '\n') - if mode=='Manual': - msg = 'Images that have been checked are saved in '+ self.PPlabelpath + if mode == 'Manual': + if self.lang == 'ch': + msg = '已将检查过的图片标签保存在 ' + self.PPlabelpath + " 文件中" + else: + msg = 'Images that have been checked are saved in ' + self.PPlabelpath QMessageBox.information(self, "Information", msg) def saveCacheLabel(self): -- GitLab