Skip to content

Build your personal knowledge base with Trilium Notes

feat(delete): improve translations

Elian Doranb7231e3464ab
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index e31bfea626..6931954e65 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -88,10 +88,11 @@
"also_delete_note": "Also delete the note"
},
"delete_notes": {
- "delete_notes_preview": "Delete notes preview",
+ "title": "Delete notes",
"close": "Close",
"clones_label": "Clones",
- "delete_clones_description": "Also delete {{count}} other clone(s). Can be undone in recent changes.",
+ "delete_clones_description_one": "Also delete {{count}} other clone. Can be undone in recent changes.",
+ "delete_clones_description_other": "Also delete {{count}} other clones. Can be undone in recent changes.",
"delete_all_clones_description": "Delete also all clones (can be undone in recent changes)",
"erase_notes_label": "Erase permanently",
"erase_notes_description": "Erase notes immediately instead of soft deletion. This cannot be undone and will force application reload.",
@@ -103,8 +104,7 @@
"table_relation": "Relation",
"table_points_to": "Points to (deleted)",
"cancel": "Cancel",
- "ok": "OK",
- "no_clones_message": "The selected notes have no clones."
+ "delete": "Delete"
},
"export": {
"export_note_title": "Export note",
diff --git a/apps/client/src/widgets/dialogs/delete_notes.tsx b/apps/client/src/widgets/dialogs/delete_notes.tsx
index a6aadc40b7..89f6b61000 100644
--- a/apps/client/src/widgets/dialogs/delete_notes.tsx
+++ b/apps/client/src/widgets/dialogs/delete_notes.tsx
@@ -99,7 +99,7 @@ export default function DeleteNotesDialog() {
className="delete-notes-dialog"
size="xl"
scrollable
- title={t("delete_notes.delete_notes_preview")}
+ title={t("delete_notes.title")}
onShown={() => okButtonRef.current?.focus()}
onHidden={() => {
opts.callback?.({ proceed: false });
@@ -108,7 +108,7 @@ export default function DeleteNotesDialog() {
footer={<>
<Button text={t("delete_notes.cancel")}
onClick={() => setShown(false)} />
- <Button text={t("delete_notes.ok")} kind="primary"
+ <Button text={t("delete_notes.delete")} kind="primary"
buttonRef={okButtonRef}
onClick={() => {
opts.callback?.({ proceed: true, deleteAllClones, eraseNotes });