diff --git a/src/translations/vnote_zh_CN.qm b/src/translations/vnote_zh_CN.qm index d7cf79fb..a237559f 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 65192c65..7de4d36c 100644 --- a/src/translations/vnote_zh_CN.ts +++ b/src/translations/vnote_zh_CN.ts @@ -4,29 +4,29 @@ VDeleteNotebookDialog - - Are you sure to delete notebook: %1 ? - 确认删除笔记本: %1 ? + + Are you sure to delete notebook <span style="%1">%2</span>? + 确认删除笔记本 <span style="%1">%2</span>? - + Do not delete files from disk. 不要从磁盘中删除文件。 - + When checked, VNote just removes the notebook instead of deleting files from disk 启用时,VNote只会移除该笔记本,不会从磁盘中删除文件 - - VNote won't delete files under this directory: %1 . - VNote不会删除该目录下的文件: %1 。 + + VNote won't delete files under directory <span style="%1">%2</span>. + VNote不会删除目录 <span style="%1">%2</span> 中的文件。 - - This will delete any files under this directory: %1 ! - 该操作会删除该目录下的所有文件: %1 ! + + <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会尝试逐个删除该笔记本中的所有根目录。该操作可能是不可恢复的! @@ -58,165 +58,165 @@ 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 在当前目录下粘贴已复制或剪切的目录 - - - - - - - + + + + + + + Warning 警告 - - Fail to open notebook %1. - 打开笔记本失败: %1。 + + Fail to open notebook <span style="%1">%2</span>. + 打开笔记本 <span style="%1">%2</span> 失败。 - - Fail to open directory %1. - 打开目录失败: %1。 + + Fail to open directory <span style="%1">%2</span>. + 打开目录 <span style="%1">%2</span> 失败。 - - Create sub-directory under %1. - 在目录 %1 中新建一个子目录。 + + Create sub-directory under <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> 中已存在。请选择另一个名字。 + + + + + Fail to create directory <span style="%1">%2</span>. + 新建目录 <span style="%1">%2</span> 失败。 + + + + Create root directory in notebook <span style="%1">%2</span>. + 在笔记本 <span style="%1">%2</span> 中新建根目录。 + + + + Name already exists in notebook <span style="%1">%2</span>. Please choose another name. + 该目录名在笔记本 <span style="%1">%2</span> 中已存在。请选择另一个名字。 + + + + Are you sure to delete directory <span style="%1">%2</span>? + 确认删除目录 <span style="%1">%2</span>? + + + + <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 新建目录 - - Name already exists under %1. Please choose another name. - 该目录名已存在于目录 %1 中。请选择另一个名字。 - - - - - Fail to create directory %1. - 新建目录失败: %1。 - - - - Create root directory in notebook %1. - 在笔记本 %1 中新建根目录。 - - - + Create Root Directory 新建根目录 - - Name already exists in notebook %1. Please choose another name. - 该目录名已存在于笔记本 %1 中。请选择另一个名字。 - - - - Are you sure to delete directory %1? - 确认删除目录: %1? - - - - This will delete any files under this directory. - 该操作会删除该目录下的所有文件。 - - - + Directory Information 目录信息 - - Fail to rename directory %1. - 重命名目录失败: %1。 - - - - Fail to copy directory %1. - 复制目录失败: %1。 - - - + Please check if there already exists a directory with the same name. 请检查是否存在同名目录。 @@ -224,32 +224,32 @@ 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 编辑当前笔记 @@ -263,33 +263,33 @@ - Note %1 has been modified. - 笔记 %1 已被更改。 + 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. 保存笔记失败。 - - %1 being written has been removed. - 要写入的文件已被删除: %1。 + + 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. 保存笔记时,写入文件失败。请稍后再试。 @@ -358,138 +358,138 @@ 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 %1. - 在目录 %1 中新建笔记。 + + 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> 失败。 + + + + 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类型处理。 - + Note &name: 笔记名 (&N): - + Create Note 新建笔记 - + Name already exists. Please choose another name. 该笔记本名已存在。请选择另一个名字。 - - - - + + + + Warning 警告 - - Fail to create note %1. - 新建笔记失败: %1。 - - - - Are you sure to delete note %1? - 确认删除笔记: %1? - - - - This may be unrecoverable! - 该操作不可撤消! - - - - Fail to copy note %1. - 复制笔记失败: %1。 - - - + Please check if there already exists a file with the same name in the target directory. 请检查目标文件夹中是否存在同名文件。 - + The renaming will change the note type. 重命名会更改笔记类型。 - - - You should close the note %1 before continue. - 请在继续前先关闭笔记: %1。 - VFindReplaceDialog @@ -600,12 +600,12 @@ 图片标题 (&I): - + Select The Image To Be Inserted 选择要插入的图片 - + Images (*.png *.xpm *.jpg *.bmp *.gif) 图片 (*.png *.xpm *.jpg *.bmp *.gif) @@ -694,7 +694,7 @@ - + &Edit 编辑 (&E) @@ -779,224 +779,239 @@ 启用Mermaid渲染图像图表 - + + Preview Images In Edit Mode + 编辑模式预览图片 + + + + Enable image preview 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 高亮选定字词的所有出现 - + + 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样式文件 - + Set as the editor style 使用该样式设置编辑器 - + 2 Spaces 2个空格 @@ -1071,108 +1086,103 @@ 编辑模式中启用代码块语法高亮 - + 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 大纲 - - Select Files(HTML or Markdown) To Import - 选择要导入的文件 (HTML或Markdown) - - - + 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进行渲染 - + &Background Color 背景颜色 (&B) - + Use system's background color configuration for editor 为编辑器使用系统的背景色设置 - + Set as the background color for editor 使用该背景色设置编辑器 @@ -1180,17 +1190,17 @@ VMdEdit - + Insert From Clipboard 粘贴选项 - + Insert As Image 作为图像插入 - + Insert As Text 作为文本插入 @@ -1215,7 +1225,7 @@ 保存图片失败: %1。 - + Insert Image From File 从文件中插入图片 @@ -1223,35 +1233,40 @@ VNewNotebookDialog - + Notebook &name: 笔记本名 (&N): - - Notebook &path: - 笔记本路径 (&P): + + Notebook &root folder: + 笔记本根目录 (&R): - + + Try to import existing notebook + 尝试导入已有笔记本 + + + + <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) - - Import existing notebook - 导入已有笔记本 - - - + When checked, VNote won't create a new config file if there already exists one 启用时,VNote会尝试使用已有的配置文件 - - - Select A Directory For The Notebook - 为笔记本选择一个目录 - VNotebookInfoDialog @@ -1269,48 +1284,68 @@ VNotebookSelector - + &Delete 删除 (&D) - + Delete current notebook 删除当前笔记本 - + &Info 信息 (&I) - + View and edit current notebook's information 查看并编辑当前笔记本的信息 - + Create or import a notebook 新建或导入一个笔记本 - + Delete Notebook 删除笔记本 - - + + Add Notebook 添加笔记本 - + + Please type the name of the notebook and choose an existing directory as Root Folder of the notebook. + 请输入笔记本的名字并选择一个已有目录作为笔记本的根目录。 + + + + The root folder should be used EXCLUSIVELY by VNote and it is recommended to be EMPTY. + 笔记本的根目录应该是一个专门给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 笔记本信息 diff --git a/src/vnotebookselector.cpp b/src/vnotebookselector.cpp index e91ef85c..7db6658c 100644 --- a/src/vnotebookselector.cpp +++ b/src/vnotebookselector.cpp @@ -163,9 +163,11 @@ void VNotebookSelector::update() bool VNotebookSelector::newNotebook() { QString info(tr("Please type the name of the notebook and " - "choose an existing directory as Root Folder of the notebook.\n" - "The root folder should be used EXCLUSIVELY by VNote and " - "it is recommended to be EMPTY.")); + "choose an existing directory as Root Folder of the notebook.")); + info += "\n"; + info += tr("The root folder should be used EXCLUSIVELY by VNote and " + "it is recommended to be EMPTY."); + QString defaultName("new_notebook"); QString defaultPath;