[TechDraw] Translations and grammer (#16301)
Co-authored-by: WandererFan <WandererFan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
7df1a5d00a
commit
e025b1bfe2
@@ -392,7 +392,7 @@ void MDIViewPage::print(QPrinter* printer)
|
||||
if (doPrint && printer->pageLayout().orientation() != pageAttr.orientation()) {
|
||||
int ret = QMessageBox::warning(
|
||||
this, tr("Different orientation"),
|
||||
tr("The printer uses a different orientation than the drawing.\n"
|
||||
tr("The printer uses a different orientation than the drawing.\n"
|
||||
"Do you want to continue?"),
|
||||
QMessageBox::Yes | QMessageBox::No);
|
||||
if (ret != QMessageBox::Yes) {
|
||||
@@ -471,7 +471,7 @@ void MDIViewPage::saveSVG(std::string filename)
|
||||
void MDIViewPage::saveSVG()
|
||||
{
|
||||
QStringList filter;
|
||||
filter << QObject::tr("SVG (*.svg)");
|
||||
filter << QStringLiteral("SVG (*.svg)");
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
QString fn =
|
||||
Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export page as SVG"),
|
||||
@@ -494,7 +494,7 @@ void MDIViewPage::saveDXF()
|
||||
QString defaultDir;
|
||||
QString fileName = Gui::FileDialog::getSaveFileName(
|
||||
Gui::getMainWindow(), QString::fromUtf8(QT_TR_NOOP("Save DXF file")), defaultDir,
|
||||
QString::fromUtf8(QT_TR_NOOP("DXF (*.dxf)")));
|
||||
QString::fromUtf8("DXF (*.dxf)"));
|
||||
if (fileName.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
@@ -517,7 +517,7 @@ void MDIViewPage::savePDF()
|
||||
QString defaultDir;
|
||||
QString fileName = Gui::FileDialog::getSaveFileName(
|
||||
Gui::getMainWindow(), QString::fromUtf8(QT_TR_NOOP("Save PDF file")), defaultDir,
|
||||
QString::fromUtf8(QT_TR_NOOP("PDF (*.pdf)")));
|
||||
QString::fromUtf8("PDF (*.pdf)"));
|
||||
if (fileName.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user