From e58628c30ed456d5eca201b6cee654ed490bf000 Mon Sep 17 00:00:00 2001 From: mic Date: Thu, 15 Aug 2024 00:11:47 +0200 Subject: [PATCH] fixed the completed message. see #104 --- _locales/de/messages.json | 6 +++++- _locales/en/messages.json | 6 +++++- _locales/fr/messages.json | 6 +++++- _locales/it/messages.json | 6 +++++- js/mzta-chatgpt.js | 3 +++ 5 files changed, 23 insertions(+), 4 deletions(-) diff --git a/_locales/de/messages.json b/_locales/de/messages.json index c4457bf8..7f63734c 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -204,7 +204,11 @@ "description": "" }, "chatgpt_win_job_completed": { - "message": "Abgeschlossen! Text auswählen und auf die Schaltfläche klicken.", + "message": "Abgeschlossen!", + "description": "" + }, + "chatgpt_win_job_completed_select": { + "message": "Text auswählen und auf die Schaltfläche klicken.", "description": "" }, "chatgpt_win_get_answer": { diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 7e3e88d9..09f84521 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -204,7 +204,11 @@ "description": "" }, "chatgpt_win_job_completed": { - "message": "Completed! Select the text you want to use and click the button.", + "message": "Completed!", + "description": "" + }, + "chatgpt_win_job_completed_select": { + "message": "Select the text you want to use and click the button.", "description": "" }, "chatgpt_win_get_answer": { diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index 3ee08ddd..31b811b7 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -204,7 +204,11 @@ "description": "" }, "chatgpt_win_job_completed": { - "message": "Terminé ! Sélectionnez le texte que vous souhaitez utiliser et cliquez sur le bouton.", + "message": "Terminé !", + "description": "" + }, + "chatgpt_win_job_completed_select": { + "message": "Sélectionnez le texte que vous souhaitez utiliser et cliquez sur le bouton.", "description": "" }, "chatgpt_win_get_answer": { diff --git a/_locales/it/messages.json b/_locales/it/messages.json index 9b7add26..c1c362b4 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -204,7 +204,11 @@ "description": "" }, "chatgpt_win_job_completed": { - "message": "Completato! Seleziona il testo che desideri utilizzare e clicca sul pulsante.", + "message": "Completato!", + "description": "" + }, + "chatgpt_win_job_completed_select": { + "message": "Seleziona il testo che desideri utilizzare e clicca sul pulsante.", "description": "" }, "chatgpt_win_get_answer": { diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index 46e8c3ba..26473af4 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -260,6 +260,9 @@ function checkGPT4Model() { function operation_done(){ let curr_msg = document.getElementById('mzta-curr_msg'); curr_msg.textContent = browser.i18n.getMessage("chatgpt_win_job_completed"); + if(current_action != '0'){ + curr_msg.textContent += " " + browser.i18n.getMessage("chatgpt_win_job_completed_select"); + } curr_msg.style.display = 'block'; document.getElementById('mzta-btn_ok').style.display = 'inline'; document.getElementById('mzta-loading').style.display = 'none';