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
chore(print): mention exporting to PDF for note action
Elian Doran504c643cb46b
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex cf997391e7..28bdc66e1c 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -1,5 +1,5 @@{- "about": {+ "about": {"version_label": "Version:","version": "{{appVersion}} (database: {{dbVersion}}, sync protocol: {{syncVersion}})","build_info": "Build: {{buildDate}}, revision: <buildRevision />",@@ -755,7 +755,8 @@"import_files": "Import files","export_note": "Export note","delete_note": "Delete note",- "print_note": "Print note",+ "print_note": "Print note...",+ "print_or_export_to_pdf": "Print/export to PDF...","view_revisions": "Note revisions...","save_revision": "Save revision","save_named_revision": "Save named revision...",diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsxindex 94548d3194..dec3d9e67c 100644--- a/apps/client/src/widgets/ribbon/NoteActions.tsx+++ b/apps/client/src/widgets/ribbon/NoteActions.tsx@@ -14,7 +14,7 @@ import { t } from "../../services/i18n";import protected_session from "../../services/protected_session";import server from "../../services/server";import toast from "../../services/toast";-import { isElectron as getIsElectron, isMac as getIsMac } from "../../services/utils";+import { isDesktop,isElectron as getIsElectron, isMac as getIsMac } from "../../services/utils";import ws from "../../services/ws";import ClosePaneButton from "../buttons/close_pane_button";import CreatePaneButton from "../buttons/create_pane_button";@@ -149,7 +149,9 @@ export function NoteContextMenu({ note, noteContext, itemsAtStart, itemsNearNotedefaultType: "single"})} />{isExportableToImage && isNormalViewMode && isContentAvailable && <ExportAsImage ntxId={noteContext.ntxId} parentComponent={parentComponent} />}- <CommandItem command="printActiveNote" icon="bx bx-printer" disabled={!isPrintable} text={t("note_actions.print_note")} />+ <CommandItem command="printActiveNote" icon="bx bx-printer" disabled={!isPrintable}+ text={isElectron ? t("note_actions.print_or_export_to_pdf") : t("note_actions.print_note")}+ /><FormDropdownDivider />