fixed the url in chatgpt web interface messages. fixes #123
This commit is contained in:
parent
142907feff
commit
6b0c2ee360
5 changed files with 40 additions and 9 deletions
|
|
@ -220,8 +220,14 @@
|
|||
"description": ""
|
||||
},
|
||||
"chatgpt_textarea_not_found_error": {
|
||||
"message": "Es gibt einen Fehler beim Senden der Eingabeaufforderung an ChatGPT. Bitte versuchen Sie es erneut. Wenn das Problem weiterhin besteht, überprüfen Sie bitte den <a href=\"https://micz.it/thunderbird-addon-thunderai/status/\">Dienststatus</a>.",
|
||||
"description": ""
|
||||
"message": "Es gibt einen Fehler beim Senden der Eingabeaufforderung an ChatGPT. Bitte versuchen Sie es erneut. Wenn das Problem weiterhin besteht, überprüfen Sie bitte den <a href=\"$URL$\">Dienststatus</a>.",
|
||||
"description": "",
|
||||
"placeholders": {
|
||||
"url": {
|
||||
"content": "$1",
|
||||
"example": "https://micz.it/thunderbird-addon-thunderai/status/"
|
||||
}
|
||||
}
|
||||
},
|
||||
"chatgpt_sendbutton_not_found_error": {
|
||||
"message": "Klicken Sie auf die Schaltfläche „Senden“, um die Eingabeaufforderung zu übermitteln.",
|
||||
|
|
|
|||
|
|
@ -220,8 +220,14 @@
|
|||
"description": ""
|
||||
},
|
||||
"chatgpt_textarea_not_found_error": {
|
||||
"message": "There is an error sending the prompt to ChatGPT, please retry. If the problem persists, please <a href=\"https://micz.it/thunderbird-addon-thunderai/status/\">check the service status</a>.",
|
||||
"description": ""
|
||||
"message": "There is an error sending the prompt to ChatGPT, please retry. If the problem persists, please <a href=\"$URL$\">check the service status</a>.",
|
||||
"description": "",
|
||||
"placeholders": {
|
||||
"url": {
|
||||
"content": "$1",
|
||||
"example": "https://micz.it/thunderbird-addon-thunderai/status/"
|
||||
}
|
||||
}
|
||||
},
|
||||
"chatgpt_sendbutton_not_found_error": {
|
||||
"message": "Click the send button to submit the prompt.",
|
||||
|
|
|
|||
|
|
@ -220,8 +220,14 @@
|
|||
"description": ""
|
||||
},
|
||||
"chatgpt_textarea_not_found_error": {
|
||||
"message": "Il y a une erreur lors de l'envoi de la proposition à ChatGPT, veuillez réessayer. Si le problème persiste, veuillez <a href=\"https://micz.it/thunderbird-addon-thunderai/status/\">vérifier le statut du service</a>.",
|
||||
"description": ""
|
||||
"message": "Il y a une erreur lors de l'envoi de la proposition à ChatGPT, veuillez réessayer. Si le problème persiste, veuillez <a href=\"$URL$\">vérifier le statut du service</a>.",
|
||||
"description": "",
|
||||
"placeholders": {
|
||||
"url": {
|
||||
"content": "$1",
|
||||
"example": "https://micz.it/thunderbird-addon-thunderai/status/"
|
||||
}
|
||||
}
|
||||
},
|
||||
"chatgpt_sendbutton_not_found_error": {
|
||||
"message": "Cliquez sur le bouton d'envoi pour soumettre la proposition.",
|
||||
|
|
|
|||
|
|
@ -220,8 +220,14 @@
|
|||
"description": ""
|
||||
},
|
||||
"chatgpt_textarea_not_found_error": {
|
||||
"message": "C'è stato un errore nell'invio del prompt a ChatGPT, per favore riprova. Se il problema persiste, per favore <a href=\"https://micz.it/thunderbird-addon-thunderai/status/\">controlla lo stato del servizio</a>.",
|
||||
"description": ""
|
||||
"message": "C'è stato un errore nell'invio del prompt a ChatGPT, per favore riprova. Se il problema persiste, per favore <a href=\"$URL$\">controlla lo stato del servizio</a>.",
|
||||
"description": "",
|
||||
"placeholders": {
|
||||
"url": {
|
||||
"content": "$1",
|
||||
"example": "https://micz.it/thunderbird-addon-thunderai/status/"
|
||||
}
|
||||
}
|
||||
},
|
||||
"chatgpt_sendbutton_not_found_error": {
|
||||
"message": "Premi il pulsante per inviare il prompt a ChatGPT.",
|
||||
|
|
|
|||
|
|
@ -297,7 +297,14 @@ async function doProceed(message, customText = ''){
|
|||
break;
|
||||
case -2: // textarea not found
|
||||
let curr_model_warn = document.getElementById('mzta-model_warn');
|
||||
curr_model_warn.textContent = browser.i18n.getMessage("chatgpt_textarea_not_found_error");
|
||||
let message = browser.i18n.getMessage("chatgpt_textarea_not_found_error","https://micz.it/thunderbird-addon-thunderai/status/");
|
||||
let parts = message.split(/<a href="([^"]+)">([^<]+)<\\/a>/);
|
||||
curr_model_warn.textContent = parts[0];
|
||||
let link = document.createElement('a');
|
||||
link.href = parts[1];
|
||||
link.textContent = parts[2];
|
||||
curr_model_warn.appendChild(link);
|
||||
curr_model_warn.appendChild(document.createTextNode(parts[3]));
|
||||
curr_model_warn.style.display = 'inline-block';
|
||||
document.getElementById('mzta-curr_msg').textContent = "";
|
||||
document.getElementById('mzta-loading').style.display = 'none';
|
||||
|
|
|
|||
Loading…
Reference in a new issue