From 509b8de8e025dda37b6302f3c2cccff4b4892001 Mon Sep 17 00:00:00 2001 From: Mic Date: Sun, 15 Jun 2025 23:12:00 +0200 Subject: [PATCH] Refactor localization keys for prompts to use a consistent naming convention and update related HTML references --- _locales/cs/messages.json | 4 ++-- _locales/de/messages.json | 4 ++-- _locales/en/messages.json | 16 ++++++++++++++-- _locales/eo/messages.json | 4 ++-- _locales/fr/messages.json | 4 ++-- _locales/hr/messages.json | 4 ++-- _locales/it/messages.json | 4 ++-- _locales/pl/messages.json | 4 ++-- _locales/pt-br/messages.json | 4 ++-- _locales/ru/messages.json | 4 ++-- _locales/zh_Hans/messages.json | 4 ++-- _locales/zh_Hant/messages.json | 4 ++-- pages/customprompts/mzta-custom-prompts.html | 4 ++-- 13 files changed, 38 insertions(+), 26 deletions(-) diff --git a/_locales/cs/messages.json b/_locales/cs/messages.json index 6e219597..a09cbf60 100644 --- a/_locales/cs/messages.json +++ b/_locales/cs/messages.json @@ -80,13 +80,13 @@ "customPrompts_form_label_enabled": { "message": "Povoleno" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "Uložit vše" }, "customPrompts_do_reply": { "message": "Odpovědět" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "Přidat nový" }, "customPrompts_close_button": { diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 601698bf..8a4f5927 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -120,10 +120,10 @@ "customPrompts_unsaved_changes": { "message": "Es gibt ungespeicherte Änderungen!" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "Alle speichern" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "Neu hinzufügen" }, "customPrompts_btnAddNewCommit": { diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 67e8a53c..e5a0c071 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -167,11 +167,11 @@ "message": "There are unsaved changes!", "description": "" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "Save All", "description": "" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "Add New", "description": "" }, @@ -1563,5 +1563,17 @@ "customDataPH_manageDataPH": { "message": "Manage Data Placeholders", "description": "" + }, + "customDataPH_manageDataPH_info_default": { + "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.", + "description": "" + }, + "customDataPH_ExportAll": { + "message": "Export all custom data placeholders", + "description": "" + }, + "customDataPH_Import": { + "message": "Import new data placeholders", + "description": "" } } \ No newline at end of file diff --git a/_locales/eo/messages.json b/_locales/eo/messages.json index 4faf98cd..4624c571 100644 --- a/_locales/eo/messages.json +++ b/_locales/eo/messages.json @@ -20,10 +20,10 @@ "customPrompts_form_required_fields": { "message": "Postulataj kampoj" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "Konservi ĉion" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "Aldoni novan" }, "chatgpt_btn_retry": { diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index bf6098b8..eb2517e4 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -120,10 +120,10 @@ "customPrompts_unsaved_changes": { "message": "Il y a des modifications non enregistrées !" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "Tout enregistrer" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "Ajouter nouveau" }, "customPrompts_btnAddNewCommit": { diff --git a/_locales/hr/messages.json b/_locales/hr/messages.json index 1370fb72..4fae5f20 100644 --- a/_locales/hr/messages.json +++ b/_locales/hr/messages.json @@ -120,10 +120,10 @@ "customPrompts_unsaved_changes": { "message": "Ima nespremljenih promjena!" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "Spremi sve" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "Dodaj novo" }, "customPrompts_btnAddNewCommit": { diff --git a/_locales/it/messages.json b/_locales/it/messages.json index 03cc95ff..84386a6d 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -120,10 +120,10 @@ "customPrompts_unsaved_changes": { "message": "Ci sono modifiche non salvate!" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "Salva Tutto" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "Aggiungi Nuovo" }, "customPrompts_btnAddNewCommit": { diff --git a/_locales/pl/messages.json b/_locales/pl/messages.json index 19e300dd..6443d310 100644 --- a/_locales/pl/messages.json +++ b/_locales/pl/messages.json @@ -120,10 +120,10 @@ "customPrompts_unsaved_changes": { "message": "Istnieją niezapisane zmiany!" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "Zapisz wszystko" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "Dodaj nowe" }, "customPrompts_btnAddNewCommit": { diff --git a/_locales/pt-br/messages.json b/_locales/pt-br/messages.json index 8836ecb3..f6a94f1a 100644 --- a/_locales/pt-br/messages.json +++ b/_locales/pt-br/messages.json @@ -120,10 +120,10 @@ "customPrompts_unsaved_changes": { "message": "Existem alterações não salvas!" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "Salvar Tudo" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "Adicionar Novo" }, "customPrompts_btnAddNewCommit": { diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json index 4d2bc835..6ad482be 100644 --- a/_locales/ru/messages.json +++ b/_locales/ru/messages.json @@ -110,10 +110,10 @@ "customPrompts_btnDelete_confirmText": { "message": "Вы уверены, что хотите удалить этот элемент?" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "Сохранить все" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "Добавить новый" }, "customPrompts_btnAddNewCommit": { diff --git a/_locales/zh_Hans/messages.json b/_locales/zh_Hans/messages.json index e837a7a1..33fa33d0 100644 --- a/_locales/zh_Hans/messages.json +++ b/_locales/zh_Hans/messages.json @@ -38,13 +38,13 @@ "customPrompts_form_label_need_signature": { "message": "始终添加签名" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "新增" }, "chatgpt_win_job_completed": { "message": "完成了!" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "保存所有变动" }, "extensionDescription": { diff --git a/_locales/zh_Hant/messages.json b/_locales/zh_Hant/messages.json index 07197248..4741f617 100644 --- a/_locales/zh_Hant/messages.json +++ b/_locales/zh_Hant/messages.json @@ -113,10 +113,10 @@ "customPrompts_unsaved_changes": { "message": "有未儲存的變動!" }, - "customPrompts_btnSaveAll": { + "btnSaveAll_string": { "message": "儲存全部" }, - "customPrompts_btnNew": { + "btnNew_string": { "message": "新增" }, "customPrompts_btnAddNewCommit": { diff --git a/pages/customprompts/mzta-custom-prompts.html b/pages/customprompts/mzta-custom-prompts.html index eb607931..30049b14 100644 --- a/pages/customprompts/mzta-custom-prompts.html +++ b/pages/customprompts/mzta-custom-prompts.html @@ -19,9 +19,9 @@
- + - +