From 6e3377a301de9fa1a6d1106f5fcddc1f3ad4febb Mon Sep 17 00:00:00 2001 From: Mic Date: Thu, 5 Sep 2024 18:00:45 +0200 Subject: [PATCH] removed the link to status page as requested by the TB Addon Reviewer. Reverts #123 --- _locales/de/messages.json | 10 ++-------- _locales/en/messages.json | 10 ++-------- _locales/fr/messages.json | 10 ++-------- _locales/it/messages.json | 10 ++-------- js/mzta-chatgpt.js | 2 +- 5 files changed, 9 insertions(+), 33 deletions(-) diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 3b4b343a..1e710736 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -220,14 +220,8 @@ "description": "" }, "chatgpt_textarea_not_found_error": { - "message": "Es scheint, dass die ChatGPT-Seite zu lange zum Laden braucht. Wenn sie fertig geladen ist, klicken Sie auf den Button rechts. Wenn das Problem weiterhin besteht, überprüfen Sie bitte den Dienststatus.", - "description": "", - "placeholders": { - "url": { - "content": "$1", - "example": "https://micz.it/thunderbird-addon-thunderai/status/" - } - } + "message": "Es scheint, dass die ChatGPT-Seite zu lange zum Laden braucht. Wenn sie fertig geladen ist, klicken Sie auf den Button rechts. Wenn das Problem weiterhin besteht, überprüfen Sie bitte den Dienststatus.", + "description": "" }, "chatgpt_btn_retry": { "message": "Wiederholen", diff --git a/_locales/en/messages.json b/_locales/en/messages.json index a1c66406..b9e257de 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -220,14 +220,8 @@ "description": "" }, "chatgpt_textarea_not_found_error": { - "message": "It seems that the ChatGPT page is taking too long to load. If it finishes loading, click the button on the right. If the problem persists, please check the service status.", - "description": "", - "placeholders": { - "url": { - "content": "$1", - "example": "https://micz.it/thunderbird-addon-thunderai/status/" - } - } + "message": "It seems that the ChatGPT page is taking too long to load. If it finishes loading, click the button on the right. If the problem persists, please check the service status.", + "description": "" }, "chatgpt_btn_retry": { "message": "Retry", diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index 749c17e4..6bb390db 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -220,14 +220,8 @@ "description": "" }, "chatgpt_textarea_not_found_error": { - "message": "Il semble que la page ChatGPT mette trop de temps à charger. Si elle finit de charger, cliquez sur le bouton à droite. Si le problème persiste, veuillez vérifier le statut du service.", - "description": "", - "placeholders": { - "url": { - "content": "$1", - "example": "https://micz.it/thunderbird-addon-thunderai/status/" - } - } + "message": "Il semble que la page ChatGPT mette trop de temps à charger. Si elle finit de charger, cliquez sur le bouton à droite. Si le problème persiste, veuillez vérifier le statut du service.", + "description": "" }, "chatgpt_btn_retry": { "message": "Réessayer", diff --git a/_locales/it/messages.json b/_locales/it/messages.json index ac8d9028..b0a83815 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -220,14 +220,8 @@ "description": "" }, "chatgpt_textarea_not_found_error": { - "message": "Sembra che la pagina di ChatGPT impieghi troppo tempo a caricarsi. Se finisce di caricarsi, clicca sul pulsante a destra. Se il problema persiste, per favore controlla lo stato del servizio.", - "description": "", - "placeholders": { - "url": { - "content": "$1", - "example": "https://micz.it/thunderbird-addon-thunderai/status/" - } - } + "message": "Sembra che la pagina di ChatGPT impieghi troppo tempo a caricarsi. Se finisce di caricarsi, clicca sul pulsante a destra. Se il problema persiste, per favore controlla lo stato del servizio.", + "description": "" }, "chatgpt_btn_retry": { "message": "Riprova", diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index 30e30c4f..1b8dcaee 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -303,7 +303,7 @@ async function doProceed(message, customText = ''){ break; case -2: // textarea not found let curr_model_warn = document.getElementById('mzta-model_warn'); - let message = browser.i18n.getMessage("chatgpt_textarea_not_found_error","https://micz.it/thunderbird-addon-thunderai/status/"); + let message = browser.i18n.getMessage("chatgpt_textarea_not_found_error"); let parts = message.split(/([^<]+)<\\/a>/); curr_model_warn.textContent = parts[0]; let link = document.createElement('a');