Skip to content

Commit

Permalink
fix: Synchronize the output format for Advanced mode for PR #375.
Browse files Browse the repository at this point in the history
  • Loading branch information
bookfere committed Dec 8, 2024
1 parent edce151 commit 209724a
Show file tree
Hide file tree
Showing 8 changed files with 219 additions and 216 deletions.
2 changes: 2 additions & 0 deletions advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,8 @@ def choose_engine(index):
refresh_languages()
engine_list.currentIndexChanged.connect(choose_engine)

output_format.setCurrentText(self.ebook.output_format)

def change_output_format(format):
self.ebook.set_output_format(format)
change_output_format(output_format.currentText())
Expand Down
18 changes: 9 additions & 9 deletions translations/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Ebook Translator Calibre Plugin\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2024-11-03 20:44+0800\n"
"POT-Creation-Date: 2024-12-08 12:47+0800\n"
"PO-Revision-Date: 2024-07-07 17:05-0300\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -47,6 +47,9 @@ msgstr "&Comenzar"
msgid "Input Format"
msgstr "Formato de entrada"

msgid "Output Format"
msgstr "Formato de salida"

msgid "Source Language"
msgstr "Lenguaje original"

Expand Down Expand Up @@ -209,9 +212,6 @@ msgstr "¿Está seguro de que desea cancelar el progreso de la preparación?"
msgid "Are you sure you want to cancel the translation progress?"
msgstr "¿Está seguro de que desea cancelar el progreso de la traducción?"

msgid "Output Format"
msgstr "Formato de salida"

msgid "Title"
msgstr "Título"

Expand Down Expand Up @@ -716,15 +716,15 @@ msgstr "Sintonizar Gemini"
msgid "Prompt"
msgstr "Prompt"

msgid "Model"
msgstr "Modelo"

msgid "Sampling"
msgstr "Muestreo"

msgid "Endpoint"
msgstr "PuntoFinal"

msgid "Model"
msgstr "Modelo"

msgid "Enable streaming text like in ChatGPT"
msgstr "Habilite la transmisión de texto como en ChatGPT"

Expand Down Expand Up @@ -916,8 +916,8 @@ msgstr "Configuración"
msgid "About"
msgstr "Acerca"

msgid "Please choose one single book."
msgstr "Por favor elige un solo libro."
msgid "Please choose a book."
msgstr ""

msgid "Please choose at least one book."
msgstr "Por favor, elija al menos un libro."
Expand Down
18 changes: 9 additions & 9 deletions translations/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Ebook Translator Calibre Plugin\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2024-11-03 20:44+0800\n"
"POT-Creation-Date: 2024-12-08 12:47+0800\n"
"PO-Revision-Date: 2023-10-01 15:35-0400\n"
"Last-Translator: <a href=\"https://www.mobileread.com/forums/member.php?"
"u=90932\">PoP</a>\n"
Expand Down Expand Up @@ -46,6 +46,9 @@ msgstr "&Début"
msgid "Input Format"
msgstr "Format d'entrée"

msgid "Output Format"
msgstr "Format de sortie"

msgid "Source Language"
msgstr "Langage d'origine"

Expand Down Expand Up @@ -205,9 +208,6 @@ msgstr ""
msgid "Are you sure you want to cancel the translation progress?"
msgstr ""

msgid "Output Format"
msgstr "Format de sortie"

msgid "Title"
msgstr "Titre"

Expand Down Expand Up @@ -702,15 +702,15 @@ msgstr ""
msgid "Prompt"
msgstr "Demander"

msgid "Model"
msgstr "Modèle"

msgid "Sampling"
msgstr "Échantillonant"

msgid "Endpoint"
msgstr "Point final"

msgid "Model"
msgstr "Modèle"

msgid "Enable streaming text like in ChatGPT"
msgstr "Activer le défilage du texte comme dans ChatGPT"

Expand Down Expand Up @@ -900,8 +900,8 @@ msgstr "Réglage"
msgid "About"
msgstr "À propos"

msgid "Please choose one single book."
msgstr "Veuillez choisir un seul ebook."
msgid "Please choose a book."
msgstr ""

msgid "Please choose at least one book."
msgstr "Veuillez choisir au moins un livre."
Expand Down
Loading

0 comments on commit 209724a

Please sign in to comment.