Commit 23dbb7ca authored by Pino Toscano's avatar Pino Toscano Committed by Albert Astals Cid
Browse files

Store KGmap::p_divisionToCapitalTitle as translated

All the users use it that way already.
parent 8396abbe
...@@ -77,5 +77,5 @@ void divisionCapitalAsker::setAnswerHook(int userSays) ...@@ -77,5 +77,5 @@ void divisionCapitalAsker::setAnswerHook(int userSays)
QString divisionCapitalAsker::getQuestionHook() const QString divisionCapitalAsker::getQuestionHook() const
{ {
return i18nc("@title", p_map->getDivisionToCapitalTitle().toUtf8()); return p_map->getDivisionToCapitalTitle();
} }
...@@ -422,7 +422,7 @@ void kgeography::setMap(KGmap *m) ...@@ -422,7 +422,7 @@ void kgeography::setMap(KGmap *m)
p_askMap->setText(i18n("&Location of %1", divisionType)); p_askMap->setText(i18n("&Location of %1", divisionType));
p_askPlaceMap->setText(i18n("&Place %1 in the Map", divisionType)); p_askPlaceMap->setText(i18n("&Place %1 in the Map", divisionType));
p_askCapitalDivisions->setText(p_map->getCapitalToDivisionTitle()); p_askCapitalDivisions->setText(p_map->getCapitalToDivisionTitle());
p_askDivisionCapitals->setText(i18nc("@title", p_map->getDivisionToCapitalTitle().toUtf8())); p_askDivisionCapitals->setText(p_map->getDivisionToCapitalTitle());
p_askFlagDivisions->setText(i18n("%1 by Flag", divisionType)); p_askFlagDivisions->setText(i18n("%1 by Flag", divisionType));
p_askDivisionFlags->setText(i18n("&Flags of %1", divisionType)); p_askDivisionFlags->setText(i18n("&Flags of %1", divisionType));
......
...@@ -90,7 +90,7 @@ KGmap *mapReader::parseMap(const QString &path) ...@@ -90,7 +90,7 @@ KGmap *mapReader::parseMap(const QString &path)
title = getElementString(QStringLiteral("divisionToCapitalTitle"), root, Optional); title = getElementString(QStringLiteral("divisionToCapitalTitle"), root, Optional);
if ( ! title.isEmpty() ) if ( ! title.isEmpty() )
{ {
kgmap->setDivisionToCapitalTitle(title); kgmap->setDivisionToCapitalTitle(i18nc("@title", title.toUtf8()));
} }
else else
{ {
......
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