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
add translation for buttons: note actions
Nriverd21ca03e9ce7
diff --git a/src/public/app/widgets/buttons/note_actions.js b/src/public/app/widgets/buttons/note_actions.jsindex 6e2ebb0cc1..48b4895f55 100644--- a/src/public/app/widgets/buttons/note_actions.js+++ b/src/public/app/widgets/buttons/note_actions.js@@ -6,6 +6,7 @@ import server from "../../services/server.js";import toastService from "../../services/toast.js";import ws from "../../services/ws.js";import appContext from "../../components/app_context.js";+import { t } from "../../services/i18n.js";const TPL = `<div class="dropdown note-actions">@@ -30,22 +31,22 @@ const TPL = `aria-expanded="false" class="icon-action bx bx-dots-vertical-rounded"></button><div class="dropdown-menu dropdown-menu-right">- <a data-trigger-command="convertNoteIntoAttachment" class="dropdown-item">Convert into attachment</a>- <a data-trigger-command="renderActiveNote" class="dropdown-item render-note-button"><kbd data-command="renderActiveNote"></kbd> Re-render note</a>- <a data-trigger-command="findInText" class="dropdown-item find-in-text-button">Search in note <kbd data-command="findInText"></a>- <a data-trigger-command="showNoteSource" class="dropdown-item show-source-button"><kbd data-command="showNoteSource"></kbd> Note source</a>- <a data-trigger-command="showAttachments" class="dropdown-item"><kbd data-command="showAttachments"></kbd> Note attachments</a>+ <a data-trigger-command="convertNoteIntoAttachment" class="dropdown-item">${t('note_actions.convert_into_attachment')}</a>+ <a data-trigger-command="renderActiveNote" class="dropdown-item render-note-button"><kbd data-command="renderActiveNote"></kbd> ${t('note_actions.re_render_note')}</a>+ <a data-trigger-command="findInText" class="dropdown-item find-in-text-button">${t('note_actions.search_in_note')} <kbd data-command="findInText"></kbd></a>+ <a data-trigger-command="showNoteSource" class="dropdown-item show-source-button"><kbd data-command="showNoteSource"></kbd> ${t('note_actions.note_source')}</a>+ <a data-trigger-command="showAttachments" class="dropdown-item"><kbd data-command="showAttachments"></kbd> ${t('note_actions.note_attachments')}</a><a data-trigger-command="openNoteExternally" class="dropdown-item open-note-externally-button"- title="File will be open in an external application and watched for changes. You'll then be able to upload the modified version back to Trilium.">+ title="${t('note_actions.open_note_externally_title')}"><kbd data-command="openNoteExternally"></kbd>- Open note externally+ ${t('note_actions.open_note_externally')}</a>- <a data-trigger-command="openNoteCustom" class="dropdown-item open-note-custom-button"><kbd data-command="openNoteCustom"></kbd> Open note custom</a>- <a class="dropdown-item import-files-button">Import files</a>- <a class="dropdown-item export-note-button">Export note</a>- <a class="dropdown-item delete-note-button">Delete note</a>- <a data-trigger-command="printActiveNote" class="dropdown-item print-active-note-button"><kbd data-command="printActiveNote"></kbd> Print note</a>- <a data-trigger-command="forceSaveRevision" class="dropdown-item save-revision-button"><kbd data-command="forceSaveRevision"></kbd> Save revision</a>+ <a data-trigger-command="openNoteCustom" class="dropdown-item open-note-custom-button"><kbd data-command="openNoteCustom"></kbd> ${t('note_actions.open_note_custom')}</a>+ <a class="dropdown-item import-files-button">${t('note_actions.import_files')}</a>+ <a class="dropdown-item export-note-button">${t('note_actions.export_note')}</a>+ <a class="dropdown-item delete-note-button">${t('note_actions.delete_note')}</a>+ <a data-trigger-command="printActiveNote" class="dropdown-item print-active-note-button"><kbd data-command="printActiveNote"></kbd> ${t('note_actions.print_note')}</a>+ <a data-trigger-command="forceSaveRevision" class="dropdown-item save-revision-button"><kbd data-command="forceSaveRevision"></kbd> ${t('note_actions.save_revision')}</a></div></div>`;diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.jsonindex a9fbf03f13..05c0f21e44 100644--- a/src/public/translations/cn/translation.json+++ b/src/public/translations/cn/translation.json@@ -452,8 +452,8 @@"erase_notes_instruction": "要永久擦除笔记,您可以在删除后转到“选项”->“其他”,然后单击“立即擦除已删除的笔记”按钮。"},"delete_revisions": {- "delete_note_revisions": "删除笔记修订",- "all_past_note_revisions": "所有匹配笔记的过去修订都将被删除。笔记本身将完全保留。换句话说,笔记的历史将被删除。"+ "delete_note_revisions": "删除笔记历史",+ "all_past_note_revisions": "所有匹配笔记的过去历史都将被删除。笔记本身将完全保留。换句话说,笔记的历史将被删除。"},"move_note": {"move_note": "移动笔记",@@ -592,5 +592,20 @@"move_pane_button": {"move_left": "向左移动","move_right": "向右移动"+ },+ "note_actions": {+ "convert_into_attachment": "转换为附件",+ "re_render_note": "重新渲染笔记",+ "search_in_note": "在笔记中搜索",+ "note_source": "笔记源代码",+ "note_attachments": "笔记附件",+ "open_note_externally": "用外部程序打开笔记",+ "open_note_externally_title": "文件将在外部应用程序中打开,并监视其更改。然后您可以将修改后的版本上传回 Trilium。",+ "open_note_custom": "使用自定义程序打开笔记",+ "import_files": "导入文件",+ "export_note": "导出笔记",+ "delete_note": "删除笔记",+ "print_note": "打印笔记",+ "save_revision": "保存笔记历史"}}diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.jsonindex 9734995483..a31f7d901f 100644--- a/src/public/translations/en/translation.json+++ b/src/public/translations/en/translation.json@@ -593,5 +593,20 @@"move_pane_button": {"move_left": "Move left","move_right": "Move right"+ },+ "note_actions": {+ "convert_into_attachment": "Convert into attachment",+ "re_render_note": "Re-render note",+ "search_in_note": "Search in note",+ "note_source": "Note source",+ "note_attachments": "Note attachments",+ "open_note_externally": "Open note externally",+ "open_note_externally_title": "File will be open in an external application and watched for changes. You'll then be able to upload the modified version back to Trilium.",+ "open_note_custom": "Open note custom",+ "import_files": "Import files",+ "export_note": "Export note",+ "delete_note": "Delete note",+ "print_note": "Print note",+ "save_revision": "Save revision"}}