Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Fixed an error
Browse files Browse the repository at this point in the history
  • Loading branch information
tumuidle committed Jun 13, 2022
1 parent c2ff91d commit 6ad0195
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ocr-lang: ja\n" \
"# 支持以下接口:\n" \
"# baidu - 百度翻译\n" \
"# youdao - 有道智云" \
"# youdao - 有道智云\n" \
"translator: baidu\n" \
"\n" \
"# 翻译API APPID\n" \
Expand Down
2 changes: 1 addition & 1 deletion utils/translator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from . import baidu
from . import youdao

__TRANSLATOR_LST = ["baidu", "youdao"]
TRANSLATOR_LST = ["baidu", "youdao"]

def translate(mode, appid, key, content):
if mode == "baidu":
Expand Down
2 changes: 1 addition & 1 deletion window.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self,
self.pbtn_translate.clicked.connect(lambda: self.translate()) # 截图并翻译

def translate(self):
if not self.translator in translator.__TRANSLATOR_LST:
if not self.translator in translator.TRANSLATOR_LST:
print("[Window] Invalid translator")
self.pte_result.setPlainText("无效翻译设置")
return
Expand Down

0 comments on commit 6ad0195

Please sign in to comment.