diff --git a/LunaTranslator/LunaTranslator/LunaTranslator.py b/LunaTranslator/LunaTranslator/LunaTranslator.py index 0b510d8b..6f7dd855 100644 --- a/LunaTranslator/LunaTranslator/LunaTranslator.py +++ b/LunaTranslator/LunaTranslator/LunaTranslator.py @@ -386,7 +386,9 @@ class MAINUI: self.textsource.sqlqueueput((contentraw, classname, res)) except: pass - self.currenttranslate = self.currenttranslate + "\n" + res + if len(self.currenttranslate): + self.currenttranslate += "\n" + self.currenttranslate += res if ( globalconfig["embedded"]["as_fast_as_posible"] or classname == globalconfig["embedded"]["translator_2"] diff --git a/LunaTranslator/LunaTranslator/gui/showword.py b/LunaTranslator/LunaTranslator/gui/showword.py index f12da81e..2ef7fe17 100644 --- a/LunaTranslator/LunaTranslator/gui/showword.py +++ b/LunaTranslator/LunaTranslator/gui/showword.py @@ -377,6 +377,10 @@ class AnkiWindow(QWidget): _TR("例句中加粗单词"), getsimpleswitch(globalconfig["ankiconnect"], "boldword"), ) + layout.addRow( + _TR("备注中自动填入翻译"), + getsimpleswitch(globalconfig["ankiconnect"], "fillmaksastrans"), + ) layout.addRow( _TR("录音时模拟按键"), @@ -854,7 +858,8 @@ class searchwordW(closeashidewindow): self.ankiwindow.langdu() if globalconfig["ankiconnect"]["autoruntts2"]: self.ankiwindow.langdu2() - + if globalconfig["ankiconnect"]["fillmaksastrans"]: + self.ankiwindow.remarks.setPlainText(gobject.baseobject.currenttranslate) if globalconfig["ankiconnect"]["autocrop"]: grabwindow( getimageformat(), diff --git a/LunaTranslator/files/defaultconfig/config.json b/LunaTranslator/files/defaultconfig/config.json index e29154d9..b7c17216 100644 --- a/LunaTranslator/files/defaultconfig/config.json +++ b/LunaTranslator/files/defaultconfig/config.json @@ -232,6 +232,7 @@ "autocrop": false, "addsuccautoclose": false, "boldword": false, + "fillmaksastrans": false, "tags": [] }, "imageformat": -1, diff --git a/LunaTranslator/files/lang/ar.json b/LunaTranslator/files/lang/ar.json index 335fa18a..c58a3a5e 100644 --- a/LunaTranslator/files/lang/ar.json +++ b/LunaTranslator/files/lang/ar.json @@ -826,5 +826,6 @@ "设为封面": "مجموعة غطاء", "复制": "نسخ", "画廊": "معرض", - "删除图片": "حذف الصور" + "删除图片": "حذف الصور", + "备注中自动填入翻译": "التلقائي ملء الترجمة في الملاحظات" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/cht.json b/LunaTranslator/files/lang/cht.json index 3d59c5d2..b3c81a6e 100644 --- a/LunaTranslator/files/lang/cht.json +++ b/LunaTranslator/files/lang/cht.json @@ -826,5 +826,6 @@ "设为封面": "設為封面", "复制": "複製", "画廊": "畫廊", - "删除图片": "删除圖片" + "删除图片": "删除圖片", + "备注中自动填入翻译": "備註中自動填入翻譯" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/en.json b/LunaTranslator/files/lang/en.json index 3e52d24d..1261abef 100644 --- a/LunaTranslator/files/lang/en.json +++ b/LunaTranslator/files/lang/en.json @@ -826,5 +826,6 @@ "设为封面": "Set as Cover", "复制": "copy", "画廊": "gallery", - "删除图片": "Delete image" + "删除图片": "Delete image", + "备注中自动填入翻译": "Automatically fill in translation in remarks" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/es.json b/LunaTranslator/files/lang/es.json index 6a61fee9..532e0362 100644 --- a/LunaTranslator/files/lang/es.json +++ b/LunaTranslator/files/lang/es.json @@ -826,5 +826,6 @@ "设为封面": "Como portada", "复制": "Copiar", "画廊": "Galería", - "删除图片": "Eliminar imagen" + "删除图片": "Eliminar imagen", + "备注中自动填入翻译": "Rellene automáticamente la traducción en las Notas" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/fr.json b/LunaTranslator/files/lang/fr.json index 323b776e..11a138f9 100644 --- a/LunaTranslator/files/lang/fr.json +++ b/LunaTranslator/files/lang/fr.json @@ -826,5 +826,6 @@ "设为封面": "Faire la couverture", "复制": "Copier", "画廊": "Galerie", - "删除图片": "Supprimer une image" + "删除图片": "Supprimer une image", + "备注中自动填入翻译": "Remplir automatiquement la traduction dans les notes" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/it.json b/LunaTranslator/files/lang/it.json index c862d0dc..cbb4077c 100644 --- a/LunaTranslator/files/lang/it.json +++ b/LunaTranslator/files/lang/it.json @@ -826,5 +826,6 @@ "设为封面": "Imposta come copertina", "复制": "copia", "画廊": "gallery", - "删除图片": "Elimina immagine" + "删除图片": "Elimina immagine", + "备注中自动填入翻译": "Compilare automaticamente la traduzione in commenti" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/ja.json b/LunaTranslator/files/lang/ja.json index 2626c9be..115125d3 100644 --- a/LunaTranslator/files/lang/ja.json +++ b/LunaTranslator/files/lang/ja.json @@ -826,5 +826,6 @@ "设为封面": "表紙にする", "复制": "レプリケーション", "画廊": "ギャラリー", - "删除图片": "画像を削除" + "删除图片": "画像を削除", + "备注中自动填入翻译": "注記に翻訳を自動的に記入する" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/ko.json b/LunaTranslator/files/lang/ko.json index 6c187236..e989d04d 100644 --- a/LunaTranslator/files/lang/ko.json +++ b/LunaTranslator/files/lang/ko.json @@ -826,5 +826,6 @@ "设为封面": "표지로 설정하다", "复制": "복제", "画廊": "갤러리", - "删除图片": "그림 삭제" + "删除图片": "그림 삭제", + "备注中自动填入翻译": "메모에 번역 자동 입력" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/pl.json b/LunaTranslator/files/lang/pl.json index 51670e24..e64b18ed 100644 --- a/LunaTranslator/files/lang/pl.json +++ b/LunaTranslator/files/lang/pl.json @@ -826,5 +826,6 @@ "设为封面": "Ustaw jako okładka", "复制": "kopia", "画廊": "galeria", - "删除图片": "Usuń obraz" + "删除图片": "Usuń obraz", + "备注中自动填入翻译": "Automatycznie wypełniaj tłumaczenie w uwagach" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/ru.json b/LunaTranslator/files/lang/ru.json index 91031f4e..3eea4e9e 100644 --- a/LunaTranslator/files/lang/ru.json +++ b/LunaTranslator/files/lang/ru.json @@ -826,5 +826,6 @@ "设为封面": "Установить обложку", "复制": "Копирование", "画廊": "Галерея", - "删除图片": "Удалить изображение" + "删除图片": "Удалить изображение", + "备注中自动填入翻译": "Автоматически заполнять переводы" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/th.json b/LunaTranslator/files/lang/th.json index fe4d77e9..13f19251 100644 --- a/LunaTranslator/files/lang/th.json +++ b/LunaTranslator/files/lang/th.json @@ -826,5 +826,6 @@ "设为封面": "ตั้งค่าเป็นปก", "复制": "คัดลอก", "画廊": "แกลเลอรี่", - "删除图片": "ลบรูปภาพ" + "删除图片": "ลบรูปภาพ", + "备注中自动填入翻译": "กรอกคำแปลโดยอัตโนมัติในหมายเหตุ" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/tr.json b/LunaTranslator/files/lang/tr.json index eaa3a357..5644287d 100644 --- a/LunaTranslator/files/lang/tr.json +++ b/LunaTranslator/files/lang/tr.json @@ -826,5 +826,6 @@ "设为封面": "Kapağı olarak ayarlayın", "复制": "kopyalama", "画廊": "Galeri", - "删除图片": "Resimi sil" + "删除图片": "Resimi sil", + "备注中自动填入翻译": "Özellikle tercüme doldur" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/uk.json b/LunaTranslator/files/lang/uk.json index bc85d6f1..b447647f 100644 --- a/LunaTranslator/files/lang/uk.json +++ b/LunaTranslator/files/lang/uk.json @@ -826,5 +826,6 @@ "设为封面": "Встановити як обкладинку", "复制": "копіювати", "画廊": "галерія", - "删除图片": "Вилучити зображення" + "删除图片": "Вилучити зображення", + "备注中自动填入翻译": "Автоматично заповнювати переклад у зауваження" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/vi.json b/LunaTranslator/files/lang/vi.json index 67281159..84a5d200 100644 --- a/LunaTranslator/files/lang/vi.json +++ b/LunaTranslator/files/lang/vi.json @@ -826,5 +826,6 @@ "设为封面": "Đặt làm bìa", "复制": "Sao chép", "画廊": "Thư viện", - "删除图片": "Xóa ảnh" + "删除图片": "Xóa ảnh", + "备注中自动填入翻译": "Tự động điền vào bản dịch trong ghi chú" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/zh.json b/LunaTranslator/files/lang/zh.json index b67a8a91..f2b42e81 100644 --- a/LunaTranslator/files/lang/zh.json +++ b/LunaTranslator/files/lang/zh.json @@ -826,5 +826,6 @@ "设为封面": "", "复制": "", "画廊": "", - "删除图片": "" + "删除图片": "", + "备注中自动填入翻译": "" } \ No newline at end of file