From 82de5f0f3772b89748015c7b9cb21aacb176714c Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 17 Jun 2025 23:30:05 +0200 Subject: [PATCH] info text improved. see #156 --- _locales/en/messages.json | 8 ++++++-- .../mzta-custom-dataplaceholders.html | 8 ++++---- .../mzta-custom-dataplaceholders.js | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index b4a4125f..cd9128d8 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1564,12 +1564,16 @@ "message": "Manage Data Placeholders", "description": "" }, + "customDataPH_manageDataPH_info_default_3": { + "message": "You can also use the default data placeholders with autocomplete, just like when writing custom prompts.", + "description": "" + }, "customDataPH_manageDataPH_info_default": { - "message": "You can define custom data placeholders to be used in your custom prompts. You can use here also the default data placeholders.", + "message": "On this page, it is possible to define custom data placeholders to be used in your custom prompts.", "description": "" }, "customDataPH_manageDataPH_info_default_2": { - "message": "You can import and export the custom data placeholders. Existing data placeholders with the same ID will be overwritten. Placeholders with new IDs will be added.", + "message": "You can import your custom data placeholders. Existing data placeholders with the same ID will be overwritten. Placeholders with new IDs will be added.", "description": "" }, "customDataPH_ExportAll": { diff --git a/pages/customdataplaceholders/mzta-custom-dataplaceholders.html b/pages/customdataplaceholders/mzta-custom-dataplaceholders.html index 22873d93..1d8b9569 100644 --- a/pages/customdataplaceholders/mzta-custom-dataplaceholders.html +++ b/pages/customdataplaceholders/mzta-custom-dataplaceholders.html @@ -9,10 +9,10 @@

__MSG_customDataPH_manageDataPH__

-

__MSG_customDataPH_manageDataPH_info_default_2__
- __MSG_customPrompts_managePrompts_info_default_3__ -
__MSG_customDataPH_manageDataPH_info_default__ __MSG_more_info_string__ -

+

__MSG_customDataPH_manageDataPH_info_default__ +
__MSG_customDataPH_manageDataPH_info_default_3__ __MSG_more_info_string__ + +


diff --git a/pages/customdataplaceholders/mzta-custom-dataplaceholders.js b/pages/customdataplaceholders/mzta-custom-dataplaceholders.js index c2711240..81b82f4b 100644 --- a/pages/customdataplaceholders/mzta-custom-dataplaceholders.js +++ b/pages/customdataplaceholders/mzta-custom-dataplaceholders.js @@ -176,7 +176,7 @@ document.addEventListener('DOMContentLoaded', async () => { }); function importCustomDataPHs() { - if(confirm(browser.i18n.getMessage("importCustomDataPH_confirmText") + '\n' + browser.i18n.getMessage("customDataPH_manageDataPH_info_default") + '\n' + browser.i18n.getMessage("customPrompts_managePrompts_info_default_3"))) { + if(confirm(browser.i18n.getMessage("importCustomDataPH_confirmText") + '\n' + browser.i18n.getMessage("customDataPH_manageDataPH_info_default_2") + '\n' + browser.i18n.getMessage("customPrompts_managePrompts_info_default_3"))) { //ask the user to choose a JSON file, and then read it, check if the serialized JSON is valid as generated from importCustomDataPHs(), and if so, add it to the list const input = document.createElement('input'); input.type = 'file';