Improvement for test 'TestTemplatePlaceholders()'.
(grafted from 658380148e5f08dfe48eae8fef435655e2a959a3) --HG-- branch : develop
This commit is contained in:
parent
db478562ee
commit
5b8f699ad3
|
@ -240,7 +240,15 @@ void TST_BuitInRegExp::TestTemplatePlaceholders()
|
|||
const QRegularExpression re(QLatin1String("^[^\\s]+$"));
|
||||
if (re.match(translated).hasMatch())
|
||||
{
|
||||
translations.insert(translated);
|
||||
if (not translations.contains(translated))
|
||||
{
|
||||
translations.insert(translated);
|
||||
}
|
||||
else
|
||||
{
|
||||
issue << QString("Duplicate translation '%1' for placeholder '%2' in locale '%3'.\n")
|
||||
.arg(translated, placeholder, m_locale);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user