Browse Source

refine Chinese translations

Le Tan 8 years ago
parent
commit
38b18af4ab

BIN
src/translations/vnote_zh_CN.qm


File diff suppressed because it is too large
+ 215 - 245
src/translations/vnote_zh_CN.ts


+ 1 - 1
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);

+ 1 - 1
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);

+ 3 - 3
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);
 

+ 2 - 2
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;

+ 5 - 5
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;

Some files were not shown because too many files changed in this diff