From 79507358337b00112cd358f134eeb669557b5b15 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 22 Aug 2016 12:00:12 +0300 Subject: [PATCH] Fix issue with declension name of material in some languages. --HG-- branch : develop --- src/libs/vlayout/vtextmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vlayout/vtextmanager.cpp b/src/libs/vlayout/vtextmanager.cpp index 5c5ebef24..bd571b356 100644 --- a/src/libs/vlayout/vtextmanager.cpp +++ b/src/libs/vlayout/vtextmanager.cpp @@ -246,7 +246,7 @@ void VTextManager::Update(const QString& qsName, const VPatternPieceData& data) << QApplication::translate("Detail", "Lining", 0) << QApplication::translate("Detail", "Interfacing", 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; qslPlace << "" << QLatin1String(" ") + tr("on Fold"); tl.m_eFontWeight = QFont::Normal; @@ -265,7 +265,7 @@ void VTextManager::Update(const QString& qsName, const VPatternPieceData& data) { 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)]); AddLine(tl); }