forked from yihong0618/bilingual_book_maker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the bug that caused DeepL to not work properly. fixed yihong061…
- Loading branch information
Showing
11 changed files
with
71 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
from calibre.customize import InterfaceActionBase | ||
|
||
from calibre_plugins.ebook_translator.utils import _z | ||
|
||
|
||
__license__ = 'GPL v3' | ||
__copyright__ = '2023, bookfere.com <[email protected]>' | ||
|
@@ -9,7 +11,7 @@ | |
|
||
|
||
class EbookTranslator(InterfaceActionBase): | ||
name = 'Ebook Translator' | ||
name = _z('Ebook Translator') | ||
title = _(name) | ||
supported_platforms = ['windows', 'osx', 'linux'] | ||
author = 'bookfere.com' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Ebook Translator Calibre Plugin\n" | ||
"Report-Msgid-Bugs-To: [email protected]\n" | ||
"POT-Creation-Date: 2023-04-17 17:25+0800\n" | ||
"POT-Creation-Date: 2023-04-18 18:14+0800\n" | ||
"PO-Revision-Date: 2023-04-17 14:17+0800\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
|
@@ -18,6 +18,9 @@ msgstr "" | |
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
msgid "Ebook Translator" | ||
msgstr "Traductor de libros electrónicos" | ||
|
||
msgid "Translating..." | ||
msgstr "Traduciendo..." | ||
|
||
|
@@ -30,6 +33,9 @@ msgstr "Traducir" | |
msgid "Usage: checking..." | ||
msgstr "Uso: verificación..." | ||
|
||
msgid "Usage: {}" | ||
msgstr "Uso: {}" | ||
|
||
msgid "Custom Translation Engine" | ||
msgstr "Motor de Traducción Personalizado" | ||
|
||
|
@@ -114,9 +120,12 @@ msgstr "Se requiere una expresión para analizar la respuesta." | |
msgid "Custom" | ||
msgstr "Personalizado" | ||
|
||
msgid "Resposne was parsed incorrectly." | ||
msgid "Response was parsed incorrectly." | ||
msgstr "La respuesta fue analizada incorrectamente." | ||
|
||
msgid "{} total, {} used, {} left" | ||
msgstr "{} en total, {} utilizado(s), {} restante(s)" | ||
|
||
msgid "Youdao" | ||
msgstr "Youdao" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Ebook Translator Calibre Plugin\n" | ||
"Report-Msgid-Bugs-To: [email protected]\n" | ||
"POT-Creation-Date: 2023-04-17 17:25+0800\n" | ||
"POT-Creation-Date: 2023-04-18 18:14+0800\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -17,6 +17,10 @@ msgstr "" | |
"Content-Type: text/plain; charset=CHARSET\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: __init__.py:14 | ||
msgid "Ebook Translator" | ||
msgstr "" | ||
|
||
#: components/engine.py:40 | ||
msgid "Translating..." | ||
msgstr "" | ||
|
@@ -33,47 +37,51 @@ msgstr "" | |
msgid "Usage: checking..." | ||
msgstr "" | ||
|
||
#: components/engine.py:131 | ||
#: components/engine.py:101 | ||
msgid "Usage: {}" | ||
msgstr "" | ||
|
||
#: components/engine.py:135 | ||
msgid "Custom Translation Engine" | ||
msgstr "" | ||
|
||
#: components/engine.py:140 | ||
#: components/engine.py:144 | ||
msgid "Add" | ||
msgstr "" | ||
|
||
#: components/engine.py:141 | ||
#: components/engine.py:145 | ||
msgid "Delete" | ||
msgstr "" | ||
|
||
#: components/engine.py:144 main.py:574 | ||
#: components/engine.py:148 main.py:574 | ||
msgid "Clear" | ||
msgstr "" | ||
|
||
#: components/engine.py:145 | ||
#: components/engine.py:149 | ||
msgid "Reset" | ||
msgstr "" | ||
|
||
#: components/engine.py:146 | ||
#: components/engine.py:150 | ||
msgid "Verify" | ||
msgstr "" | ||
|
||
#: components/engine.py:147 main.py:272 | ||
#: components/engine.py:151 main.py:272 | ||
msgid "Save" | ||
msgstr "" | ||
|
||
#: components/engine.py:187 | ||
#: components/engine.py:191 | ||
msgid "Engine data format is valid." | ||
msgstr "" | ||
|
||
#: components/engine.py:203 | ||
#: components/engine.py:207 | ||
msgid "The engine name is already in use." | ||
msgstr "" | ||
|
||
#: components/engine.py:211 main.py:770 | ||
#: components/engine.py:215 main.py:770 | ||
msgid "The setting was saved." | ||
msgstr "" | ||
|
||
#: components/engine.py:217 | ||
#: components/engine.py:221 | ||
msgid "No custom engine to delete." | ||
msgstr "" | ||
|
||
|
@@ -93,7 +101,7 @@ msgstr "" | |
msgid "API Key" | ||
msgstr "" | ||
|
||
#: engines/base.py:89 tests/test_deepl.py:44 | ||
#: engines/base.py:89 tests/test_deepl.py:45 | ||
msgid "Can not parse returned response. Raw data: {}" | ||
msgstr "" | ||
|
||
|
@@ -146,7 +154,11 @@ msgid "Custom" | |
msgstr "" | ||
|
||
#: engines/custom.py:123 | ||
msgid "Resposne was parsed incorrectly." | ||
msgid "Response was parsed incorrectly." | ||
msgstr "" | ||
|
||
#: engines/deepl.py:24 | ||
msgid "{} total, {} used, {} left" | ||
msgstr "" | ||
|
||
#: engines/youdao.py:14 | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Ebook Translator Calibre Plugin\n" | ||
"Report-Msgid-Bugs-To: [email protected]\n" | ||
"POT-Creation-Date: 2023-04-17 17:25+0800\n" | ||
"POT-Creation-Date: 2023-04-18 18:14+0800\n" | ||
"PO-Revision-Date: 2023-04-17 14:17+0800\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
|
@@ -17,6 +17,9 @@ msgstr "" | |
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
msgid "Ebook Translator" | ||
msgstr "电子书翻译器" | ||
|
||
msgid "Translating..." | ||
msgstr "翻译中……" | ||
|
||
|
@@ -29,6 +32,9 @@ msgstr "翻译" | |
msgid "Usage: checking..." | ||
msgstr "用量:检查中……" | ||
|
||
msgid "Usage: {}" | ||
msgstr "用量:{}" | ||
|
||
msgid "Custom Translation Engine" | ||
msgstr "自定义翻译引擎" | ||
|
||
|
@@ -113,9 +119,12 @@ msgstr "用来解析响应的表达式是必填项。" | |
msgid "Custom" | ||
msgstr "自定义" | ||
|
||
msgid "Resposne was parsed incorrectly." | ||
msgid "Response was parsed incorrectly." | ||
msgstr "响应没有正确解析。" | ||
|
||
msgid "{} total, {} used, {} left" | ||
msgstr "总计 {},已用 {},剩余 {}" | ||
|
||
msgid "Youdao" | ||
msgstr "有道" | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Ebook Translator Calibre Plugin\n" | ||
"Report-Msgid-Bugs-To: [email protected]\n" | ||
"POT-Creation-Date: 2023-04-17 17:25+0800\n" | ||
"POT-Creation-Date: 2023-04-18 18:14+0800\n" | ||
"PO-Revision-Date: 2023-04-17 23:49+0800\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
|
@@ -18,6 +18,9 @@ msgstr "" | |
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Poedit 3.1.1\n" | ||
|
||
msgid "Ebook Translator" | ||
msgstr "電子書翻譯器" | ||
|
||
msgid "Translating..." | ||
msgstr "翻譯中..." | ||
|
||
|
@@ -30,6 +33,9 @@ msgstr "翻譯" | |
msgid "Usage: checking..." | ||
msgstr "使用量:檢查中..." | ||
|
||
msgid "Usage: {}" | ||
msgstr "使用量:{}" | ||
|
||
msgid "Custom Translation Engine" | ||
msgstr "自訂翻譯引擎" | ||
|
||
|
@@ -114,9 +120,12 @@ msgstr "必須提供剖析回應的運算式。" | |
msgid "Custom" | ||
msgstr "自訂" | ||
|
||
msgid "Resposne was parsed incorrectly." | ||
msgid "Response was parsed incorrectly." | ||
msgstr "回應剖析不正確。" | ||
|
||
msgid "{} total, {} used, {} left" | ||
msgstr "總計 {},已用 {},剩餘 {}" | ||
|
||
msgid "Youdao" | ||
msgstr "有道" | ||
|
||
|