Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
i18n: Use variable interpolation for delete relation warning
Elian Doranc18c972a575f
diff --git a/src/public/app/widgets/dialogs/delete_notes.js b/src/public/app/widgets/dialogs/delete_notes.jsindex 487efc5dd3..d4b3454ac0 100644--- a/src/public/app/widgets/dialogs/delete_notes.js+++ b/src/public/app/widgets/dialogs/delete_notes.js@@ -126,11 +126,11 @@ export default class DeleteNotesDialog extends BasicWidget {for (const attr of response.brokenRelations) {this.$brokenRelationsList.append(- $("<li>")- .append(`${t('delete_notes.note')} `)- .append(await linkService.createLink(attr.value))- .append(` ${t('delete_notes.to_be_deleted', {attrName: attr.name})} `)- .append(await linkService.createLink(attr.noteId))+ $("<li>").html(t("delete_notes.deleted_relation_text", {+ note: (await linkService.createLink(attr.value)).html(),+ relation: `<code>${attr.name}</code>`,+ source: (await linkService.createLink(attr.noteId)).html()+ })));}}diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.jsonindex b7bc642143..7473d64b28 100644--- a/src/public/translations/cn/translation.json+++ b/src/public/translations/cn/translation.json@@ -78,8 +78,7 @@"broken_relations_to_be_deleted": "将删除以下关系并断开连接 ({{- relationCount}})","cancel": "取消","ok": "确定",- "note": "笔记",- "to_be_deleted": " (将被删除的笔记) 被以下关系 <code>{{attrName}}</code> 引用, 来自 "+ "deleted_relation_text": "笔记 {{- note}} (将被删除的笔记) 被以下关系 {{- relation}} 引用, 来自 {{- source}}。"},"export": {"export_note_title": "导出笔记",diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.jsonindex b5a4b58131..f0d69b7e0f 100644--- a/src/public/translations/en/translation.json+++ b/src/public/translations/en/translation.json@@ -70,7 +70,7 @@},"delete_notes": {"delete_notes_preview": "Delete notes preview",- "delete_all_clones_description": "delete also all clones (can be undone in recent changes)",+ "delete_all_clones_description": "Delete also all clones (can be undone in recent changes)","erase_notes_description": "Normal (soft) deletion only marks the notes as deleted and they can be undeleted (in recent changes dialog) within a period of time. Checking this option will erase the notes immediately and it won't be possible to undelete the notes.","erase_notes_warning": "Erase notes permanently (can't be undone), including all clones. This will force application reload.","notes_to_be_deleted": "Following notes will be deleted ({{- noteCount}})",@@ -78,8 +78,7 @@"broken_relations_to_be_deleted": "Following relations will be broken and deleted ({{- relationCount}})","cancel": "Cancel","ok": "OK",- "note": "Note",- "to_be_deleted": " (to be deleted) is referenced by relation <code>{{attrName}}</code> originating from "+ "deleted_relation_text": "Note {{- note}} (to be deleted) is referenced by relation {{- relation}} originating from {{- source}}."},"export": {"export_note_title": "Export note",diff --git a/src/public/translations/es/translation.json b/src/public/translations/es/translation.jsonindex 9f13827666..5260f7f1c8 100644--- a/src/public/translations/es/translation.json+++ b/src/public/translations/es/translation.json@@ -70,7 +70,7 @@},"delete_notes": {"delete_notes_preview": "Eliminar vista previa de notas",- "delete_all_clones_description": "eliminar también todos los clones (se puede deshacer en cambios recientes)",+ "delete_all_clones_description": "Eliminar también todos los clones (se puede deshacer en cambios recientes)","erase_notes_description": "La eliminación normal (suave) solo marca las notas como eliminadas y se pueden recuperar (en el cuadro de diálogo de cambios recientes) dentro de un periodo de tiempo. Al marcar esta opción se borrarán las notas inmediatamente y no será posible recuperarlas.","erase_notes_warning": "Eliminar notas permanentemente (no se puede deshacer), incluidos todos los clones. Esto forzará la recarga de la aplicación.","notes_to_be_deleted": "Las siguientes notas serán eliminadas ({{- noteCount}})",@@ -78,8 +78,7 @@"broken_relations_to_be_deleted": "Las siguientes relaciones se romperán y serán eliminadas ({{- relationCount}})","cancel": "Cancelar","ok": "Aceptar",- "note": "Nota",- "to_be_deleted": " (para ser eliminada) está referenciado por la relación <code>{{attrName}}</code> que se origina en "+ "deleted_relation_text": "Nota {{- note}} (para ser eliminada) está referenciado por la relación {{- relation}} que se origina en {{- source}}."},"export": {"export_note_title": "Exportar nota",diff --git a/src/public/translations/fr/translation.json b/src/public/translations/fr/translation.jsonindex 88dd4aa093..cce0458ed0 100644--- a/src/public/translations/fr/translation.json+++ b/src/public/translations/fr/translation.json@@ -70,7 +70,7 @@},"delete_notes": {"delete_notes_preview": "Supprimer l'aperçu des notes",- "delete_all_clones_description": "supprime également tous les clones (peut être annulé depuis les Modifications récentes)",+ "delete_all_clones_description": "Supprime également tous les clones (peut être annulé depuis les Modifications récentes)","erase_notes_description": "La suppression normale (douce) marque uniquement les notes comme supprimées et elles peuvent être restaurées (dans la boîte de dialogue des Modifications récentes) dans un délai donné. Cocher cette option effacera les notes immédiatement et il ne sera pas possible de les restaurer.","erase_notes_warning": "Efface les notes de manière permanente (ne peut pas être annulée), y compris tous les clones. Cela forcera le rechargement de l’application.","notes_to_be_deleted": "Les notes suivantes seront supprimées ({{- noteCount}})",@@ -78,8 +78,7 @@"broken_relations_to_be_deleted": "Les relations suivantes seront rompues et supprimées ({{- relationCount}})","cancel": "Annuler","ok": "OK",- "note": "Note",- "to_be_deleted": " (à supprimer) est référencé par la relation <code>{{attrName}}</code> provenant de "+ "deleted_relation_text": "Note {{- note}} (à supprimer) est référencé par la relation {{- relation}} provenant de {{- source}}."},"export": {"export_note_title": "Exporter la note",diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.jsonindex 2c1a607e45..54c45c9ea5 100644--- a/src/public/translations/ro/translation.json+++ b/src/public/translations/ro/translation.json@@ -421,10 +421,9 @@"erase_notes_description": "Ștergerea obișnuită doar marchează notițele ca fiind șterse și pot fi recuperate (în ecranul Schimbări recente) pentru o perioadă de timp. Dacă se bifează această opțiune, notițele vor fi șterse imediat fără posibilitatea de a le recupera.","erase_notes_warning": "Șterge notițele permanent (nu se mai pot recupera), incluzând toate clonele. Va forța reîncărcarea aplicației.","no_note_to_delete": "Nicio notiță nu va fi ștearsă (doar clonele).",- "note": "Notiță","notes_to_be_deleted": "Următoarele notițe vor fi șterse ({{- noteCount}})","ok": "OK",- "to_be_deleted": " (pentru ștergere) este referențiat(ă) de relația <code>{{attrName}}</code> originând de la "+ "deleted_relation_text": "Notița {{- note}} ce va fi ștearsă este referențiată de relația {{- relation}}, originând din {{- source}}."},"delete_relation": {"allowed_characters": "Se permit caractere alfanumerice, underline și două puncte.",