refine Chinese translations

This commit is contained in:
Le Tan 2017-03-04 13:49:22 +08:00
parent 238983ed0d
commit 38b18af4ab
7 changed files with 276 additions and 341 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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;

View File

@ -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;