diff --git a/README.md b/README.md index 5242f992..2ba2c012 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,6 @@ Utilizing Qt, VNote could run on **Linux**, **Windows**, and **macOS** (due to t - [Github issues](https://github.com/tamlok/vnote/issues); - Email: tamlokveer at gmail.com; - QQ group: 487756074; -![QQ group](screenshots/qq_group.png) # Highlights - Supports inserting images directly from clipboard; diff --git a/README_zh.md b/README_zh.md index 33e46e56..77d017b2 100644 --- a/README_zh.md +++ b/README_zh.md @@ -43,8 +43,7 @@ VNote不是一个简单的Markdown编辑器。通过提供笔记管理功能,V # 支持 - [Github issues](https://github.com/tamlok/vnote/issues); - 邮箱: tamlokveer at gmail.com; -- QQ群: 487756074 (VNote使用和开发); -![QQ群](screenshots/qq_group.png) +- QQ群: 487756074; # 亮点 - 支持直接从剪切板插入图片; diff --git a/changes.md b/changes.md index 2adb60fc..e2f94e3b 100644 --- a/changes.md +++ b/changes.md @@ -1,4 +1,16 @@ # Changes History +## v1.10 +- Migrate to Qt 5.9.1; +- Support Compact mode in main window; +- Update icons; +- Support custom startup pages; +- Remove obsolete title marker when inserting new one; +- Support Magic Words; +- Vim mode + - Share registers among all tabs; +- Add "Code Block", "Insert Link", and "Insert Image" tool bar buttons; + + ## v1.9 - Support attachments of notes. - Add recycle bin to notebook to hold deleted files. diff --git a/src/resources/docs/shortcuts_zh.md b/src/resources/docs/shortcuts_zh.md index adb72f1f..06862f02 100644 --- a/src/resources/docs/shortcuts_zh.md +++ b/src/resources/docs/shortcuts_zh.md @@ -206,7 +206,7 @@ RemoveSplit=R - `Q` 放弃当前更改并退出编辑模式。 - `V` -竖直分割当前窗口。 +垂直分割当前窗口。 - `R` 移除当前分割窗口。 - `H` diff --git a/src/translations/vnote_zh_CN.qm b/src/translations/vnote_zh_CN.qm index 100bc87c..b679ff51 100644 Binary files a/src/translations/vnote_zh_CN.qm and b/src/translations/vnote_zh_CN.qm differ diff --git a/src/translations/vnote_zh_CN.ts b/src/translations/vnote_zh_CN.ts index 899b42ea..026311f4 100644 --- a/src/translations/vnote_zh_CN.ts +++ b/src/translations/vnote_zh_CN.ts @@ -1,188 +1,204 @@ + + QObject + + + All magic words: + 所有幻词: + + VAttachmentList - + Add 添加 - + Clear 清空 - - - - - - + + + + + + Warning 警告 - + Are you sure to clear attachments of note <span style="%1">%2</span>? 确认删除笔记 <span style="%1">%2</span> 的所有附件? - + <span style="%1">WARNING</span>: VNote will delete all the files in directory <span style="%2">%3</span>.Deleted files could be found in the recycle bin of this note.<br>The operation is IRREVERSIBLE! <span style="%1">警告</span>:VNote会删除位于目录 <span style="%2">%3</span> 中的所有文件。被删除的文件可以在该笔记的回收站中找回。<br>该操作是不可逆的! - + Fail to clear attachments of note <span style="%1">%2</span>. 清空笔记 <span style="%1">%2</span> 的附件失败。 - - - + + + Please check the attachments folder and maintain the configuration file manually. 请检查附件文件夹并手动维护配置文件。 - + Open Folder 打开所在文件夹 - + &Open 打开 (&O) - + Open current attachment file 打开当前附件文件 - + &Delete 删除 (&D) - + Delete selected attachments 删除选定附件 - + &Sort 排序 (&S) - + Sort attachments manually 对附件进行手动排序 - + %1 %2 %1 %2 - + Files 文件 - + File 文件 - + Select Files As Attachments 选择文件作为附件 - + Fail to add attachment %1 for note <span style="%2">%3</span>. 为笔记 <span style="%2">%3</span> 添加附件 %1 失败。 - + %1 %2 added as attachments %1个%2添加为附件 - + files 文件 - + file 文件 - + Are you sure to delete these attachments of note <span style="%1">%2</span>? 确认删除笔记 <span style="%1">%2</span> 的这些附件? - + Deleted files could be found in the recycle bin of this note.<br>Click "Cancel" to leave them untouched. 被删除的文件可以在该笔记的回收站中找回。<br>点击“取消”以终止操作。 - - + + Confirm Deleting Attachments 确认删除附件 - - + + Fail to delete attachments of note <span style="%1">%2</span>. 删除笔记 <span style="%1">%2</span> 的附件失败。 - + Sort Attachments 排序附件 - + Sort attachments of note <span style="%1">%2</span> in the configuration file. 对笔记 <span style="%1">%2</span> 的附件在配置文件中进行排序。 - + Name 名字 - + Fail to sort attachments of note <span style="%1">%2</span>. 对笔记 <span style="%1">%2</span> 的附件的排序失败。 - + Rename Attachment 重命名附件 - + Fail to rename attachment <span style="%1">%2</span>. 重命名附件 <span style="%1">%2</span> 失败。 - + VNote detects that these attachments of note <span style="%1">%2</span> are missing in disk. Would you like to remove them from the note? VNote无法在磁盘中找到笔记 <span style="%1">%2</span> 的这些附件。是否需要将这些附件从笔记中移除? - + Click "Cancel" to leave them untouched. 点击“取消”以终止操作。 + + VCaptain + + + NavigationMode + 展览模式 + + VConfirmDeletionDialog @@ -227,19 +243,28 @@ VDirInfoDialog - + Folder &name: 文件夹名 (&N): - + Created time: 创建时间: - + + <span style="%1">WARNING</span>: Name (case-insensitive) <span style="%2">%3</span> already exists. Please choose another name. + <span style="%1">警告</span>:已存在该名字(不区分大小写) <span style="%2">%3</span>。请选择另一个名字。 + + + + <span style="%1">WARNING</span>: Name <span style="%2">%3</span> contains illegal characters (after magic word evaluation). + <span style="%1">警告</span>:名字 <span style="%2">%3</span> 包含非法字符(解析幻词之后)。 + + <span style="%1">WARNING</span>: Name (case-insensitive) already exists. Please choose another name. - <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 + <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 @@ -620,190 +645,298 @@ VEdit - + + Insert Link + 插入链接 + + + Found no match 没有找到匹配项 - + Found %1 %2 找到 %1 %2 - + matches 处匹配 - + match 处匹配 - + Replace %1 %2 替换了 %1 %2 - + occurences 处匹配 - + occurence 处匹配 - + &Save Changes And Read 保存更改并阅读 (&S) - + Save changes and exit edit mode 保存对当前笔记的更改并退出编辑模式 - + &Discard Changes And Read 放弃更改并阅读 (&D) - + Discard changes and exit edit mode 放弃对当前笔记的更改并退出编辑模式 - + &Edit 编辑 (&E) - + Edit current note 编辑当前笔记 + + VEditArea + + + ActivateTab1 + 激活标签页1 + + + + ActivateTab2 + 激活标签页2 + + + + ActivateTab3 + 激活标签页3 + + + + ActivateTab4 + 激活标签页4 + + + + ActivateTab5 + 激活标签页5 + + + + ActivateTab6 + 激活标签页6 + + + + ActivateTab7 + 激活标签页7 + + + + ActivateTab8 + 激活标签页8 + + + + ActivateTab9 + 激活标签页9 + + + + AlternateTab + 轮换标签页 + + + + OpenedFileList + 已打开笔记列表 + + + + ActivateSplitLeft + 激活左分割 + + + + ActivateSplitRight + 激活右分割 + + + + MoveTabSplitLeft + 左移标签页一个分割窗口 + + + + MoveTabSplitRight + 右移标签页一个分割窗口 + + + + ActivateNextTab + 激活下一个标签页 + + + + ActivatePreviousTab + 激活上一个标签页 + + + + VerticalSplit + 垂直分割 + + + + RemoveSplit + 移除分割 + + + + MagicWord + 幻词 + + VEditWindow - + Locate To Folder 定位所在文件夹 - + Locate the folder of current note 定位到当前笔记所在的文件夹 - + Move One Split Left 左移一个分割窗口 - + Move current tab to the split on the left 将当前标签页往左移动一个分割窗口 - + Move One Split Right 右移一个分割窗口 - + Move current tab to the split on the right 将当前标签页往右移动一个分割窗口 - + Close Tab 关闭标签页 - + Close current note tab 关闭当前标签页 - + Close Other Tabs 关闭其他标签页 - + Close all other note tabs 关闭其他所有标签页 - + Close Tabs To The Right 关闭右侧标签页 - + Close all the note tabs to the right of current tab 关闭当前标签页右侧所有标签页 - + Note Info 笔记信息 - + View and edit information of the note 查看并编辑笔记的信息 - + Open Note Location 打开笔记所在位置 - + Open the folder containing this note in operating system 在操作系统中打开该笔记所在目录 - + &Recycle Bin 回收站 (&R) - + Open the recycle bin of this note 打开该笔记的回收站 - + Opened Notes List 已打开笔记列表 - + Split 分割 - + Split current window vertically - 竖直分割当前窗口 + 垂直分割当前窗口 - + Remove split 移除分割 - + Remove current split window 移除当前分割窗口 - + Menu 菜单 @@ -884,47 +1017,56 @@ VFileInfoDialog - + Will be assigned when adding attachments 添加附件时分配 - + The folder to hold attachments of this note 保存该笔记的附件的文件夹 - + Last modified time within VNote 在VNote中的最近修改时间 - + Note &name: 笔记名 (&N): - + Attachment folder: 附件文件夹: - + Created time: 创建时间: - + Modified time: 修改时间: - - <span style="%1">WARNING</span>: Name (case-insensitive) already exists. Please choose another name. - <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 + + <span style="%1">WARNING</span>: Name (case-insensitive) <span style="%2">%3</span> already exists. Please choose another name. + <span style="%1">警告</span>:已存在该名字(不区分大小写) <span style="%2">%3</span>。请选择另一个名字。 - + + <span style="%1">WARNING</span>: Name <span style="%2">%3</span> contains illegal characters (after magic word evaluation). + <span style="%1">警告</span>:名字 <span style="%2">%3</span> 包含非法字符(解析幻词之后)。 + + + <span style="%1">WARNING</span>: Name (case-insensitive) already exists. Please choose another name. + <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 + + + <span style="%1">WARNING</span>: Changing type of the note is not supported. Please use the same suffix as the old one. <span style="%1">警告</span>:不支持修改笔记的类型。请使用原来的后缀名。 @@ -992,121 +1134,121 @@ 对该文件夹中的笔记进行手动排序 - + Are you sure to delete these notes? 确认删除这些笔记? - + <span style="%1">WARNING</span>: VNote will delete notes as well as all their images and attachments managed by VNote. Deleted files could be found in the recycle bin of these notes.<br>Click "Cancel" to leave them untouched.<br>The operation is IRREVERSIBLE! <span style="%1">警告</span>:VNote会删除这些笔记以及这些笔记所有由VNote管理的图片和附件。被删除的文件可以在这些笔记的回收站中找回。<br>点击“取消”终止操作。<br>该操作是不可逆的! - + Confirm Deleting Notes 确认删除笔记 - + Fail to delete note <span style="%1">%2</span>.<br>Please check <span style="%1">%3</span> and manually delete it. 删除笔记 <span style="%1">%2</span> 失败。<br>请检查 <span style="%1">%3</span> 并手动删除。 - + %1 %2 deleted 删除了%1个%2 - - - + + + notes 笔记 - - - + + + note 笔记 - + Skip importing non-exist file %1. 跳过导入不存在的文件 %1。 - + Fail to copy file %1 as %2. 复制文件 %1 为 %2 失败。 - + Fail to add the note %1 to target folder's configuration. 将该笔记 %1 添加到目标文件夹的配置失败。 - + %1 %2 %3 %3了%1个%2 - + cut 剪切 - + copied 复制 - + Fail to paste note <span style="%1">%2</span>. 粘贴笔记 <span style="%1">%2</span> 失败。 - + VNote could not find this note in any notebook. VNote无法在任何笔记本中找到该笔记。 - + VNote does not allow copy and paste notes with internal images in the same folder. VNote不允许在同一个文件夹中复制并粘贴带有内部图片的笔记。 - + %1 %2 pasted 粘贴了%1个%2 - + Sort Notes 排序笔记 - + Sort notes in folder <span style="%1">%2</span> in the configuration file. 对文件夹 <span style="%1">%2</span> 的笔记在配置文件中进行排序。 - + Name 名字 - + Created Time 创建时间 - + Modified Time 修改时间 - + Fail to sort notes in folder <span style="%1">%2</span>. 对文件夹 <span style="%1">%2</spacn> 的笔记排序失败。 @@ -1146,13 +1288,13 @@ 名字后缀为“%1”的笔记是Markdown笔记。 - + Fail to create note <span style="%1">%2</span>. 新建笔记 <span style="%1">%2</span> 失败。 - - + + Fail to copy note <span style="%1">%2</span>. 复制笔记 <span style="%1">%2</span> 失败。 @@ -1197,18 +1339,18 @@ 在操作系统中打开该笔记所在目录 - + Create Note 新建笔记 - - - - - - + + + + + + Warning 警告 @@ -1304,17 +1446,62 @@ 默认 - + Language: 语言: - + + Startup pages: + 启动页面: + + + + Restore tabs or open specific notes on startup + 在启动时恢复标签页或打开指定笔记 + + + + None + + + + + Continue where you left off + 继续上次退出时的页面 + + + + Open specific pages + 打开指定页面 + + + + Absolute path of the notes to open on startup (one note per line) + 需要在启动时打开的笔记的绝对路径(一行一个笔记) + + + + Browse + 浏览文件 + + + + Select files to add as startup pages + 选择文件添加为启动页面 + + + + Select Files As Startup Pages + 选择文件作为启动页面 + + + System tray 系统托盘 - + Minimized to the system tray after closing VNote (not supported in macOS) 关闭VNote后最小化到系统托盘(不支持macOS) @@ -1322,39 +1509,39 @@ VHtmlTab - + Information 注意 - + Note <span style="%1">%2</span> has been modified. 笔记 <span style="%1">%2</span> 已经被更改。 - + Do you want to save your changes? 是否保存更改? - - + + Warning 警告 - - + + Fail to save note. 保存笔记失败。 - + File <span style="%1">%2</span> being written has been removed. 将要写入的文件 <span style="%1">%2</span> 已经被移除。 - + Fail to write to disk when saving a note. Please try it again. 保存笔记时,写入文件失败。请稍后再试。 @@ -1362,1041 +1549,1160 @@ VInsertImageDialog - + &From: 图片源 (&F): - + &Browse 浏览文件 (&B) - + &Image title: 图片标题 (&I): - + Select The Image To Be Inserted 选择要插入的图片 - + Images (*.png *.xpm *.jpg *.bmp *.gif) 图片 (*.png *.xpm *.jpg *.bmp *.gif) + + VInsertLinkDialog + + + Absolute or relative path of the link + 链接的绝对或相对路径 + + + + &Text: + 文本 (&T): + + + + &URL: + URL (&U): + + VMainWindow - + View 查看 - + &Single Panel 单列面板 (&S) - + Display only the notes list panel 仅显示笔记列表面板 - + &Two Panels 双列面板 (&T) - + Display both the folders and notes list panel 显示文件夹树和笔记列表面板 - + + &Compact Mode + 紧凑模式 (&C) + + + + Integrate the folders and notes list panel in one column + 将文件夹和笔记列表面板整合到一列 + + + Expand the edit area 扩展内容编辑区域 - + Edit Toolbar 编辑工具栏 - + + Heading Sequence + 标题序列 + + + + Enable heading sequence in current note in edit mode + 当前笔记在编辑模式中启用标题序列 + + + Bold (Ctrl+B) 粗体 (Ctrl+B) - + Insert bold text or change selected text to bold 插入粗体或将所选文本加粗 - + Italic (Ctrl+I) 斜体 (Ctrl+I) - + Insert italic text or change selected text to italic 插入斜体或将所选文本改为斜体 - + Strikethrough (Ctrl+D) 删除线 (Ctrl+D) - + Insert strikethrough text or change selected text to strikethroughed 插入删除线或在所选文本上添加删除线 - + Inline Code (Ctrl+O) 行内代码 (Ctrl+O) - + Insert inline-code text or change selected text to inline-coded 插入行内代码或将所选文本改为行内代码 - + + Code Block (Ctrl+M) + 代码块 (Ctrl+M) + + + + Insert fenced code block text or wrap selected text into a fenced code block + 插入代码块或将所选文本嵌入到一个代码块中 + + + + Insert Link (Ctrl+L) + 插入链接 (Ctrl+L) + + + + Insert a link + 插入一个链接 + + + + Insert Image + 插入图片 + + + + Insert an image from file or URL + 从文件或URL插入图片 + + + Toggle the edit toolbar 打开或关闭编辑工具栏 - + Note 笔记 - + New &Note 新建笔记 (&N) - + Note &Info 笔记信息 (&I) - + View and edit current note's information 查看并编辑当前笔记的信息 - + &Delete Note 删除笔记 (&D) - + Delete current note 删除当前笔记 - - + + &Edit 编辑 (&E) - + Edit current note 编辑当前笔记 - + Discard changes and exit edit mode 放弃对当前笔记的更改并退出编辑模式 - + Discard Changes And Read (Ctrl+E Q) 放弃更改并阅读 (Ctrl+E Q) - + Save Changes And Read (Ctrl+T) 保存更改并阅读 (Ctrl+T) - + Save changes and exit edit mode 保存对当前笔记的更改并退出编辑模式 - + Save 保存 - + &Help 帮助 (&H) - + View &Log 查看日志 (&L) - + View VNote's debug log (%1) 查看VNote的调试日志 (%1) - + &Markdown Guide Markdown指南 (&M) - + A quick guide of Markdown syntax Markdown语法快速指南 - + Check For &Updates 检查更新 (&U) - + Check for updates of VNote 检查VNote的可用更新 - + Star VNote on &Github 支持VNote &Github项目 - + Give a star to VNote on Github project 在Github上给一个星星VNote项目 - + &Feedback 反馈 (&F) - + Open an issue on Github 在Github上反馈意见 - + About &Qt 关于Qt (&Q) - + &Markdown Markdown (&M) - + + Open Configuration Folder + 打开配置文件夹 + + + + Open configuration folder of VNote + 打开VNote的配置文件夹 + + + &Converter 渲染引擎 (&C) - + Marked Marked - + Use Marked to convert Markdown to HTML (re-open current tabs to make it work) 使用Marked对Markdown进行HTML渲染(需要重新打开当前标签页) - + Hoedown Hoedown - + Use Hoedown to convert Markdown to HTML (re-open current tabs to make it work) 使用Hoedown对Markdown进行HTML渲染(需要重新打开当前标签页) - + Markdown-it Markdown-it - + Use Markdown-it to convert Markdown to HTML (re-open current tabs to make it work) 使用Markdown-it对Markdown进行HTML渲染(需要重新打开当前标签页) - + Showdown Showdown - + Use Showdown to convert Markdown to HTML (re-open current tabs to make it work) 使用Showdown对Markdown进行HTML渲染(需要重新打开当前标签页) - + Constrain The Width of Images 限制图片宽度 - + + AttachmentList + 附件列表 + + + + LocateCurrentFile + 定位当前笔记 + + + + ExpandMode + 扩展模式 + + + + OnePanelView + 单列面板模式 + + + + DiscardAndRead + 放弃更改并阅读 + + + + ToolsDock + 工具窗口 + + + + CloseNote + 关闭笔记 + + + + ShortcutsHelp + 快捷键帮助 + + + + FlushLogFile + 写入日志文件 + + + Constrain the width of images to the window in read mode (re-open current tabs to make it work) 阅读模式中根据窗口大小限制图片的宽度(需要重新打开当前标签页) - + Enable Image Caption 启用图片标题 - + Center the images and display the alt text as caption (re-open current tabs to make it work) 居中显示图片并将图片的替换文本显示为标题(需要重新打开当前标签页) - + &Mermaid Diagram Mermaid图表 (&M) - + Enable Mermaid for graph and diagram 启用Mermaid渲染图像图表 - + &Flowchart.js &Flowchart.js - + Enable Flowchart.js for flowchart diagram 启用Flowchart.js渲染流程图 - + Preview Images In Edit Mode 编辑模式预览图片 - + Constrain The Width Of Previewed Images 限制预览图片宽度 - + Constrain the width of previewed images to the edit window in edit mode 编辑模式中根据编辑窗口大小限制预览图片的宽度 - + &View 查看 (&V) - + &File 文件 (&F) - + &Open 打开 (&O) - + Open external file to edit 打开外部文件以编辑 - + Select External Files To Open 选择要打开的外部文件 - + Open the folder to add your custom CSS style files for Markdown rendering 打开样式文件夹以添加自定义Markdown渲染CSS样式文件 - + Set as the code block CSS style for Markdown rendering 使用该CSS样式对Markdown的代码块进行渲染 - + Code Block Style 代码块样式 - + Open the folder to add your custom CSS style files for Markdown code block rendering 打开样式文件夹以添加自定义Markdown代码块渲染CSS样式文件 - + CodeBlock 代码块 - + Display line number in code block in edit mode (for Markdown only) 编辑模式下只在代码块显示行号(仅支持Markdown) - + Show VNote 显示VNote - + Quit 退出VNote - + VNote VNote - + View and change settings for VNote 查看并更改VNote的配置 - + Note Toolbar 笔记工具栏 - + Attachments (drag files here to add attachments) 附件(拖动文件到此以添加附件) - + &Wiki 维基 (&W) - + View VNote's wiki on Github 查看VNote在Github上的维基 - + Display Line Number In Code Blocks 代码块显示行号 - + Enable line number in code blocks in read mode 阅读模式下启用代码块行号 - + Enable image preview in edit mode (re-open current tabs to make it work) 编辑模式预览图片(需要重新打开当前标签页) - Edit Configuration File - 编辑配置文件 + 编辑配置文件 - View and edit configuration file of VNote (vnote.ini) - 查看并编辑VNote的配置文件(vnote.ini) + 查看并编辑VNote的配置文件(vnote.ini) - - + + Custom Shortcuts 自定义快捷键 - + Custom some standard shortcuts 自定义部分标准快捷键 - + VNote supports customing some standard shorcuts by editing user's configuration file (vnote.ini). Please reference the shortcuts help documentation for more information. VNote支持通过修改用户配置文件(vnote.ini)来自定义部分标准快捷键。更多信息请参考快捷键帮助文档。 - + Click "OK" to custom shortcuts. 点击“确认”以自定义快捷键。 - Insert &Image - 插入图片 (&I) + 插入图片 (&I) - - + + Find/Replace 查找/替换 - + Open Find/Replace dialog to search in current note 打开查找/替换对话框以在当前笔记中查找 - + Find Next 查找下一个 - + Find next occurence 查找下一处出现 - + Find Previous 查找上一个 - + Find previous occurence 查找上一处出现 - + Replace 替换 - + Replace current occurence 替换当前出现 - + Replace && Find 替换并查找 - + Replace current occurence and find the next one 替换当前出现并查找下一个 - + Replace All 全部替换 - + Replace all occurences in current note 替换当前笔记中的所有出现 - + Highlight Searched Pattern 高亮查找模式 - + Highlight all occurences of searched pattern 高亮查找模式的所有出现 - + &Expand Tab 扩展Tab (&E) - + Expand entered Tab to spaces 将输入的Tab扩展为空格 - + Expand Tab to 2 spaces 扩展Tab为2个空格 - + Expand Tab to 4 spaces 扩展Tab为4个空格 - + Expand Tab to 8 spaces 扩展Tab为8个空格 - + Auto Indent 自动缩进 - + Indent automatically when inserting a new line 插入新行时自动缩进 - + Auto List 自动列表 - + Continue the list automatically when inserting a new line 插入新行时自动继续列表 - + Vim Mode Vim模式 - + Highlight Selected Words 高亮选定字词 - + Highlight all occurences of selected words 高亮选定字词的所有出现 - + Highlight Trailing Sapces 高亮行尾空白字符 - + Highlight all the spaces at the end of a line 高亮所有行尾空白字符 - + Select Files To Create Notes 选择文件以创建笔记 - + Warning 警告 - + Fail to create notes for all the files. 无法从所有文件中创建笔记。 - + %1 %2 created from external files 从外部文件夹中创建了%1个%2 - + notes 笔记 - + note 笔记 - + <span style="font-weight: bold;">v%1</span> - + Please visit <a href="https://github.com/tamlok/vnote.git">Github</a> for more information. 请访问<a href="https://github.com/tamlok/vnote.git">Github</a>获取更多信息。 - + Markdown-it Options Markdown-it选项 - + HTML HTML - + Enable HTML tags in source 启用文件中的HTML标签 - + Line Break 换行 - + Convert '\n' in paragraphs into line break 转换'\n'为换行 - + Linkify 自动链接 - + Convert URL-like text into links 转换URL模式的文本为链接 - + Use system's background color configuration for Markdown rendering 使用系统的背景色设置对Markdown进行渲染 - + Set as the background color for Markdown rendering 使用该背景色对Markdown进行渲染 - - - + + + &Add Style 添加样式 (&A) - + Line Number 行号 - + None - + Do not display line number in edit mode 编辑模式下不显示行号 - + Absolute 绝对行号 - + Display absolute line number in edit mode 编辑模式下显示绝对行号 - + Relative 相对行号 - + Display line number relative to current cursor line in edit mode 编辑模式下显示相对于当前光标所在行的行号 - + Editor &Style 编辑器样式 (&S) - + Open the folder to add your custom MDHL style files 打开样式文件夹以添加自定义MDHL样式文件 - + Close VNote 关闭VNote - + Do you want to minimize VNote to system tray instead of quitting it when closing VNote? 关闭VNote时是否仅将VNote最小化到系统托盘? - + You could change the option in Settings later. 稍后可以进入设置改变该选项。 - + Print Note 打印笔记 - + Set as the editor style 使用该样式设置编辑器 - + 2 Spaces 2个空格 - + Discard Changes And Read 放弃更改并阅读 - + Save changes to current note 保存对当前笔记的更改 - + &Shortcuts Help 快捷键帮助 (&S) - + View information about shortcut keys 查看快捷键帮助信息 - + &About VNote 关于VNote (&A) - + View information about VNote 查看VNote的信息 - + View information about Qt 查看Qt的信息 - + Math&Jax Math&Jax - + Enable MathJax for math support in Markdown 启用MathJax渲染数学公式 - + Highlight Code Blocks In Edit Mode 编辑模式高亮代码块 - + Enable syntax highlight within code blocks in edit mode 编辑模式中启用代码块语法高亮 - + &New Notes From Files 从文件新建笔记 (&N) - + Create notes from external files in current folder by copy 通过拷贝外部文件在当前文件夹中新建笔记 - + Export As &PDF 导出为&PDF - + Export current note as PDF file 将当前笔记导出为PDF文件 - + &Print 打印 (&P) - + Print current note 打印当前笔记 - + &Settings 设置 (&S) - Insert an image from file into current note - 从文件中插入图片到当前笔记 + 从文件中插入图片到当前笔记 - + 4 Spaces 4个空格 - + 8 Spaces 8个空格 - + Enable Vim mode for editing (re-open current tabs to make it work) 编辑时启用Vim模式(需要重新打开当前标签页) - + Smart Input Method In Vim Mode Vim模式智能输入法 - + Disable input method when leaving Insert mode in Vim mode Vim模式中,退出插入模式时禁用输入法 - + Highlight Cursor Line 高亮光标所在行 - + Highlight current cursor line 高亮当前光标所在行 - + Tab Stop Width Tab Stop宽度 - + Tools 工具 - + Outline 大纲 - + Toggle the tools dock widget 打开或关闭工具窗口 - + VNote is a Vim-inspired note-taking application for Markdown. VNote是一个受Vim启发而开发的专注于Markdown的笔记软件。 - + About VNote 关于VNote - + &Rendering Background 渲染背景 (&R) - - + + System 默认 - + Rendering &Style 渲染样式 (&S) - + Set as the CSS style for Markdown rendering 使用该CSS样式对Markdown进行渲染 - + Notebooks 笔记本 - + Folders 文件夹 - + Single Panel (Ctrl+E P) 单列面板 (Ctrl+E P) - + Two Panels (Ctrl+E P) 双列面板 (Ctrl+E P) - + Expand (Ctrl+E E) 扩展 (Ctrl+E E) - + New &Root Folder 新建根文件夹 (&R) - + Create a root folder in current notebook 在当前笔记本中新建根文件夹 - + Create a note in current folder 在当前文件夹中新建笔记 - + &Quit 退出 (&Q) - + Quit VNote 退出VNote - + &Background Color 背景颜色 (&B) - + Use system's background color configuration for editor 为编辑器使用系统的背景色设置 - + Set as the background color for editor 使用该背景色设置编辑器 @@ -2404,90 +2710,109 @@ VMarkdownTab - + Default mode to open a note 笔记默认打开模式 - + Read Mode 阅读模式 - + Edit Mode 编辑模式 - + Note open mode: 笔记打开模式: - Heading sequence - 标题序列 + 标题序列 - + Enable auto sequence for all headings (in the form like 1.2.3.4.) 自动为所有标题添加序列(类似于1.2.3.4.) - + + Disabled + 关闭 + + + + Enabled + 启用 + + + + Enabled for notes only + 仅对内部笔记启用 + + + Base level to start heading sequence 标题序列起始级别 - + 1 1 - + 2 2 - + 3 3 - + 4 4 - + 5 5 - + 6 6 - + Custom Web zoom factor 自定义页面缩放倍数 - + Set the zoom factor of the Web page when reading 设置阅读模式下页面的缩放倍数 - + Specify the screen column in fenced code block which will be highlighted 指定编辑模式下代码块中的高亮列 - + Color column: 高亮列: + + + Heading sequence: + 标题序列: + VMdEdit @@ -2566,149 +2891,311 @@ VMdTab - + Information 注意 - + Note <span style="%1">%2</span> has been modified. 笔记 <span style="%1">%2</span> 已经被更改。 - + Do you want to save your changes? 是否保存更改? - - + + Warning 警告 - - + + Fail to save note. 保存笔记失败。 - + File <span style="%1">%2</span> being written has been removed. 将要写入的文件 <span style="%1">%2</span> 已经被移除。 - + Fail to write to disk when saving a note. Please try it again. 保存笔记时,写入文件失败。请稍后再试。 + + VMetaWordManager + + + the day as number without a leading zero (`1` to `31`) + 没有前导零的日期数字(`1` 到 `31`) + + + + the day as number with a leading zero (`01` to `31`) + 带有前导零的日期数字(`01` 到 `31`) + + + + the abbreviated localized day name (e.g. `Mon` to `Sun`) + 缩写日期名字(如 `一` 到 `日`) + + + + the long localized day name (e.g. `Monday` to `Sunday`) + 完整日期名字(如 `星期一` 到 `星期日`) + + + + the month as number without a leading zero (`1` to `12`) + 没有前导零的月份数字(`1` 到 `12`) + + + + the month as number with a leading zero (`01` to `12`) + 带有前导零的月份数字(`01` 到 `12`) + + + + the abbreviated localized month name (e.g. `Jan` to `Dec`) + 缩写月份名字(如 `一` 到 `十二`) + + + + the year as two digit number (`00` to `99`) + 两位数的年份数字(`00` 到 `99`) + + + + the year as four digit number + 四位数的年份数字 + + + + the long localized month name (e.g. `January` to `December`) + 完整月份名字(如 `一月` 到 `十二月`) + + + + the hour without a leading zero (`0` to `23` or `1` to `12` if AM/PM display) + 没有前导零的小时(`0` 到 `23` 或者 `1` 到 `12`) + + + + the hour with a leading zero (`00` to `23` or `01` to `12` if AM/PM display) + 带有前导零的小时(`00` 到 `23` 或者 `01` 到 `12`) + + + + the hour without a leading zero (`0` to `23` even with AM/PM display) + 没有前导零的小时(`0` 到 `23`) + + + + the hour with a leading zero (`00` to `23` even with AM/PM display) + 带有前导零的小时(`0` 到 `23`) + + + + the minute without a leading zero (`0` to `59`) + 没有前导零的分钟(`0` 到 `59`) + + + + the minute with a leading zero (`00` to `59`) + 带有前导零的分钟(`0` 到 `59`) + + + + the second without a leading zero (`0` to `59`) + 没有前导零的秒(`0` 到 `59`) + + + + the second with a leading zero (`00` to `59`) + 带有前导零的秒(`00` 到 `59`) + + + + the milliseconds without leading zeroes (`0` to `999`) + 没有前导零的毫秒(`0` 到 `999`) + + + + the milliseconds with leading zeroes (`000` to `999`) + 带有前导零的毫秒(`000` 到 `999`) + + + + + use AM/PM display (`AM` or `PM`) + 显示AM或PM + + + + + use am/pm display (`am` or `pm`) + 显示am或pm + + + + the timezone (e.g. `CEST`) + 时区(如 `CEST`) + + + + a random number + 随机数 + + + + dynamic version of `random` + 随机数(动态) + + + + information about all defined magic words + 列出所有幻词的信息 + + VNewDirDialog - + Folder &name: 文件夹名 (&N): - + + <span style="%1">WARNING</span>: Name (case-insensitive) <span style="%2">%3</span> already exists. Please choose another name. + <span style="%1">警告</span>:已存在该名字(不区分大小写) <span style="%2">%3</span>。请选择另一个名字。 + + + + <span style="%1">WARNING</span>: Name <span style="%2">%3</span> contains illegal characters (after magic word evaluation). + <span style="%1">警告</span>:名字 <span style="%2">%3</span> 包含非法字符(解析幻词之后)。 + + <span style="%1">WARNING</span>: Name (case-insensitive) already exists. Please choose another name. - <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 + <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 VNewFileDialog - + Note &name: 笔记名 (&N): - + Insert note name as title (for Markdown only) 将笔记名字作为标题插入(仅支持Markdown) - + Insert note name into the new note as a title 将笔记名字作为标题插入到新建的笔记中 - + + <span style="%1">WARNING</span>: Name (case-insensitive) <span style="%2">%3</span> already exists. Please choose another name. + <span style="%1">警告</span>:已存在该名字(不区分大小写) <span style="%2">%3</span>。请选择另一个名字。 + + + + <span style="%1">WARNING</span>: Name <span style="%2">%3</span> contains illegal characters (after magic word evaluation). + <span style="%1">警告</span>:名字 <span style="%2">%3</span> 包含非法字符(解析幻词之后)。 + + <span style="%1">WARNING</span>: Name (case-insensitive) already exists. Please choose another name. - <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 + <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 VNewNotebookDialog - + Notebook &name: 笔记本名 (&N): - + Notebook &root folder: 笔记本根文件夹 (&R): - + &Image folder: 图片文件夹 (&I): - - + + Use global configuration (%1) 使用全局配置 (%1) - + Set the name of the folder to hold images of all the notes in this notebook (empty to use global configuration) 设置一个文件夹以保存该笔记本下所有笔记的图片(为空则使用全局配置) - + &Attachment folder: 附件文件夹 (&A): - + Set the name of the folder to hold attachments of all the notes in this notebook (empty to use global configuration, read-only once created) 设置一个文件夹以保存该笔记本下所有笔记的附件(为空则使用全局配置,创建后不可修改) - + <span style="%1">WARNING</span>: The folder chosen is NOT empty! It is highly recommended to use an EMPTY and EXCLUSIVE folder for a new notebook. <span style="%1">警告</span>:所选的文件夹不是空的!强烈建议为一个新的笔记本指定一个空的、独占的文件夹。 - + <span style="%1">INFO</span>: The folder chosen seems to be a root folder of a notebook created by VNote before. VNote will try to import it by reading the configuration file. <span style="%1">注意</span>:所选的文件夹可能是此前VNote创建的一个笔记本的根文件夹。VNote会尝试读取配置文件并导入该笔记本。 - + <span style="%1">WARNING</span>: The path seems to be illegal. Please choose another one. <span style="%1">警告</span>:根目录路径可能是非法的。请选择另一个路径。 - + <span style="%1">WARNING</span>: The folder chosen has already been a root folder of existing notebook <span style="%2">%3</span> in VNote. <span style="%1">警告</span>:所选的文件夹已经是当前VNote中一个笔记本 <span style="%2">%3</span> 的根文件夹。 - - <span style="%1">WARNING</span>: Name (case-insensitive) already exists. Please choose another name. - <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 + + <span style="%1">WARNING</span>: Name (case-insensitive) <span style="%2">%3</span> already exists. Please choose another name. + <span style="%1">警告</span>:已存在该名字(不区分大小写) <span style="%2">%3</span>。请选择另一个名字。 - + + <span style="%1">WARNING</span>: Name <span style="%2">%3</span> contains illegal characters (after magic word evaluation). + <span style="%1">警告</span>:名字 <span style="%2">%3</span> 包含非法字符(解析幻词之后)。 + + + <span style="%1">WARNING</span>: Name (case-insensitive) already exists. Please choose another name. + <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 + + + Select Root Folder Of The Notebook 选择笔记本根文件夹 - + &Browse 浏览文件 (&B) @@ -2731,57 +3218,57 @@ 删除笔记文件失败。 - + Fail to remove the note from the folder configuration. 从文件夹配置中移除笔记失败。 - + Fail to open target folder. 打开目标文件夹失败。 - + cut 剪切 - + copy 复制 - + Fail to %1 the note file. %1笔记文件失败。 - + Fail to add the note to target folder's configuration. 将该笔记添加到目标文件夹的配置失败。 - + Source image %1 does not exist. 源图片 %1 不存在。 - + Skip image with the same source and target path %1. 跳过源和目标路径 %1 相同的图片。 - + Fail to %1 image %2 to %3. Please manually %1 it and modify the note. %1图片 %2 到 %3 失败。请手动%1并修改笔记。 - + Fail to %1 attachments folder %2 to %3. Please manually maintain it. %1附件文件夹 %2 到 %3 失败。请手动维护。 - + Fail to update configuration of note %1. 更新笔记 %1 的配置失败。 @@ -2789,43 +3276,43 @@ VNoteManagementTab - + Notes 笔记 - + External Files 外部文件 - - + + Custom image folder 自定义图片文件夹 - + Set the global name of the image folder to hold images of notes (restart VNote to make it work) 全局设置图片文件夹的名字以保存笔记的图片(重启VNote生效) - + Custom attachment folder 自定义附件文件夹 - + Set the global name of the attachment folder to hold attachments of notes (restart VNote to make it work) 全局设置附件文件夹的名字以保存笔记的附件(重启VNote生效) - + Name of the attachment folder 附件文件夹的名字 - + Set the path of the global image folder to hold images of external files (restart VNote to make it work). You could use both absolute or relative path here. If absolute path is used, VNote will not manage those images, so you need to clean up unused images manually. @@ -2834,8 +3321,8 @@ those images, so you need to clean up unused images manually. 这些图片,需要由用户手动清理不再使用的图片。 - - + + Name of the image folder 图片文件夹的名字 @@ -2843,193 +3330,207 @@ those images, so you need to clean up unused images manually. VNotebookInfoDialog - + Set the name of the folder to hold images of all the notes in this notebook (empty to use global configuration) 设置一个文件夹以保存该笔记本下所有笔记的图片(为空则使用全局配置) - + The folder to hold attachments of all the notes in this notebook 保存该笔记本下所有笔记的附件的文件夹 - + The folder to hold deleted files from within VNote of all the notes in this notebook 保存该笔记本的所有笔记在VNote中被删除的文件的文件夹 - + Notebook &name: 笔记本名 (&N): - + Notebook &root folder: 笔记本根文件夹 (&R): - + &Image folder: 图片文件夹 (&I): - + Attachment folder: 附件文件夹: - + Recycle bin folder: 回收站文件夹: - + Created time: 创建时间: - - + + <span style="%1">WARNING</span>: Name (case-insensitive) <span style="%2">%3</span> already exists. Please choose another name. + <span style="%1">警告</span>:已存在该名字(不区分大小写) <span style="%2">%3</span>。请选择另一个名字。 + + + + <span style="%1">WARNING</span>: Name <span style="%2">%3</span> contains illegal characters (after magic word evaluation). + <span style="%1">警告</span>:名字 <span style="%2">%3</span> 包含非法字符(解析幻词之后)。 + + + + Use global configuration (%1) 使用全局配置 (%1) - <span style="%1">WARNING</span>: Name (case-insensitive) already exists. Please choose another name. - <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 + <span style="%1">警告</span>:已存在该名字(不区分大小写)。请选择另一个名字。 VNotebookSelector - + &Delete 删除 (&D) - + Delete current notebook 删除当前笔记本 - + &Info 信息 (&I) - + View and edit current notebook's information 查看并编辑当前笔记本的信息 - + &Open Notebook Location 打开笔记本所在位置 (&O) - + Open the root folder of this notebook in operating system 在操作系统中打开该笔记本的根文件夹 - + &Recycle Bin 回收站 (&R) - + Open the recycle bin of this notebook 打开该笔记本的回收站 - + &Empty Recycle Bin 清空回收站 (&E) - + Empty the recycle bin of this notebook 清空该笔记本的回收站 - + Are you sure to empty recycle bin of notebook <span style="%1">%2</span>? 确认清空笔记本 <span style="%1">%2</span> 的回收站? - + <span style="%1">WARNING</span>: VNote will delete all the files in directory <span style="%2">%3</span>.<br>It may be UNRECOVERABLE! <span style="%1">警告</span>:VNote会删除目录 <span style="%2">%3</span> 中的所有文件。<br>该操作可能是不可恢复的! - + Successfully emptied recycle bin of notebook <span style="%1">%2</span>! 成功清空笔记本 <span style="%1">%2</span> 的回收站! - + Fail to empty recycle bin of notebook <span style="%1">%2</span>! 清空笔记本 <span style="%1">%2</span> 的回收站失败! - + Information 注意 - + Create or import a notebook 新建或导入一个笔记本 - + + View and edit notebooks + 查看并编辑笔记本 + + + * The root folder should be used EXCLUSIVELY by VNote and it is recommended to be EMPTY. * 根目录应该给VNote单独使用,并且推荐使用空文件夹。 - + * A previously created notebook could be imported into VNote by choosing its root folder. * 选择一个此前创建的笔记本的根目录可以将该笔记本导入VNote。 - - + + Warning 警告 - + Fail to create notebook <span style="%1">%2</span> in <span style="%1">%3</span>. - 在 <span style="%1">%3</span> 中新建笔记本 <span style="%1">%2</span> 失败。 + 在 <span style="%1">%3</span> 中新建笔记本 <span style="%1">%2</span> 失败。 - + Delete Notebook 删除笔记本 - + Fail to delete the root folder of notebook <span style="%1">%2</span> from disk. You may open the folder and check it manually. 无法从磁盘中删除笔记本 <span style="%1">%2</span> 的根目录。 请打开该目录并手动检查。 - - + + Add Notebook 添加笔记本 - + Please type the name of the notebook and choose a folder as the Root Folder of the notebook. 请输入笔记本的名字并选择一个文件夹作为笔记本的根目录。 - + Delete Notebook Folder From Disk 从磁盘中删除笔记本根目录 - + Notebook Information 笔记本信息 @@ -3042,24 +3543,28 @@ those images, so you need to clean up unused images manually. 文件: - Image folder: - 图片文件夹: + 图片文件夹: - + Use global configuration (%1) 使用全局配置 (%1) - + Set the path of the image folder to store images of this file. If absolute path is used, VNote will not manage those images.(empty to use global configuration) 设置该文件的图片文件夹的路径以保存相关图片。 如果使用绝对路径,VNote不会管理这些图片。(为空则使用全局配置) - + + &Image folder: + 图片文件夹 (&I): + + + External File Information 外部文件信息 @@ -3067,12 +3572,12 @@ If absolute path is used, VNote will not manage those images.(empty to use globa VReadEditTab - + Read Mode (For Markdown Only) 阅读模式(仅Markdown笔记有效) - + Edit Mode 编辑模式 @@ -3261,140 +3766,140 @@ Latest Version: v%2 VVim - - - - + + + + %1 %2 changed 更改了 %1 %2 - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + lines - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + line - + Mark not set 标记未设置 - - - + + + %1 fewer %2 少了 %1 %2 - - - + + + %1 %2 yanked 复制了 %1 %2 - + %1 more %2 多了 %1 %2 - - - + + + %1 %2 >ed 1 time %1 %2增加了1次缩进 - - - + + + %1 %2 <ed 1 time %1 %2减小了1次缩进 - + Undo %1 %2 撤销 %1 次%2 - - + + changes 更改 - - + + change 更改 - + Redo %1 %2 重做 %1 次%2 - + Mark has invalid line number 标记的行号无效 - - + + Note has been saved 已保存笔记 - - + + Quit 退出编辑 - - + + Quit with note having been saved 保存更改并退出编辑 - + Not an editor command: %1 不是一个编辑器命令:%1 diff --git a/src/utils/vmetawordmanager.cpp b/src/utils/vmetawordmanager.cpp index 66cd4a67..130a6326 100644 --- a/src/utils/vmetawordmanager.cpp +++ b/src/utils/vmetawordmanager.cpp @@ -97,7 +97,7 @@ void VMetaWordManager::init() // %MMMM%. addMetaWord(MetaWordType::FunctionBased, "MMMM", - tr("the long localized month name (e.g. `January` to `December`"), + tr("the long localized month name (e.g. `January` to `December`)"), std::bind(formattedDateTime, _1, "MMMM")); // %yy%. @@ -115,25 +115,25 @@ void VMetaWordManager::init() // %h%. addMetaWord(MetaWordType::FunctionBased, "h", - tr("the hour without a leading zero (`0` to `23` or `1` to `12` if AM/PM display"), + tr("the hour without a leading zero (`0` to `23` or `1` to `12` if AM/PM display)"), std::bind(formattedDateTime, _1, "h")); // %hh%. addMetaWord(MetaWordType::FunctionBased, "hh", - tr("the hour with a leading zero (`00` to `23` or `01` to `12` if AM/PM display"), + tr("the hour with a leading zero (`00` to `23` or `01` to `12` if AM/PM display)"), std::bind(formattedDateTime, _1, "hh")); // %H%. addMetaWord(MetaWordType::FunctionBased, "H", - tr("the hour without a leading zero (`0` to `23` even with AM/PM display"), + tr("the hour without a leading zero (`0` to `23` even with AM/PM display)"), std::bind(formattedDateTime, _1, "H")); // %HH%. addMetaWord(MetaWordType::FunctionBased, "HH", - tr("the hour with a leading zero (`00` to `23` even with AM/PM display"), + tr("the hour with a leading zero (`00` to `23` even with AM/PM display)"), std::bind(formattedDateTime, _1, "HH")); // %m%.