Commit 562f5e44 authored by Pino Toscano's avatar Pino Toscano Committed by Albert Astals Cid
Browse files

Store division::p_falseCapitals as translated

All the users use it that way already.
parent 81124665
......@@ -44,7 +44,7 @@ bool divisionCapitalAsker::nextBoxAskerQuestionHook(const QString &division, int
int random = (int)((float)falseCapitals.size() * KRandom::random() / (RAND_MAX + 1.0));
QString falseCapital = falseCapitals.at(random);
falseCapitals.removeAt(random);
p_radioButtons[index] -> setText(i18nc("@option:radio The capital of <Region> is...", "%1", i18nc(p_map -> getFileName().toUtf8(), falseCapital.toUtf8())));
p_radioButtons[index] -> setText(i18nc("@option:radio The capital of <Region> is...", "%1", falseCapital));
}
++index;
}
......
......@@ -151,7 +151,7 @@ KGmap *mapReader::parseMap(const QString &path)
for (int i = 0; i < falseCapitalTags.count(); ++i)
{
falseCapital = falseCapitalTags.item(i).toElement();
if (!falseCapital.isNull()) falseCapitals << falseCapital.text();
if (!falseCapital.isNull() && !falseCapital.text().isEmpty()) falseCapitals << i18nc(ctxt, falseCapital.text().toUtf8());
}
if (!falseCapitals.isEmpty()) kgdiv->setFalseCapitals(falseCapitals);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment