Fix typos.

This commit is contained in:
Roman Telezhynskyi 2022-03-28 17:40:44 +03:00
parent 250fa436c0
commit 2402bfaf9e
15 changed files with 32 additions and 32 deletions

View File

@ -244,9 +244,9 @@ auto VPUndoPieceZValueMove::Levels(const QList<VPPiecePtr> &pieces, bool skip) c
if (levels.contains(p->ZValue()))
{
QVector<QString> lavel_images = levels.value(p->ZValue());
lavel_images.append(p->GetUniqueID());
levels[p->ZValue()] = lavel_images;
QVector<QString> level_images = levels.value(p->ZValue());
level_images.append(p->GetUniqueID());
levels[p->ZValue()] = level_images;
}
else
{
@ -487,9 +487,9 @@ auto VPUndoPiecesZValueMove::Levels(const QList<VPPiecePtr> &allPieces, const QV
if (levels.contains(p->ZValue()))
{
QVector<QString> lavel_images = levels.value(p->ZValue());
lavel_images.append(p->GetUniqueID());
levels[p->ZValue()] = lavel_images;
QVector<QString> level_images = levels.value(p->ZValue());
level_images.append(p->GetUniqueID());
levels[p->ZValue()] = level_images;
}
else
{

View File

@ -511,14 +511,14 @@ void VPApplication::ProcessArguments(const VPCommandLinePtr &cmd)
{
if (not cmd->IsGuiEnabled() && args.count() > 1)
{
qCCritical(pApp, "%s\n", qPrintable(tr("Export mode doesn't support openning several files.")));
qCCritical(pApp, "%s\n", qPrintable(tr("Export mode doesn't support opening several files.")));
cmd.get()->parser.showHelp(V_EX_USAGE);
}
if (args.count() > 1 && not rawLayouts.isEmpty())
{
qCCritical(pApp, "%s\n",
qPrintable(tr("Import raw layout data does not support openning several layout files.")));
qPrintable(tr("Import raw layout data does not support opening several layout files.")));
cmd.get()->parser.showHelp(V_EX_USAGE);
}

View File

@ -144,7 +144,7 @@ void VPCommandLine::InitCommandLineOptions()
translate("VCommandLine", "The filename of exported layout file. Use it to enable console export mode."),
translate("VCommandLine", "The filename of layout file")},
{{SINGLE_OPTION_RAW_LAYOUT, LONG_OPTION_RAW_LAYOUT},
translate("VCommandLine", "Load pattern pieces form the raw layout data file."),
translate("VCommandLine", "Load pattern pieces from the raw layout data file."),
translate("VCommandLine", "The raw layout data file")},
{{SINGLE_OPTION_EXP2FORMAT, LONG_OPTION_EXP2FORMAT},
translate("VCommandLine", "Number corresponding to output format (default = 0, export mode): <not defined>"),

View File

@ -705,7 +705,7 @@ void MApplication::ParseCommandLine(const SocketConnection &connection, const QS
{
if (testMode && args.count() > 1)
{
qCCritical(mApp, "%s\n", qPrintable(tr("Test mode doesn't support openning several files.")));
qCCritical(mApp, "%s\n", qPrintable(tr("Test mode doesn't support opening several files.")));
parser.showHelp(V_EX_USAGE);
}

View File

@ -3834,7 +3834,7 @@ QString TMainWindow::CheckMName(const QString &name, const QSet<QString> &import
{
if (name.isEmpty())
{
throw VException(tr("Measurement name in is empty."));
throw VException(tr("Measurement name is empty."));
}
if (importedNames.contains(name))
@ -3847,24 +3847,24 @@ QString TMainWindow::CheckMName(const QString &name, const QSet<QString> &import
QRegularExpression rx(NameRegExp());
if (not rx.match(name).hasMatch())
{
throw VException(tr("Merasurement '%1' doesn't match regex pattern.").arg(name));
throw VException(tr("Measurement '%1' doesn't match regex pattern.").arg(name));
}
if (not data->IsUnique(name))
{
throw VException(tr("Merasurement '%1' already used in file.").arg(name));
throw VException(tr("Measurement '%1' already used in the file.").arg(name));
}
}
else
{
if (not ConvertToSet<QString>(AllGroupNames()).contains(name))
{
throw VException(tr("Measurement '%1' is not one of known measurements.").arg(name));
throw VException(tr("Measurement '%1' is not one of the known measurements.").arg(name));
}
if (not data->IsUnique(name))
{
throw VException(tr("Merasurement '%1' already used in file.").arg(name));
throw VException(tr("Measurement '%1' already used in file.").arg(name));
}
}
@ -3933,7 +3933,7 @@ void TMainWindow::ImportIndividualMeasurements(const QxtCsvModel &csv, const QVe
const QString name = csv.text(i, nameColumn).simplified();
if (name.isEmpty())
{
ShowError(tr("Error in row %1. Measurement name is empty.").arg(i));
ShowError(tr("Error in row %1. The measurement name is empty.").arg(i));
continue;
}
@ -4049,7 +4049,7 @@ void TMainWindow::ImportMultisizeMeasurements(const QxtCsvModel &csv, const QVec
const QString name = csv.text(i, nameColumn).simplified();
if (name.isEmpty())
{
ShowError(tr("Error in row %1. Measurement name is empty.").arg(i));
ShowError(tr("Error in row %1. The measurement name is empty.").arg(i));
continue;
}

View File

@ -781,7 +781,7 @@ void VCommandLine::InitCommandLineOptions()
translate("VCommandLine", "The measure unit")},
{{SINGLE_OPTION_IGNORE_MARGINS, LONG_OPTION_IGNORE_MARGINS},
translate("VCommandLine", "Ignore printer margins (export mode). Use if need full paper space. In case of "
"later printing you must account for the margins himself.")},
"later printing you must account for the margins themselves.")},
{{SINGLE_OPTION_LEFT_MARGIN, LONG_OPTION_LEFT_MARGIN},
translate("VCommandLine", "Page left margin in current units like 3.0 (export mode). If not set will be used "
"value from default printer. Or 0 if none printers was found."),

View File

@ -1973,13 +1973,13 @@ void VPattern::ParsePlaceLabel(QDomElement &domElement, const Document &parse)
}
catch (const VExceptionBadId &e)
{
VExceptionObjectError excep(tr("Error creating or updating place lavel"), domElement);
VExceptionObjectError excep(tr("Error creating or updating place label"), domElement);
excep.AddMoreInformation(e.ErrorMessage());
throw excep;
}
catch (qmu::QmuParserError &e)
{
VExceptionObjectError excep(tr("Error creating or updating place lavel"), domElement);
VExceptionObjectError excep(tr("Error creating or updating place label"), domElement);
excep.AddMoreInformation(QString("Message: " + e.GetMsg() + "\n"+ "Expression: " + e.GetExpr()));
throw excep;
}

View File

@ -137,7 +137,7 @@ QString VAbstractConverter::Convert()
}
else
{
throw VException(tr("Error openning a temp file: %1.").arg(m_tmpFile.errorString()));
throw VException(tr("Error opening a temp file: %1.").arg(m_tmpFile.errorString()));
}
m_ver < MaxVer() ? ApplyPatches() : DowngradeToCurrentMaxVersion();

View File

@ -169,7 +169,7 @@ auto VBackgroundPatternImage::IsValid() const -> bool
if (not aliases.contains(m_contentType))
{
m_errorString = tr("Content type mistmatch.");
m_errorString = tr("Content type mismatch.");
return false;
}

View File

@ -117,7 +117,7 @@ auto VPatternImage::IsValid() const -> bool
if (not aliases.contains(m_contentType))
{
m_errorString = tr("Content type mistmatch.");
m_errorString = tr("Content type mismatch.");
return false;
}

View File

@ -399,7 +399,7 @@ bool WatermarkWindow::on_actionSave_triggered()
QMessageBox messageBox(this);
messageBox.setIcon(QMessageBox::Question);
messageBox.setText(tr("The document has no write permissions."));
messageBox.setInformativeText(tr("Do you want to change the premissions?"));
messageBox.setInformativeText(tr("Do you want to change the permissions?"));
messageBox.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
messageBox.setDefaultButton(QMessageBox::Yes);

View File

@ -336,7 +336,7 @@ bool VBank::PrepareUnsorted()
if (square <= 0)
{
qCCritical(lBank) << VAbstractValApplication::warningMessageSignature +
tr("Preparing data for layout error: Detail '%1' square <= 0")
tr("Error of preparing data for layout: Detail '%1' square <= 0")
.arg(details.at(i).GetName());
prepare = false;
return prepare;
@ -361,7 +361,7 @@ bool VBank::PrepareDetails()
if (layoutWidth <= 0)
{
qCCritical(lBank) << VAbstractValApplication::warningMessageSignature +
tr("Preparing data for layout error: Layout paper sheet <= 0");
tr("Error of preparing data for layout: Layout paper sheet <= 0");
prepare = false;
return prepare;
}
@ -369,7 +369,7 @@ bool VBank::PrepareDetails()
if (details.isEmpty())
{
qCCritical(lBank) << VAbstractValApplication::warningMessageSignature +
tr("Preparing data for layout error: List of details is empty");
tr("Error of preparing data for layout: List of details is empty");
prepare = false;
return prepare;
}

View File

@ -265,7 +265,7 @@ void VLayoutExporter::ExportToFlatDXF(QGraphicsScene *scene, const QList<QGraphi
scene->render(&painter, m_imageRect, m_imageRect, Qt::IgnoreAspectRatio);
if (not painter.end())
{
qCritical() << tr("Can't create an flat dxf file.")
qCritical() << tr("Can't create a flat dxf file.")
<< generator.ErrorString();
}
}

View File

@ -97,9 +97,9 @@ void ZValueMoveBackgroundImage::redo()
if (levels.contains(image.ZValue()))
{
QVector<QUuid> lavel_images = levels.value(image.ZValue());
lavel_images.append(image.Id());
levels[image.ZValue()] = lavel_images;
QVector<QUuid> level_images = levels.value(image.ZValue());
level_images.append(image.Id());
levels[image.ZValue()] = level_images;
}
else
{

View File

@ -280,7 +280,7 @@ auto VAbstractMainWindow::CheckFilePermissions(const QString &path, QWidget *mes
QMessageBox messageBox(messageBoxParent);
messageBox.setIcon(QMessageBox::Question);
messageBox.setText(tr("The file has no write permissions."));
messageBox.setInformativeText(tr("Do you want to change the premissions?"));
messageBox.setInformativeText(tr("Do you want to change the permissions?"));
messageBox.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
messageBox.setDefaultButton(QMessageBox::Yes);