Skip to content

Build your personal knowledge base with Trilium Notes

i18n(client): two missing translations for dialogs

Elian Doran2024c7220936
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index bacd7dc953..53427faae6 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -1727,7 +1727,8 @@
"refresh-saved-search-results": "Refresh saved search results",
"create-child-note": "Create child note",
"unhoist": "Unhoist",
- "toggle-sidebar": "Toggle sidebar"
+ "toggle-sidebar": "Toggle sidebar",
+ "dropping-not-allowed": "Dropping notes into this location is not allowed."
},
"title_bar_buttons": {
"window-on-top": "Keep Window on Top"
@@ -1830,7 +1831,8 @@
"duplicate-launcher": "Duplicate launcher <kbd data-command=\"duplicateSubtree\">"
},
"editable-text": {
- "auto-detect-language": "Auto-detected"
+ "auto-detect-language": "Auto-detected",
+ "keeps-crashing": "Editing component keeps crashing. Please try restarting Trilium. If problem persists, consider creating a bug report."
},
"highlighting": {
"title": "Code Blocks",
diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts
index 49eb4dcac5..5d15fccd80 100644
--- a/apps/client/src/widgets/note_tree.ts
+++ b/apps/client/src/widgets/note_tree.ts
@@ -508,7 +508,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
(data.hitMode === "over" && node.data.noteType === "search") ||
(["after", "before"].includes(data.hitMode) && (node.data.noteId === hoistedNoteService.getHoistedNoteId() || node.getParent().data.noteType === "search"))
) {
- await dialogService.info("Dropping notes into this location is not allowed.");
+ await dialogService.info(t("note_tree.dropping-not-allowed"));
return;
}
diff --git a/apps/client/src/widgets/type_widgets/text/EditableText.tsx b/apps/client/src/widgets/type_widgets/text/EditableText.tsx
index 8289896715..5e3d06a769 100644
--- a/apps/client/src/widgets/type_widgets/text/EditableText.tsx
+++ b/apps/client/src/widgets/type_widgets/text/EditableText.tsx
@@ -17,6 +17,7 @@ import TouchBar, { TouchBarButton, TouchBarGroup, TouchBarSegmentedControl } fro
import { RefObject } from "preact";
import { buildSelectedBackgroundColor } from "../../../components/touch_bar";
import { deferred } from "@triliumnext/commons";
+import { t } from "../../../services/i18n";
/**
* The editor can operate into two distinct modes:
@@ -279,7 +280,7 @@ function onWatchdogStateChange(watchdog: EditorWatchdog) {
logError(`CKEditor crash logs: ${JSON.stringify(watchdog.crashes, null, 4)}`);
if (currentState === "crashedPermanently") {
- dialog.info(`Editing component keeps crashing. Please try restarting Trilium. If problem persists, consider creating a bug report.`);
+ dialog.info(t("editable-text.keeps-crashing"));
watchdog.editor?.enableReadOnlyMode("crashed-editor");
}
}