Fix issue with declension name of material in some languages.
--HG-- branch : develop
This commit is contained in:
parent
bf82dc3bb3
commit
7950735833
|
@ -246,7 +246,7 @@ void VTextManager::Update(const QString& qsName, const VPatternPieceData& data)
|
||||||
<< QApplication::translate("Detail", "Lining", 0)
|
<< QApplication::translate("Detail", "Lining", 0)
|
||||||
<< QApplication::translate("Detail", "Interfacing", 0)
|
<< QApplication::translate("Detail", "Interfacing", 0)
|
||||||
<< QApplication::translate("Detail", "Interlining", 0);
|
<< QApplication::translate("Detail", "Interlining", 0);
|
||||||
QString qsText = tr("Cut %1 on %2%3");
|
QString qsText = QLatin1String("%1. ") + tr("Cut") + QLatin1String(" %2%3");
|
||||||
QStringList qslPlace;
|
QStringList qslPlace;
|
||||||
qslPlace << "" << QLatin1String(" ") + tr("on Fold");
|
qslPlace << "" << QLatin1String(" ") + tr("on Fold");
|
||||||
tl.m_eFontWeight = QFont::Normal;
|
tl.m_eFontWeight = QFont::Normal;
|
||||||
|
@ -265,7 +265,7 @@ void VTextManager::Update(const QString& qsName, const VPatternPieceData& data)
|
||||||
{
|
{
|
||||||
qsMat = qslMaterials[int(mcp.m_eMaterial)];
|
qsMat = qslMaterials[int(mcp.m_eMaterial)];
|
||||||
}
|
}
|
||||||
tl.m_qsText = qsText.arg(mcp.m_iCutNumber).arg(qsMat).
|
tl.m_qsText = qsText.arg(qsMat).arg(mcp.m_iCutNumber).
|
||||||
arg(qslPlace[int(mcp.m_ePlacement)]);
|
arg(qslPlace[int(mcp.m_ePlacement)]);
|
||||||
AddLine(tl);
|
AddLine(tl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user