diff --git a/src/translations/vnote_zh_CN.qm b/src/translations/vnote_zh_CN.qm
index b9dd5e0b..6a5b7e54 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 11de0fb6..4f571299 100644
--- a/src/translations/vnote_zh_CN.ts
+++ b/src/translations/vnote_zh_CN.ts
@@ -4,19 +4,9 @@
VDirInfoDialog
-
- &Name:
-
-
-
-
- &OK
-
-
-
-
- &Cancel
-
+
+ Directory &name:
+ 目录名 (&V):
@@ -24,12 +14,12 @@
Warning
-
+ 警告
- Please check if there already exists a file with the same name and manually copy it.
-
+ Please check if there already exists a file with the same name and then manually copy it.
+ 请检查目标文件夹中是否已经存在同名文件并手动拷贝。
@@ -37,72 +27,72 @@
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
-
+ 复制选定目录
- &Cut
-
+ C&ut
+ 剪切 (&U)
Cut selected directories
-
+ 剪切选定目录
&Paste
-
+ 粘贴 (&P)
- Paste directories
-
+ Paste directories under this directory
+ 在当前目录下粘贴已复制或剪切的目录
@@ -113,27 +103,27 @@
Warning
-
+ 警告
Create Directory
-
+ 新建目录
Create Root Directory
-
+ 新建根目录
This will delete any files under this directory.
-
+ 该操作会删除该目录下的所有文件。
Directory Information
-
+ 目录信息
@@ -141,95 +131,85 @@
Information
-
+ 信息
Do you want to save your changes?
-
+ 是否保存更改?
Warning
-
+ 警告
- Fail to save note
-
+ Fail to save note.
+ 保存笔记失败。
VEditWindow
- Locate
-
+ Locate To Directory
+ 定位所在目录
Locate the directory 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
-
+ 将当前标签页往右移动一个分隔窗口
Split
-
+ 分隔
Split current window vertically
-
+ 竖直分隔当前窗口
Remove split
-
+ 移除分隔
Remove current split window
-
+ 移除当前分隔窗口
VFileInfoDialog
-
- &Name:
-
-
-
-
- &OK
-
-
-
-
- &Cancel
-
+
+ Note &name:
+ 笔记名 (&N):
@@ -237,79 +217,79 @@
&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
-
+ 复制选定笔记
- &Cut
-
+ C&ut
+ 剪切 (&U)
Cut selected notes
-
+ 剪切选定笔记
&Paste
-
+ 粘贴 (&P)
- Paste notes
-
+ Paste notes in current directory
+ 在当前目录中粘贴已复制或剪切的笔记
Note Information
-
+ 笔记信息
Warning
-
+ 警告
This may be unrecoverable!
-
+ 该操作不可撤消!
@@ -317,128 +297,118 @@
Find/Replace
- 查找/替换
+ 查找/替换
Find:
-
+ 查找:
Enter text to search
-
+ 输入要查找的文本
Find &Next
-
+ 查找下一个 (&N)
Find &Previous
-
+ 查找上一个 (&P)
&Replace with:
-
+ 替换 (&R):
Enter text to replace with
-
+ 输入替换后的文本
Replace
- 替换
+ 替换
Replace && Fin&d
-
+ 替换并查找 (&D)
Replace A&ll
-
+ 全部替换 (&L)
&Advanced >>
-
+ 高级 (&A) >>
&Case sensitive
-
+ 区分大小写 (&C)
&Whole word only
-
+ 完整字词匹配 (&W)
Re&gular expression
-
+ 正则表达式 (&G)
&Incremental search
-
+ 增量查找 (&I)
VGeneralTab
- Language:
-
+ &Language:
+ 语言 (&L):
System
- 默认
+ 默认
VInsertImageDialog
-
+
&From:
-
+ 图片源 (&F):
+
+
+
+ &Browse
+ 浏览文件 (&B)
- &Browse
-
-
-
-
&Image title:
-
+ 图片标题 (&I):
-
- &OK
-
+
+ Select The Image To Be Inserted
+ 选择要插入的图片
-
- &Cancel
-
-
-
-
- Select the image to be inserted
-
-
-
-
+
Images (*.png *.xpm *.jpg *.bmp *.gif)
-
+ 图片 (*.png *.xpm *.jpg *.bmp *.gif)
@@ -446,436 +416,436 @@
Notebook
- 笔记本
+ 笔记本
Directory
- 目录
+ 目录
View
- 查看
+ 查看
&Single Panel
- 单列
-
-
-
- Display only the note panel
- 仅显示笔记列表面板
+ 单列面板 (&S)
&Two Panels
- 双列
-
-
-
- Display both the directory and note panel
- 显示目录和笔记列表面板
+ 双列面板 (&T)
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 info of current note
- 显示和编辑当前笔记信息
+ View and edit current note's information
+ 查看并编辑当前笔记的信息
&Delete Note
- 删除笔记
+ 删除笔记 (&D)
Delete current note
- 删除当前笔记
+ 删除当前笔记
&Edit
- 编辑
+ 编辑 (&E)
Edit current note
- 编辑当前笔记
+ 编辑当前笔记
Discard Changes And Exit
- 放弃更改并退出
+ 放弃更改并退出
Discard changes and exit edit mode
- 放弃当前更改并退出编辑模式
+ 放弃对当前笔记的更改并退出编辑模式
Save Changes And Exit
- 保存更改并退出
+ 保存更改并退出
Save changes and exit edit mode
- 保存当前更改并退出编辑模式
+ 保存对当前笔记的更改并退出编辑模式
Save
- 保存
-
-
-
- Save changes of current note
- 保存当前笔记的更改
+ 保存
&Help
- 帮助
+ 帮助 (&H)
&About
- 关于
-
-
-
- Show information about VNote
- 显示VNote的信息
+ 关于 (&A)
About &Qt
- 关于&Qt
-
-
-
- Show information about Qt
- 显示Qt的信息
+ 关于Qt (&Q)
&Markdown
- &Markdown
+ Markdown (&M)
&Converter
- 渲染引擎
+ 渲染引擎 (&C)
Marked
- Marked
+ Marked
Use Marked to convert Markdown to HTML (re-open current tabs to make it work)
- 使用Marked渲染Markdown为HTML (需要重新打开当前标签页)
+ 使用Marked对Markdown进行HTML渲染 (需要重新打开当前标签页)
Hoedown
- Hoedown
+ Hoedown
Use Hoedown to convert Markdown to HTML (re-open current tabs to make it work)
- 使用Hoedow渲染Markdown为HTML (需要重新打开当前标签页)
+ 使用Hoedown对Markdown进行HTML渲染 (需要重新打开当前标签页)
&View
- 查看
+ 查看 (&V)
&File
- 文件
+ 文件 (&F)
&Import Notes From Files
- 导入文件
+ 导入文件 (&I)
Import notes from files into current directory
- 从文件中导入笔记到当前目录
+ 从文件中导入笔记到当前目录
Settings
- 设置
+ 设置
View and change settings for VNote
- 查看和更改VNote配置
+ 查看并更改VNote的配置
Insert &Image
- 插入图片
-
-
-
- Insert an image from file in current note
- 从文件中插入图片到当前笔记中
+ 插入图片 (&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
+ 扩展Tab (&E)
Expand entered Tab to spaces
- 扩展输入的Tab为空格
+ 将输入的Tab扩展为空格
Expand Tab to 2 spaces
- 扩展Tab为2个空格
+ 扩展Tab为2个空格
Expand Tab to 4 spaces
- 扩展Tab为4个空格
+ 扩展Tab为4个空格
Expand Tab to 8 spaces
- 扩展Tab为8个空格
+ 扩展Tab为8个空格
+
+
+
+ Highlight Selected Words
+ 高亮选定字词
+
+
+
+ Highlight all occurences of selected words
+ 高亮选定字词的所有出现
Import Notes From File
- 导入文件
-
-
-
- Failed to import files maybe due to name conflicts.
- 未能导入文件,可能是因为名字冲突了。
+ 导入文件
Use system's background color configuration for Markdown rendering
- 使用系统的背景色设置进行Markdown渲染
+ 使用系统的背景色设置对Markdown进行渲染
Set as the background color for Markdown rendering
- 设置为Markdown渲染背景色
+ 使用该背景色对Markdown进行渲染
2 Spaces
- 2个空格
+ 2个空格
+
+
+
+ Display only the note list panel
+ 仅显示笔记列表面板
+
+
+
+ Display both the directory and note list panel
+ 显示目录和笔记列表面板
+
+
+
+ Save changes to current note
+ 保存对当前笔记的更改
+
+
+
+ View information about VNote
+ 查看VNote的信息
+
+
+
+ View information about Qt
+ 查看Qt的信息
+
+
+
+ Insert an image from file into current note
+ 从文件中插入图片到当前笔记
4 Spaces
- 4个空格
+ 4个空格
8 Spaces
- 8个空格
+ 8个空格
Highlight Cursor Line
- 高亮光标所在行
+ 高亮光标所在行
Highlight current cursor line
- 高亮当前光标所在行
-
-
-
- Highlight Selected Word
- 高亮所选文本
-
-
-
- Highlight all occurences of selected word
- 高亮所选文本的所有出现
+ 高亮当前光标所在行
Tab Stop Width
- Tab Stop 宽度
+ Tab Stop宽度
Tools
- 工具
+ 工具
Outline
- 大纲
+ 大纲
Select Files(HTML or Markdown) To Import
- 选择要导入的文件(HTML或Markdown)
+ 选择要导入的文件 (HTML或Markdown)
+
+
+
+ Fail to import files maybe due to name conflicts.
+ 导入文件失败 (可能是因为名字冲突)。
About VNote
- 关于VNote
+ 关于VNote
VNote is a Vim-inspired note taking application for Markdown.
Visit https://github.com/tamlok/vnote.git for more information.
- VNote是一个受Vim启发而开发的一个Markdown笔记软件。更多信息请访问 https://github.com/tamlok/vnote.git。
+ VNote是一个受Vim启发而开发的一个Markdown笔记软件。更多信息请访问 https://github.com/tamlok/vnote.git。
&Rendering Background
- 渲染背景
+ 渲染背景 (&R)
System
- 默认
+ 默认
&Background Color
- 背景颜色
+ 背景颜色 (&B)
Use system's background color configuration for editor
- 为编辑器使用系统的背景色
+ 为编辑器使用系统的背景色设置
Set as the background color for editor
- 设置为编辑器的背景色
+ 使用该背景色设置编辑器
@@ -883,110 +853,70 @@ Visit https://github.com/tamlok/vnote.git for more information.
Insert Image From Clipboard
-
+ 从剪切板中插入图片
Warning
-
+ 警告
+
+
+
+
+ Fail to save image %1.
+ 保存图片失败: %1。
Insert Image From File
-
-
-
-
- VNewDirDialog
-
-
- &OK
-
-
-
-
- &Cancel
-
-
-
-
- VNewFileDialog
-
-
- &OK
-
-
-
-
- &Cancel
-
+ 从文件中插入图片
VNewNotebookDialog
-
+
Notebook &name:
-
+ 笔记本名 (&N):
-
+
Notebook &path:
-
+ 笔记本路径 (&P):
+
+
+
+ &Browse
+ 浏览文件 (&B)
- &Browse
-
+ Import existing notebook
+ 导入已有笔记本
- Import existing notebook
-
+ When checked, VNote won't create a new config file if there already exists one
+ 启用时,VNote会尝试使用已有的配置文件
-
- When checked, VNote won't create a new config file if there already exists one.
-
-
-
-
- &OK
-
-
-
-
- &Cancel
-
-
-
-
- Select a directory as the path of the notebook
-
+
+ Select A Directory For The Notebook
+ 为笔记本选择一个目录
VNotebookInfoDialog
-
+
Notebook &name:
-
+ 笔记本名 (&N):
-
+
Notebook &path:
-
-
-
-
- &OK
-
-
-
-
- &Cancel
-
+ 笔记本路径 (&P):
@@ -994,42 +924,47 @@ Visit https://github.com/tamlok/vnote.git for more information.
&Delete
-
+ 删除 (&D)
Delete current notebook
-
+ 删除当前笔记本
&Info
-
+ 信息 (&I)
View and edit current notebook's information
-
+ 查看并编辑当前笔记本的信息
- Create or import a notebook.
-
+ Create or import a notebook
+ 新建或导入一个笔记本
- Create Notebook
-
+ Add Notebook
+ 添加笔记本
+
+
+
+ Name already exists. Please choose another name.
+ 该笔记本名已存在。请选择另一个名字。
Warning
-
+ 警告
Notebook Information
-
+ 笔记本信息
@@ -1037,18 +972,18 @@ Visit https://github.com/tamlok/vnote.git for more information.
General
-
+ 常规
Settings
- 设置
+ 设置
Warning
-
+ 警告
diff --git a/src/vdirectorytree.cpp b/src/vdirectorytree.cpp
index f9db456c..0cec293a 100644
--- a/src/vdirectorytree.cpp
+++ b/src/vdirectorytree.cpp
@@ -58,7 +58,7 @@ void VDirectoryTree::initActions()
this, &VDirectoryTree::copySelectedDirectories);
cutAct = new QAction(QIcon(":/resources/icons/cut.svg"),
- tr("&Cut"), this);
+ tr("C&ut"), this);
cutAct->setStatusTip(tr("Cut selected directories"));
connect(cutAct, &QAction::triggered,
this, &VDirectoryTree::cutSelectedDirectories);
diff --git a/src/vfilelist.cpp b/src/vfilelist.cpp
index c4944642..bb511254 100644
--- a/src/vfilelist.cpp
+++ b/src/vfilelist.cpp
@@ -65,7 +65,7 @@ void VFileList::initActions()
this, &VFileList::copySelectedFiles);
cutAct = new QAction(QIcon(":/resources/icons/cut.svg"),
- tr("&Cut"), this);
+ tr("C&ut"), this);
cutAct->setStatusTip(tr("Cut selected notes"));
connect(cutAct, &QAction::triggered,
this, &VFileList::cutSelectedFiles);
diff --git a/src/vmainwindow.cpp b/src/vmainwindow.cpp
index a7b4b216..49cf05ed 100644
--- a/src/vmainwindow.cpp
+++ b/src/vmainwindow.cpp
@@ -188,7 +188,7 @@ void VMainWindow::initFileToolBar()
noteInfoAct = new QAction(QIcon(":/resources/icons/note_info_tb.svg"),
tr("Note &Info"), this);
- noteInfoAct->setStatusTip(tr("View and edit the information of current note"));
+ noteInfoAct->setStatusTip(tr("View and edit current note's information"));
connect(noteInfoAct, &QAction::triggered,
this, &VMainWindow::curEditFileInfo);
@@ -263,11 +263,11 @@ void VMainWindow::initHelpMenu()
QMenu *helpMenu = menuBar()->addMenu(tr("&Help"));
QAction *aboutAct = new QAction(tr("&About"), this);
- aboutAct->setStatusTip(tr("Show information about VNote"));
+ aboutAct->setStatusTip(tr("View information about VNote"));
connect(aboutAct, &QAction::triggered,
this, &VMainWindow::aboutMessage);
QAction *aboutQtAct = new QAction(tr("About &Qt"), this);
- aboutQtAct->setStatusTip(tr("Show information about Qt"));
+ aboutQtAct->setStatusTip(tr("View information about Qt"));
connect(aboutQtAct, &QAction::triggered,
qApp, &QApplication::aboutQt);
diff --git a/src/vmdeditoperations.cpp b/src/vmdeditoperations.cpp
index 3f237b52..a729555a 100644
--- a/src/vmdeditoperations.cpp
+++ b/src/vmdeditoperations.cpp
@@ -57,7 +57,7 @@ void VMdEditOperations::insertImageFromQImage(const QString &title, const QStrin
VUtils::makeDirectory(path);
bool ret = image.save(filePath);
if (!ret) {
- QMessageBox msgBox(QMessageBox::Warning, tr("Warning"), QString("Fail to save image %1.").arg(filePath),
+ QMessageBox msgBox(QMessageBox::Warning, tr("Warning"), tr("Fail to save image %1.").arg(filePath),
QMessageBox::Ok, (QWidget *)m_editor);
msgBox.exec();
return;
@@ -82,7 +82,7 @@ void VMdEditOperations::insertImageFromPath(const QString &title,
bool ret = QFile::copy(oriImagePath, filePath);
if (!ret) {
qWarning() << "fail to copy" << oriImagePath << "to" << filePath;
- QMessageBox msgBox(QMessageBox::Warning, tr("Warning"), QString("Fail to save image %1.").arg(filePath),
+ QMessageBox msgBox(QMessageBox::Warning, tr("Warning"), tr("Fail to save image %1.").arg(filePath),
QMessageBox::Ok, (QWidget *)m_editor);
msgBox.exec();
return;
diff --git a/src/vnotebookselector.cpp b/src/vnotebookselector.cpp
index 36968c50..93060a2b 100644
--- a/src/vnotebookselector.cpp
+++ b/src/vnotebookselector.cpp
@@ -51,8 +51,8 @@ void VNotebookSelector::initActions()
this, SLOT(deleteNotebook()));
m_notebookInfoAct = new QAction(QIcon(":/resources/icons/notebook_info.svg"),
- tr("&Info"));
- m_notebookInfoAct->setStatusTip(tr("View and edit information of current notebook"));
+ tr("&Info"), this);
+ m_notebookInfoAct->setStatusTip(tr("View and edit current notebook's information"));
connect(m_notebookInfoAct, SIGNAL(triggered(bool)),
this, SLOT(editNotebookInfo()));
}
@@ -100,7 +100,7 @@ void VNotebookSelector::insertAddNotebookItem()
QFont font;
font.setItalic(true);
item->setData(Qt::FontRole, font);
- item->setToolTip(tr("Create or import a notebook."));
+ item->setToolTip(tr("Create or import a notebook"));
m_listWidget->insertItem(0, item);
}
@@ -158,13 +158,13 @@ bool VNotebookSelector::newNotebook()
QString defaultPath;
do {
- VNewNotebookDialog dialog(tr("Create Notebook"), info, defaultName,
+ VNewNotebookDialog dialog(tr("Add Notebook"), info, defaultName,
defaultPath, this);
if (dialog.exec() == QDialog::Accepted) {
QString name = dialog.getNameInput();
QString path = dialog.getPathInput();
if (findNotebook(name)) {
- info = "Name already exists. Please choose another name.";
+ info = tr("Name already exists. Please choose another name.");
defaultName = name;
defaultPath = path;
continue;