mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +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);
|
this, &VDirectoryTree::copySelectedDirectories);
|
||||||
|
|
||||||
cutAct = new QAction(QIcon(":/resources/icons/cut.svg"),
|
cutAct = new QAction(QIcon(":/resources/icons/cut.svg"),
|
||||||
tr("&Cut"), this);
|
tr("C&ut"), this);
|
||||||
cutAct->setStatusTip(tr("Cut selected directories"));
|
cutAct->setStatusTip(tr("Cut selected directories"));
|
||||||
connect(cutAct, &QAction::triggered,
|
connect(cutAct, &QAction::triggered,
|
||||||
this, &VDirectoryTree::cutSelectedDirectories);
|
this, &VDirectoryTree::cutSelectedDirectories);
|
||||||
|
@ -65,7 +65,7 @@ void VFileList::initActions()
|
|||||||
this, &VFileList::copySelectedFiles);
|
this, &VFileList::copySelectedFiles);
|
||||||
|
|
||||||
cutAct = new QAction(QIcon(":/resources/icons/cut.svg"),
|
cutAct = new QAction(QIcon(":/resources/icons/cut.svg"),
|
||||||
tr("&Cut"), this);
|
tr("C&ut"), this);
|
||||||
cutAct->setStatusTip(tr("Cut selected notes"));
|
cutAct->setStatusTip(tr("Cut selected notes"));
|
||||||
connect(cutAct, &QAction::triggered,
|
connect(cutAct, &QAction::triggered,
|
||||||
this, &VFileList::cutSelectedFiles);
|
this, &VFileList::cutSelectedFiles);
|
||||||
|
@ -188,7 +188,7 @@ void VMainWindow::initFileToolBar()
|
|||||||
|
|
||||||
noteInfoAct = new QAction(QIcon(":/resources/icons/note_info_tb.svg"),
|
noteInfoAct = new QAction(QIcon(":/resources/icons/note_info_tb.svg"),
|
||||||
tr("Note &Info"), this);
|
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,
|
connect(noteInfoAct, &QAction::triggered,
|
||||||
this, &VMainWindow::curEditFileInfo);
|
this, &VMainWindow::curEditFileInfo);
|
||||||
|
|
||||||
@ -263,11 +263,11 @@ void VMainWindow::initHelpMenu()
|
|||||||
QMenu *helpMenu = menuBar()->addMenu(tr("&Help"));
|
QMenu *helpMenu = menuBar()->addMenu(tr("&Help"));
|
||||||
|
|
||||||
QAction *aboutAct = new QAction(tr("&About"), this);
|
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,
|
connect(aboutAct, &QAction::triggered,
|
||||||
this, &VMainWindow::aboutMessage);
|
this, &VMainWindow::aboutMessage);
|
||||||
QAction *aboutQtAct = new QAction(tr("About &Qt"), this);
|
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,
|
connect(aboutQtAct, &QAction::triggered,
|
||||||
qApp, &QApplication::aboutQt);
|
qApp, &QApplication::aboutQt);
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ void VMdEditOperations::insertImageFromQImage(const QString &title, const QStrin
|
|||||||
VUtils::makeDirectory(path);
|
VUtils::makeDirectory(path);
|
||||||
bool ret = image.save(filePath);
|
bool ret = image.save(filePath);
|
||||||
if (!ret) {
|
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);
|
QMessageBox::Ok, (QWidget *)m_editor);
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
return;
|
return;
|
||||||
@ -82,7 +82,7 @@ void VMdEditOperations::insertImageFromPath(const QString &title,
|
|||||||
bool ret = QFile::copy(oriImagePath, filePath);
|
bool ret = QFile::copy(oriImagePath, filePath);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
qWarning() << "fail to copy" << oriImagePath << "to" << filePath;
|
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);
|
QMessageBox::Ok, (QWidget *)m_editor);
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
return;
|
return;
|
||||||
|
@ -51,8 +51,8 @@ void VNotebookSelector::initActions()
|
|||||||
this, SLOT(deleteNotebook()));
|
this, SLOT(deleteNotebook()));
|
||||||
|
|
||||||
m_notebookInfoAct = new QAction(QIcon(":/resources/icons/notebook_info.svg"),
|
m_notebookInfoAct = new QAction(QIcon(":/resources/icons/notebook_info.svg"),
|
||||||
tr("&Info"));
|
tr("&Info"), this);
|
||||||
m_notebookInfoAct->setStatusTip(tr("View and edit information of current notebook"));
|
m_notebookInfoAct->setStatusTip(tr("View and edit current notebook's information"));
|
||||||
connect(m_notebookInfoAct, SIGNAL(triggered(bool)),
|
connect(m_notebookInfoAct, SIGNAL(triggered(bool)),
|
||||||
this, SLOT(editNotebookInfo()));
|
this, SLOT(editNotebookInfo()));
|
||||||
}
|
}
|
||||||
@ -100,7 +100,7 @@ void VNotebookSelector::insertAddNotebookItem()
|
|||||||
QFont font;
|
QFont font;
|
||||||
font.setItalic(true);
|
font.setItalic(true);
|
||||||
item->setData(Qt::FontRole, font);
|
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);
|
m_listWidget->insertItem(0, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,13 +158,13 @@ bool VNotebookSelector::newNotebook()
|
|||||||
QString defaultPath;
|
QString defaultPath;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
VNewNotebookDialog dialog(tr("Create Notebook"), info, defaultName,
|
VNewNotebookDialog dialog(tr("Add Notebook"), info, defaultName,
|
||||||
defaultPath, this);
|
defaultPath, this);
|
||||||
if (dialog.exec() == QDialog::Accepted) {
|
if (dialog.exec() == QDialog::Accepted) {
|
||||||
QString name = dialog.getNameInput();
|
QString name = dialog.getNameInput();
|
||||||
QString path = dialog.getPathInput();
|
QString path = dialog.getPathInput();
|
||||||
if (findNotebook(name)) {
|
if (findNotebook(name)) {
|
||||||
info = "Name already exists. Please choose another name.";
|
info = tr("Name already exists. Please choose another name.");
|
||||||
defaultName = name;
|
defaultName = name;
|
||||||
defaultPath = path;
|
defaultPath = path;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user