From c54bc9c680f825390fb393e5468ad0d55ec58f3a Mon Sep 17 00:00:00 2001 From: Le Tan Date: Thu, 25 May 2017 22:24:58 +0800 Subject: [PATCH] refine Chinese translations --- changes.md | 41 +- src/dialog/vdeletenotebookdialog.cpp | 6 +- src/translations/vnote_zh_CN.qm | Bin 26262 -> 31449 bytes src/translations/vnote_zh_CN.ts | 1025 ++++++++++++++++---------- src/vdirectorytree.cpp | 4 +- 5 files changed, 663 insertions(+), 413 deletions(-) diff --git a/changes.md b/changes.md index 26da0d01..0f190247 100644 --- a/changes.md +++ b/changes.md @@ -1,29 +1,30 @@ # Changes History ## v1.5 -- Support logging in release mode; -- Fix Chinese font matching in mdhl; -- Fix VimagePreviewer to support optional title; -- Refactor local image folder logics; -- Support custom local image folder for both notebook scope and global scope; -- Support constraining the width of images in read mode; -- Fix and refine default style; -- Centering the images and display the alt text as caption in read mode; -- Support exporting a single note as PDF file; -- Add "Open File Location" menu item in folder tree and note list; +- Support logging in release mode. +- Fix Chinese font matching in mdhl. +- Fix VimagePreviewer to support optional title. +- Refactor local image folder logics. +- Support custom local image folder for both notebook scope and global scope. +- Support constraining the width of images in read mode. +- Fix and refine default style. +- Centering the images and display the alt text as caption in read mode. +- Support exporting a single note as PDF file. +- Add "Open File Location" menu item in folder tree and note list. +- Support highlighting trailing space. ## v1.4 -- Use `_vnote.json` as the config file; -- More user friendly messages; -- Delete notebook by deleting root directories one by one; -- Refactor image preview logics to support previewing all images in edit mode; -- Support constraining the width of previewed images to the edit window; -- bugfix; +- Use `_vnote.json` as the config file. +- More user friendly messages. +- Delete notebook by deleting root directories one by one. +- Refactor image preview logics to support previewing all images in edit mode. +- Support constraining the width of previewed images to the edit window. +- bugfix. ## v1.3 -- Support code block syntax highlight in edit mode; -- A more pleasant AutoIndent and AutoList; -- `Ctrl+` instead of `Ctrl+Alt+` to insert title; -- Support custom Markdown CSS styles and editor styles; +- Support code block syntax highlight in edit mode. +- A more pleasant AutoIndent and AutoList. +- `Ctrl+` instead of `Ctrl+Alt+` to insert title. +- Support custom Markdown CSS styles and editor styles. ## v1.2 - Support **MathJax**. diff --git a/src/dialog/vdeletenotebookdialog.cpp b/src/dialog/vdeletenotebookdialog.cpp index 6a6c9eb6..a8d1e753 100644 --- a/src/dialog/vdeletenotebookdialog.cpp +++ b/src/dialog/vdeletenotebookdialog.cpp @@ -107,12 +107,12 @@ QPixmap VDeleteNotebookDialog::standardIcon(QMessageBox::Icon p_icon) void VDeleteNotebookDialog::notDeleteCheckChanged(int p_state) { if (p_state) { - m_warningLabel->setText(tr("VNote won't delete files under directory %2.") + m_warningLabel->setText(tr("VNote won't delete files in directory %2.") .arg(vconfig.c_dataTextStyle).arg(m_path)); } else { m_warningLabel->setText(tr("WARNING: " - "VNote may delete ANY files under directory %3! " - "VNote will try to delete all the root directories within this notebook one by one. " + "VNote may delete ANY files in directory %3! " + "VNote will try to delete all the root folders within this notebook one by one. " "It may be UNRECOVERABLE!") .arg(vconfig.c_warningTextStyle).arg(vconfig.c_dataTextStyle).arg(m_path)); } diff --git a/src/translations/vnote_zh_CN.qm b/src/translations/vnote_zh_CN.qm index f390e17201afd385d2ddf7f518aa6bd4062e32b0..8a5329313003479a0ea90125e20ba9d8d423d650 100644 GIT binary patch delta 8426 zcmcgw33yXw);>wIucf3rw6~=VU1_1E(9#9y&XRP40xfNm^tK74Nlnt0f;LuBlnzS0 zf}o({il_q`KoN07#SNjj{w{;!DDHv_ii*IT@7^R$Yn}P$ng98Do^o<;&N<&%-m`q! ze2n+rPds=2ldTc2p53j07{-rb9C0Z3fH(OG<+=adb= zQo;LnE_xD9aWub>_wA$iaXLSyLJjj^hJKhyKiACTKHE!gOSmB_*b1ry$$XV z{~h3l79n;i{a?x-TX&4%K$RX{Qc`uu{46C@!k9{tKt*t>1mfsk3PxwK^z+FLqJ^v6u z?eU=J9=(W$JR}g!nFdh3O(42I6~M4T5E;4+pg<~^wtWrqUlio_+>5E5Cn#9i0xjax$j~C7dFKG;-XZ8z(f~_76?E@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m#h>$*94N$^}@&4=}5w6~3p1lW2S13raBGy$O(y$O%h=nqU(?3qn z!B1iQXJE;0#b6CSEgMxSuNu+NF)1fpM5GR0)Mero;zj(G-jaGl1y@JLE7KGe)pcCC z*;rT2SvM%lDQ!OFf*y=u22QU^cg_IMDOYbabLvHN6}(P)1Dc*4Lu|49?F(q=m}?X3*fhw#pN z&-aD|_!`N2oijP&)t7ha z)0L6kPA}vdsU0Ow&GYAl6{c76358^RJco6AK9>k}MlxNZ!2wg$3ehzIK}Pv-T}<$oeP zMKvV3w7P~h8`*Ny2TmV9DZcV#zV@Conkd_uE=lyBDw{9~dQLI6NXA-@j8nQ|pg{6h z*Hy~YmJ8XhWvhA)_J*tD45iaKTeym*>-?E)6`ADzjk2WYo6rxk!QEGzsmJqdX$``t zXk@vW)h07PSR>i(8SLX+d3}bmq`~5}qJ^IsK6}H$=UN#;o_RX;dRblBW;=2`B8cP%T_b+> zKGyexts)=iK2_N!j-NnVE#4$T=h7R8yc%q8-5usG4(Urs$jgL07lb8~BDK#4p$6d| zbaL*gnOmg4->2rh?oH@x+wYB`U8w`2g5>1rSf#ajq=_O!<5R5r;wOqoYeJq?og||E zkAm*#9OM4G)e~gf9xtqd^|~tOuFJy4n%p)>$l z%v}&n?36m=^zO^C+Q5%}eI1Tr--V0hSx;n668%r(gifS5+bojl$u8YM>u=fDDXT7z zkr0PjZseY>zjblZC6U#8@-upvQ~H&{{Qq>*_G}wdX#>YrPcNA>3wZTcjeEfTk8Fb z?^eni7Ph2W47@yTBdGzxNn50g*l6I$ z)v0=N$mnA4BwTaLZcpN0g7~{VgQ%uCOKMBaRWamFt-H1Q)eedjnz91x$)lz{ z{0bE|o$&g=FOEJ#vw(bMD(f?4ub6*J9NzR`1rgd^8QiciTUD4>($Fj~yUAazUG - VNote won't delete files under directory <span style="%1">%2</span>. - VNote不会删除目录 <span style="%1">%2</span> 中的文件。 + VNote won't delete files in directory <span style="%1">%2</span>. + VNote不会删除位于目录 <span style="%1">%2</span> 中的文件。 - <span style="%1">WARNING</span>: VNote may delete <b>ANY</b> files under directory <span style="%2">%3</span>! VNote will try to delete all the root directories within this notebook one by one. It may be UNRECOVERABLE! - <span style="%1">警告</span>:VNote可能会删除目录 <span style="%2">%3</span> 中的 <b>任何</b> 文件!VNote会尝试逐个删除该笔记本中的所有根目录。该操作可能是不可恢复的! + <span style="%1">WARNING</span>: VNote may delete <b>ANY</b> files in directory <span style="%2">%3</span>! VNote will try to delete all the root folders within this notebook one by one. It may be UNRECOVERABLE! + <span style="%1">警告</span>:VNote可能会删除位于目录 <span style="%2">%3</span> 的<b>任何</b>文件!VNote会尝试逐个删除该笔记本下的所有根文件夹。该操作可能是不可恢复的! VDirInfoDialog - Directory &name: - 目录名 (&N): + Folder &name: + 文件夹名(&N): VDirectory - + + Fail to create image folder <span style="%1">%2</span>. + 新建图片目录 <span style="%1">%2</span> 失败。 + + + + Please check if there already exists a file <span style="%1">%2</span> and then manually copy it and modify the note accordingly. + 请确认是否已经存在文件 <span style="%1">%2</span> ,然后手动拷贝并修改笔记对应内容。 + + + Warning 警告 - - Fail to copy image %1. - 复制图片失败: %1。 + + Fail to copy image <span style="%1">%2</span> while %5 note <span style="%3">%4</span>. + %5笔记 <span style="%3">%4</span>时,复制图片 <span style="%1">%2</span> 失败。 - - Please check if there already exists a file with the same name and then manually copy it. - 请检查目标文件夹中是否已经存在同名文件并手动拷贝。 + + moving + 移动 + + + + copying + 复制 VDirectoryTree - - - New &Root Directory - 新建根目录 (&R) - - - - Create a new root directory in current notebook - 在当前笔记本中新建一个根目录 - - - - &New Sub-Directory - 新建子目录 (&N) - - - - Create a new sub-directory - 新建一个子目录 - &Delete 删除 (&D) - - - Delete selected directory - 删除选定目录 - &Info 信息 (&I) - - - View and edit current directory's information - 查看并编辑当前目录的信息 - &Copy 复制 (&C) - - - Copy selected directories - 复制选定目录 - C&ut 剪切 (&U) - - - Cut selected directories - 剪切选定目录 - &Paste 粘贴 (&P) - - Paste directories under this directory - 在当前目录下粘贴已复制或剪切的目录 + + New &Root Folder + 新建根文件夹(&R) - - - - - - - + + &New Subfolder + 新建子文件夹(&N) + + + + Delete selected folder + 删除选定文件夹 + + + + View and edit current folder's information + 查看并编辑当前文件夹的信息 + + + + Copy selected folders + 复制选定文件夹 + + + + Cut selected folders + 剪切选定文件夹 + + + + Paste folders in this folder + 在当前文件夹中粘贴所复制的文件夹 + + + + &Open Folder Location + 打开文件夹所在位置(&O) + + + + Open the folder containing this folder in operating system + 在操作系统中打开该文件夹所在目录 + + + + + + + + + Warning 警告 - + Fail to open notebook <span style="%1">%2</span>. 打开笔记本 <span style="%1">%2</span> 失败。 - - Fail to open directory <span style="%1">%2</span>. - 打开目录 <span style="%1">%2</span> 失败。 + + Fail to open folder <span style="%1">%2</span>. + 打开文件夹 <span style="%1">%2</span> 失败。 - - Create sub-directory under <span style="%1">%2</span>. - 在 <span style="%1">%2</span> 下新建子目录。 + + Create a subfolder in <span style="%1">%2</span>. + 在文件夹 <span style="%1">%2</span> 中新建子文件夹。 - - Name already exists under <span style="%1">%2</span>. Please choose another name. - 该目录名在 <span style="%1">%2</span> 中已存在。请选择另一个名字。 + + + Folder &name: + 文件夹名(&N): - - - Fail to create directory <span style="%1">%2</span>. - 新建目录 <span style="%1">%2</span> 失败。 + + Create Folder + 新建文件夹 - - Create root directory in notebook <span style="%1">%2</span>. - 在笔记本 <span style="%1">%2</span> 中新建根目录。 + + Name already exists in <span style="%1">%2</span>. Please choose another name. + 该文件夹名字在文件夹 <span style="%1">%2</span> 中已存在。请选择另一个名字。 - + + + Fail to create folder <span style="%1">%2</span>. + 新建文件夹 <span style="%1">%2</span> 失败。 + + + + Create a root folder in notebook <span style="%1">%2</span>. + 在笔记本 <span style="%1">%2</span> 中新建根文件夹。 + + + + Create Root Folder + 新建根文件夹 + + + + Are you sure to delete folder <span style="%1">%2</span>? + 确认删除文件夹 <span style="%1">%2</span>? + + + + Folder Information + 文件夹信息 + + + + Fail to rename folder <span style="%1">%2</span>. + 重命名文件夹 <span style="%1">%2</span> 失败。 + + + + Fail to copy folder <span style="%1">%2</span>. + 复制文件夹 <span style="%1">%2</span> 失败。 + + + + Please check if there already exists a folder with the same name. + 请检查是否已经存在同名文件夹。 + + + Name already exists in notebook <span style="%1">%2</span>. Please choose another name. - 该目录名在笔记本 <span style="%1">%2</span> 中已存在。请选择另一个名字。 + 该文件夹名字在笔记本 <span style="%1">%2</span> 中已存在。请选择另一个名字。 - - Are you sure to delete directory <span style="%1">%2</span>? - 确认删除目录 <span style="%1">%2</span>? + + Create a root folder in current notebook + 在当前笔记本中新建根文件夹 - + + Create a subfolder + 新建子文件夹 + + + <span style="%1">WARNING</span>: VNote will delete the whole directory (<b>ANY</b> files) <span style="%2">%3</span>.<br>It may be UNRECOVERABLE! <span style="%1">警告</span>:VNote会删除整个目录(<b>任何</b>文件) <span style="%2">%3</span>。<br>该操作可能是不可恢复的! - - - Fail to rename directory <span style="%1">%2</span>. - 重命名目录 <span style="%1">%2</span> 失败。 - - - - Fail to copy directory <span style="%1">%2</span>. - 复制目录 <span style="%1">%2</span> 失败。 - - - - - Directory &name: - 目录名 (&N): - - - - Create Directory - 新建目录 - - - - Create Root Directory - 新建根目录 - - - - Directory Information - 目录信息 - - - - Please check if there already exists a directory with the same name. - 请检查是否存在同名目录。 - VEdit - + &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 编辑当前笔记 @@ -257,39 +282,39 @@ VEditTab - + 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. 保存笔记时,写入文件失败。请稍后再试。 @@ -347,6 +372,79 @@ 移除当前分割窗口 + + VExporter + + + Target &path: + 目标路径(&P): + + + + &Browse + 浏览文件 (&B) + + + + Page layout: + 页面布局: + + + + &Settings + 设置(&S) + + + + Open File Location + 打开文件所在位置 + + + + Export Note + 导出笔记 + + + + Portable Document Format (*.pdf) + 可移植文档格式 (*.pdf) + + + + WebPage, Complete (*.html) + 网页,全部 (*.html) + + + + Export As + 导出到文件 + + + + Portrait + 纵向 + + + + Landscape + 横向 + + + + Export note <span style="%1">%2</span> as %3. + 将笔记 <span style="%1">%2</span> 导出为%3。 + + + + Export As %1 + 导出为%1 + + + + Exporting %1 + 正在导出 %1 + + VFileInfoDialog @@ -358,135 +456,145 @@ VFileList - + &New Note 新建笔记 (&N) - - Create a note in current directory - 在当前目录中新建一个笔记 - - - + &Delete 删除 (&D) - + Delete selected note 删除选定笔记 - + &Info 信息 (&I) - + View and edit current note's information 查看并编辑当前笔记的信息 - + &Copy 复制 (&C) - + Copy selected notes 复制选定笔记 - + C&ut 剪切 (&U) - + Cut selected notes 剪切选定笔记 - + &Paste 粘贴 (&P) - - Paste notes in current directory - 在当前目录中粘贴已复制或剪切的笔记 - - - + Note Information 笔记信息 - + Create a note in <span style="%1">%2</span>. 在目录 <span style="%1">%2</span> 中新建笔记。 - + Fail to create note <span style="%1">%2</span>. 新建笔记 <span style="%1">%2</span> 失败。 - + Are you sure to delete note <span style="%1">%2</span>? 确认删除笔记 <span style="%1">%2</span>? - + <span style="%1">WARNING</span>: The files (including images) deleted may be UNRECOVERABLE! <span style="%1">警告</span>:被删除的文件(包括图片)可能是不可恢复的! - + Fail to copy note <span style="%1">%2</span>. 复制笔记 <span style="%1">%2</span> 失败。 - + + Please check if there already exists a file with the same name in the target folder. + 请检查目标文件夹中是否已经存在同名文件。 + + + You should close the note <span style="%1">%2</span> before continue. 继续之前请先关闭笔记 <span style="%1">%2</span>。 - + Note with name ending with ".md" will be treated as Markdown type. 名字以".md"结尾的笔记会被作为Markdown类型处理。 - + + Create a note in current folder + 在当前文件夹中新建笔记 + + + + Paste notes in current folder + 在当前文件夹中粘贴笔记 + + + + &Open Note Location + 打开笔记所在位置(&O) + + + + Open the folder containing this note in operating system + 在操作系统中打开该笔记所在目录 + + + Note &name: 笔记名 (&N): - + Create Note 新建笔记 - + Name already exists. Please choose another name. 该笔记本名已存在。请选择另一个名字。 - - - - + + + + Warning 警告 - - Please check if there already exists a file with the same name in the target directory. - 请检查目标文件夹中是否存在同名文件。 - - - + The renaming will change the note type. 重命名会更改笔记类型。 @@ -572,12 +680,12 @@ VGeneralTab - + &Language: 语言 (&L): - + System 默认 @@ -613,586 +721,651 @@ VMainWindow - - Notebook - 笔记本 - - - - Directory - 目录 - - - + View 查看 - + &Single Panel 单列面板 (&S) - + + Display only the notes list panel + 仅显示笔记列表面板 + + + &Two Panels 双列面板 (&T) - + + Display both the folders and notes list panel + 显示文件夹树和笔记列表面板 + + + Expand 扩展内容区域 - + Expand the edit area 扩展内容编辑区域 - + Note 笔记 - - New &Root Directory - 新建根目录 (&R) - - - - Create a root directory in current notebook - 在当前笔记本中新建一个根目录 - - - + New &Note 新建笔记 (&N) - - Create a note in current directory - 在当前目录中新建一个笔记 - - - + 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 放弃对当前笔记的更改并退出编辑模式 - + Save changes and exit edit mode 保存对当前笔记的更改并退出编辑模式 - + Save 保存 - + &Help 帮助 (&H) - + About &Qt 关于Qt (&Q) - + &Markdown Markdown (&M) - + &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 + 限制图片宽度 + + + + 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渲染图像图表 - + Preview Images In Edit Mode 编辑模式预览图片 - + Enable image preview 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) - + &Import Notes From Files 导入文件 (&I) - - Import notes from files into current directory - 从文件中导入笔记到当前目录 - - - - Settings - 设置 - - - + View and change settings for VNote 查看并更改VNote的配置 - - Exit - 退出 - - - + Exit VNote 退出VNote - + Insert &Image 插入图片 (&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 插入新行时自动继续列表 - + Highlight Selected Words 高亮选定字词 - + Highlight all occurences of selected words 高亮选定字词的所有出现 - + + Highlight Trailing Sapces + 高亮行尾空白字符 + + + + Highlight all the spaces at the end of a line + 高亮所有行尾空白字符 + + + Select Files (HTML or Markdown) To Import 选择需要导入的文件(HTML或Markdown) - + Import Notes From File 导入文件 - + Imported notes: %1 succeed, %2 failed. 已导入笔记: %1 成功, %2 失败。 - + Use system's background color configuration for Markdown rendering 使用系统的背景色设置对Markdown进行渲染 - + Set as the background color for Markdown rendering 使用该背景色对Markdown进行渲染 - - + + &Add Style 添加样式 (&A) - + Open the folder to add your custom CSS style files 打开样式文件夹以添加自定义CSS样式文件 - + Editor &Style 编辑器样式 (&S) - + Open the folder to add your custom MDHL style files 打开样式文件夹以添加自定义MDHL样式文件 - + + Print Note + 打印笔记 + + + Set as the editor style 使用该样式设置编辑器 - + 2 Spaces 2个空格 - - Display only the note list panel - 仅显示笔记列表面板 - - - - Display both the directory and note list panel - 显示目录和笔记列表面板 - - - + Discard Changes And Read 放弃更改并阅读 - + Save 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 编辑模式中启用代码块语法高亮 - + + Import notes from external files into current folder + 将外部文件作为笔记导入到当前文件夹 + + + + Export As &PDF + 导出为&PDF + + + + Export current note as PDF file + 将当前笔记导出为PDF文件 + + + + &Print + 打印(&P) + + + + Print current note + 打印当前笔记 + + + + &Settings + 设置(&S) + + + + &Exit + 退出(&E) + + + Insert an image from file into current note 从文件中插入图片到当前笔记 - + 4 Spaces 4个空格 - + 8 Spaces 8个空格 - + Highlight Cursor Line 高亮光标所在行 - + Highlight current cursor line 高亮当前光标所在行 - + Tab Stop Width Tab Stop宽度 - + Tools 工具 - + Outline 大纲 - + Fail to import files maybe due to name conflicts. 导入文件失败 (可能是因为名字冲突)。 - + v%1 v %1 - + VNote is a Vim-inspired note-taking application for Markdown. VNote是一个受Vim启发而开发的专注于Markdown的笔记软件。 - + Visit https://github.com/tamlok/vnote.git for more information. 更多信息请访问 https://github.com/tamlok/vnote.git。 - + About VNote 关于VNote - + &Rendering Background 渲染背景 (&R) - - + + System 默认 - + Rendering &Style 渲染样式 (&S) - + Set as the CSS style for Markdown rendering 使用该CSS样式对Markdown进行渲染 - + + Notebooks + 笔记本 + + + + Folders + 文件夹 + + + + New &Root Folder + 新建根文件夹(&R) + + + + Create a root folder in current notebook + 在当前笔记本中新建根文件夹 + + + + Create a note in current folder + 在当前文件夹中新建笔记 + + + &Background Color 背景颜色 (&B) - + Use system's background color configuration for editor 为编辑器使用系统的背景色设置 - + Set as the background color for editor 使用该背景色设置编辑器 @@ -1224,18 +1397,34 @@ - + + Fail to create image folder <span style="%1">%2</span>. + 新建图片目录 <span style="%1">%2</span> 失败。 + + + + Fail to save image <span style="%1">%2</span>. + 保存图片 <span style="%1">%2</span> 失败。 + + + + Warning 警告 - - - Fail to save image %1. - 保存图片失败: %1。 + + + Fail to insert image <span style="%1">%2</span>. + 插入图片 <span style="%1">%2</span> 失败。 - + + Fail to copy image <span style="%1">%2</span>. + 复制图片 <span style="%1">%2</span> 失败。 + + + Insert Image From File 从文件中插入图片 @@ -1243,52 +1432,100 @@ VNewNotebookDialog - + Notebook &name: 笔记本名 (&N): - + Notebook &root folder: 笔记本根目录 (&R): - - Try to import existing notebook - 尝试导入已有笔记本 + + Import existing notebook + 导入已有笔记本 - + + When checked, VNote will read the configuration file to import an existing notebook + 选中后,VNote会读取配置文件来导入一个已有的笔记本 + + + + &Image folder: + 图片目录(&I): + + + + Use global configuration (%1) + 使用全局配置 (%1) + + + + Set the name of the folder for all the notes of this notebook to store images (empty to use global configuration) + 为该笔记本下的所有笔记的图片目录设置一个名字以保存图片 (为空则使用全局配置) + + + <span style="%1">WARNING</span>: The folder you choose is NOT empty! It is highly recommended to use an EMPTY and EXCLUSIVE folder for a notebook. Ignore this warning if you do want to import an existing VNote notebook folder. <span style="%1">警告</span>:选择的根目录不是一个空目录!强烈建议为每个笔记本使用一个空的、专门的目录。如果是导入一个已有的VNote笔记本目录,请忽略该警告。 - + Select Root Folder Of The Notebook 选择笔记本根目录 - + &Browse 浏览文件 (&B) + + + VNoteManagementTab - - When checked, VNote won't create a new config file if there already exists one - 启用时,VNote会尝试使用已有的配置文件 + + Custom image folder + 自定义图片目录 + + + + Set the global name of the image folder to store images of notes (restart VNote to make it work) + 全局设置图片目录的名字以保存笔记的图片 (重启VNote生效) + + + + Name of the image folder + 图片目录的名字 VNotebookInfoDialog - + Notebook &name: 笔记本名 (&N): - - Notebook &path: - 笔记本路径 (&P): + + Notebook &root folder: + 笔记本根目录 (&R): + + + + &Image folder: + 图片目录(&I): + + + + Use global configuration (%1) + 使用全局配置 (%1) + + + + Set the name of the folder for all the notes of this notebook to store images (empty to use global configuration) + 为该笔记本下的所有笔记的图片目录设置一个名字以保存图片 (为空则使用全局配置) @@ -1319,20 +1556,31 @@ 新建或导入一个笔记本 - + + Please type the name of the notebook and choose an existing folder as Root Folder of the notebook. + 请输入笔记本的名字并为其指定一个已有的目录作为笔记本根目录。 + + + + + Warning + 警告 + + + Delete Notebook 删除笔记本 - - - Add 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> 的根目录。 请打开该目录并手动检查。 - - Please type the name of the notebook and choose an existing directory as Root Folder of the notebook. - 请输入笔记本的名字并选择一个已有目录作为笔记本的根目录。 + + + Add Notebook + 添加笔记本 @@ -1340,22 +1588,18 @@ 笔记本的根目录应该是一个专门给VNote使用的空目录。 - + + Name already exists. Please choose another name. 该笔记本名已存在。请选择另一个名字。 - + Delete Notebook Folder From Disk 从磁盘中删除笔记本根目录 - - Fail to delete the root folder of notebook <span style="%1">%2</span> from disk. You may open the directory and check it manually. - 从磁盘中删除笔记本 <span style="%1">%2</span> 的根目录失败。建议打开该目录并手动检查。 - - - + Notebook Information 笔记本信息 @@ -1363,22 +1607,22 @@ VReadEditTab - + Read Mode (For Markdown Only) 阅读模式 (仅Markdown笔记有效) - + Edit Mode 编辑模式 - + Custom Web zoom factor 自定义页面缩放倍数 - + Set the zoom factor of the Web page when reading 设置阅读模式下页面的缩放倍数 @@ -1394,33 +1638,38 @@ VSettingsDialog - + General 常规 - + Read/Edit 阅读与编辑 - + + Note Management + 笔记管理 + + + Settings 设置 - - + + Warning 警告 - + Fail to load configuration. 读取配置失败。 - + Fail to save configuration. Please try it again. 保存配置失败。请稍后再试。 diff --git a/src/vdirectorytree.cpp b/src/vdirectorytree.cpp index a14d0c1e..b50e41a7 100644 --- a/src/vdirectorytree.cpp +++ b/src/vdirectorytree.cpp @@ -35,12 +35,12 @@ void VDirectoryTree::initActions() { newRootDirAct = new QAction(QIcon(":/resources/icons/create_rootdir.svg"), tr("New &Root Folder"), this); - newRootDirAct->setToolTip(tr("Create a new root folder in current notebook")); + newRootDirAct->setToolTip(tr("Create a root folder in current notebook")); connect(newRootDirAct, &QAction::triggered, this, &VDirectoryTree::newRootDirectory); newSubDirAct = new QAction(tr("&New Subfolder"), this); - newSubDirAct->setToolTip(tr("Create a new subfolder")); + newSubDirAct->setToolTip(tr("Create a subfolder")); connect(newSubDirAct, &QAction::triggered, this, &VDirectoryTree::newSubDirectory);