mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
refine Chinese translations
This commit is contained in:
parent
238983ed0d
commit
38b18af4ab
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user