From 29b6bb848b2414bd7d9d16bde982b47bf72ec7e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Fri, 1 Nov 2024 18:55:33 +0800 Subject: [PATCH] fix --- src/LunaTranslator/ocrengines/baiduocr_X.py | 1 + src/LunaTranslator/translator/rengong.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/LunaTranslator/ocrengines/baiduocr_X.py b/src/LunaTranslator/ocrengines/baiduocr_X.py index 134657f2..b38c17b0 100644 --- a/src/LunaTranslator/ocrengines/baiduocr_X.py +++ b/src/LunaTranslator/ocrengines/baiduocr_X.py @@ -133,6 +133,7 @@ class OCR(baseocr): def langmap(self): return { + "auto": "auto_detect", "zh": "CHN_ENG", "en": "ENG", "ja": "JAP", diff --git a/src/LunaTranslator/translator/rengong.py b/src/LunaTranslator/translator/rengong.py index f91a9b42..1bb242f4 100644 --- a/src/LunaTranslator/translator/rengong.py +++ b/src/LunaTranslator/translator/rengong.py @@ -7,6 +7,8 @@ import gobject class TS(basetrans): + _compatible_flag_is_sakura_less_than_5_52_3 = False + def checkfilechanged(self, p1, p): if self.paths == (p1, p): return