Updated test TST_TSTranslation.
--HG-- branch : develop
This commit is contained in:
parent
88d22ee3dd
commit
afaaffd52f
|
@ -41,6 +41,7 @@ const QString TST_TSTranslation::TagTranslation = QStringLiteral("translation
|
||||||
const QString TST_TSTranslation::AttrType = QStringLiteral("type");
|
const QString TST_TSTranslation::AttrType = QStringLiteral("type");
|
||||||
const QString TST_TSTranslation::AttrValVanished = QStringLiteral("vanished");
|
const QString TST_TSTranslation::AttrValVanished = QStringLiteral("vanished");
|
||||||
const QString TST_TSTranslation::AttrValUnfinished = QStringLiteral("unfinished");
|
const QString TST_TSTranslation::AttrValUnfinished = QStringLiteral("unfinished");
|
||||||
|
const QString TST_TSTranslation::AttrValObsolete = QStringLiteral("obsolete");
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
TST_TSTranslation::TST_TSTranslation(QObject *parent) :
|
TST_TSTranslation::TST_TSTranslation(QObject *parent) :
|
||||||
|
@ -74,7 +75,7 @@ void TST_TSTranslation::CheckEnglishLocalization()
|
||||||
if (translationTag.hasAttribute(AttrType))
|
if (translationTag.hasAttribute(AttrType))
|
||||||
{
|
{
|
||||||
const QString attrVal = translationTag.attribute(AttrType);
|
const QString attrVal = translationTag.attribute(AttrType);
|
||||||
if (attrVal == AttrValVanished || attrVal == AttrValUnfinished)
|
if (attrVal == AttrValVanished || attrVal == AttrValUnfinished || attrVal == AttrValObsolete)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -121,7 +122,7 @@ void TST_TSTranslation::CheckEmptyToolButton()
|
||||||
if (translationTag.hasAttribute(AttrType))
|
if (translationTag.hasAttribute(AttrType))
|
||||||
{
|
{
|
||||||
const QString attrVal = translationTag.attribute(AttrType);
|
const QString attrVal = translationTag.attribute(AttrType);
|
||||||
if (attrVal == AttrValVanished)
|
if (attrVal == AttrValVanished || attrVal == AttrValObsolete)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -193,7 +194,7 @@ void TST_TSTranslation::CheckPlaceMarkerExist()
|
||||||
if (translationTag.hasAttribute(AttrType))
|
if (translationTag.hasAttribute(AttrType))
|
||||||
{
|
{
|
||||||
const QString attrVal = translationTag.attribute(AttrType);
|
const QString attrVal = translationTag.attribute(AttrType);
|
||||||
if (attrVal == AttrValVanished || attrVal == AttrValUnfinished)
|
if (attrVal == AttrValVanished || attrVal == AttrValUnfinished || attrVal == AttrValObsolete)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,7 @@ private:
|
||||||
static const QString AttrType;
|
static const QString AttrType;
|
||||||
static const QString AttrValVanished;
|
static const QString AttrValVanished;
|
||||||
static const QString AttrValUnfinished;
|
static const QString AttrValUnfinished;
|
||||||
|
static const QString AttrValObsolete;
|
||||||
|
|
||||||
QDomNodeList LoadTSFile(const QString &filename);
|
QDomNodeList LoadTSFile(const QString &filename);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user