Refactor localization keys for prompts to use a consistent naming convention and update related HTML references

This commit is contained in:
Mic 2025-06-15 23:12:00 +02:00
parent 528eb4c76c
commit 509b8de8e0
13 changed files with 38 additions and 26 deletions

View file

@ -80,13 +80,13 @@
"customPrompts_form_label_enabled": { "customPrompts_form_label_enabled": {
"message": "Povoleno" "message": "Povoleno"
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "Uložit vše" "message": "Uložit vše"
}, },
"customPrompts_do_reply": { "customPrompts_do_reply": {
"message": "Odpovědět" "message": "Odpovědět"
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "Přidat nový" "message": "Přidat nový"
}, },
"customPrompts_close_button": { "customPrompts_close_button": {

View file

@ -120,10 +120,10 @@
"customPrompts_unsaved_changes": { "customPrompts_unsaved_changes": {
"message": "Es gibt ungespeicherte Änderungen!" "message": "Es gibt ungespeicherte Änderungen!"
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "Alle speichern" "message": "Alle speichern"
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "Neu hinzufügen" "message": "Neu hinzufügen"
}, },
"customPrompts_btnAddNewCommit": { "customPrompts_btnAddNewCommit": {

View file

@ -167,11 +167,11 @@
"message": "There are unsaved changes!", "message": "There are unsaved changes!",
"description": "" "description": ""
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "Save All", "message": "Save All",
"description": "" "description": ""
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "Add New", "message": "Add New",
"description": "" "description": ""
}, },
@ -1563,5 +1563,17 @@
"customDataPH_manageDataPH": { "customDataPH_manageDataPH": {
"message": "Manage Data Placeholders", "message": "Manage Data Placeholders",
"description": "" "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": ""
} }
} }

View file

@ -20,10 +20,10 @@
"customPrompts_form_required_fields": { "customPrompts_form_required_fields": {
"message": "Postulataj kampoj" "message": "Postulataj kampoj"
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "Konservi ĉion" "message": "Konservi ĉion"
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "Aldoni novan" "message": "Aldoni novan"
}, },
"chatgpt_btn_retry": { "chatgpt_btn_retry": {

View file

@ -120,10 +120,10 @@
"customPrompts_unsaved_changes": { "customPrompts_unsaved_changes": {
"message": "Il y a des modifications non enregistrées !" "message": "Il y a des modifications non enregistrées !"
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "Tout enregistrer" "message": "Tout enregistrer"
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "Ajouter nouveau" "message": "Ajouter nouveau"
}, },
"customPrompts_btnAddNewCommit": { "customPrompts_btnAddNewCommit": {

View file

@ -120,10 +120,10 @@
"customPrompts_unsaved_changes": { "customPrompts_unsaved_changes": {
"message": "Ima nespremljenih promjena!" "message": "Ima nespremljenih promjena!"
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "Spremi sve" "message": "Spremi sve"
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "Dodaj novo" "message": "Dodaj novo"
}, },
"customPrompts_btnAddNewCommit": { "customPrompts_btnAddNewCommit": {

View file

@ -120,10 +120,10 @@
"customPrompts_unsaved_changes": { "customPrompts_unsaved_changes": {
"message": "Ci sono modifiche non salvate!" "message": "Ci sono modifiche non salvate!"
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "Salva Tutto" "message": "Salva Tutto"
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "Aggiungi Nuovo" "message": "Aggiungi Nuovo"
}, },
"customPrompts_btnAddNewCommit": { "customPrompts_btnAddNewCommit": {

View file

@ -120,10 +120,10 @@
"customPrompts_unsaved_changes": { "customPrompts_unsaved_changes": {
"message": "Istnieją niezapisane zmiany!" "message": "Istnieją niezapisane zmiany!"
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "Zapisz wszystko" "message": "Zapisz wszystko"
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "Dodaj nowe" "message": "Dodaj nowe"
}, },
"customPrompts_btnAddNewCommit": { "customPrompts_btnAddNewCommit": {

View file

@ -120,10 +120,10 @@
"customPrompts_unsaved_changes": { "customPrompts_unsaved_changes": {
"message": "Existem alterações não salvas!" "message": "Existem alterações não salvas!"
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "Salvar Tudo" "message": "Salvar Tudo"
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "Adicionar Novo" "message": "Adicionar Novo"
}, },
"customPrompts_btnAddNewCommit": { "customPrompts_btnAddNewCommit": {

View file

@ -110,10 +110,10 @@
"customPrompts_btnDelete_confirmText": { "customPrompts_btnDelete_confirmText": {
"message": "Вы уверены, что хотите удалить этот элемент?" "message": "Вы уверены, что хотите удалить этот элемент?"
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "Сохранить все" "message": "Сохранить все"
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "Добавить новый" "message": "Добавить новый"
}, },
"customPrompts_btnAddNewCommit": { "customPrompts_btnAddNewCommit": {

View file

@ -38,13 +38,13 @@
"customPrompts_form_label_need_signature": { "customPrompts_form_label_need_signature": {
"message": "始终添加签名" "message": "始终添加签名"
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "新增" "message": "新增"
}, },
"chatgpt_win_job_completed": { "chatgpt_win_job_completed": {
"message": "完成了!" "message": "完成了!"
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "保存所有变动" "message": "保存所有变动"
}, },
"extensionDescription": { "extensionDescription": {

View file

@ -113,10 +113,10 @@
"customPrompts_unsaved_changes": { "customPrompts_unsaved_changes": {
"message": "有未儲存的變動!" "message": "有未儲存的變動!"
}, },
"customPrompts_btnSaveAll": { "btnSaveAll_string": {
"message": "儲存全部" "message": "儲存全部"
}, },
"customPrompts_btnNew": { "btnNew_string": {
"message": "新增" "message": "新增"
}, },
"customPrompts_btnAddNewCommit": { "customPrompts_btnAddNewCommit": {

View file

@ -19,9 +19,9 @@
<button id="btnImport">__MSG_customPrompts_Import__</button> <button id="btnImport">__MSG_customPrompts_Import__</button>
</div> </div>
<div id="command_palette"> <div id="command_palette">
<button id="btnSaveAll" disabled>__MSG_customPrompts_btnSaveAll__</button> <button id="btnSaveAll" disabled>__MSG_btnSaveAll_string__</button>
<span id="msgDisplay"></span> <span id="msgDisplay"></span>
<button id="btnNew">__MSG_customPrompts_btnNew__</button> <button id="btnNew">__MSG_btnNew_string__</button>
</div> </div>
<div id="formNew"> <div id="formNew">
<table class="width_all"> <table class="width_all">