Commit da8faaba authored by Chusslove Illich's avatar Chusslove Illich
Browse files

Add some more context data.

svn path=/trunk/KDE/kdeedu/kgeography/; revision=693231
parent 36438120
......@@ -27,7 +27,7 @@ bool capitalDivisionAsker::nextBoxAskerQuestionHook(const QString &division, int
if (isAnswer)
{
p_capital = p_map -> getDivisionCapital(division);
p_currentAnswer.setQuestion(i18nc("@item:intable column Question", "%1", i18nc(p_map -> getFileName().toUtf8(), p_capital.toUtf8())));
p_currentAnswer.setQuestion(i18nc("@item:intable column Question, %1 is capital name", "%1", i18nc(p_map -> getFileName().toUtf8(), p_capital.toUtf8())));
p_currentAnswer.setCorrectAnswer(i18nc("@option:radio <City> is the capital of...", "%1", i18nc(p_map -> getFileName().toUtf8(), division.toUtf8())));
QString capitalName = i18nc(p_map -> getFileName().toUtf8(), p_capital.toUtf8());
......
......@@ -29,7 +29,7 @@ bool divisionCapitalAsker::nextBoxAskerQuestionHook(const QString &division, int
{
QString divisionName = i18nc(p_map -> getFileName().toUtf8(), division.toUtf8());
setQuestion(i18nc("@title:group", "The capital of %1 is...", divisionName));
p_currentAnswer.setQuestion(i18nc("@item:intable column Question", "%1", i18nc(p_map -> getFileName().toUtf8(), division.toUtf8())));
p_currentAnswer.setQuestion(i18nc("@item:intable column Question, %1 is region name", "%1", i18nc(p_map -> getFileName().toUtf8(), division.toUtf8())));
p_capital = p_map -> getDivisionCapital(division);
p_currentAnswer.setCorrectAnswer(i18nc("@option:radio The capital of <Region> is...", "%1", i18nc(p_map -> getFileName().toUtf8(), p_capital.toUtf8())));
p_rb[i] -> setText(i18nc("@option:radio The capital of <Region> is...", "%1", i18nc(p_map -> getFileName().toUtf8(), p_capital.toUtf8())));
......
......@@ -29,9 +29,9 @@ bool divisionFlagAsker::nextBoxAskerQuestionHook(const QString &division, int i,
if (isAnswer)
{
QString divisionName = i18nc(p_map -> getFileName().toUtf8(), division.toUtf8());
setQuestion(i18n("The flag of %1 is...", divisionName));
setQuestion(i18nc("@title:group", "The flag of %1 is...", divisionName));
p_currentAnswer.setCorrectAnswer(icon.pixmap(QSize(60, 40)));
p_currentAnswer.setQuestion(i18nc(p_map -> getFileName().toUtf8(), division.toUtf8()));
p_currentAnswer.setQuestion(i18nc("@item:intable column Question, %1 is region name", "%1", i18nc(p_map -> getFileName().toUtf8(), division.toUtf8())));
}
else
{
......@@ -53,5 +53,5 @@ void divisionFlagAsker::setAnswerHook(int userSays)
QString divisionFlagAsker::getQuestionHook() const
{
QString divisionType = i18nc(p_map -> getFileName().toUtf8(), p_map->getDivisionsString().toUtf8());
return i18n("Flag of %1", divisionType);
return i18nc("@title", "Flag of %1", divisionType);
}
......@@ -101,7 +101,7 @@ void mapAsker::handleMapClick(QRgb c, const QPoint &p)
{
QString aux, cap;
aux = p_map -> getWhatIs(c, !p_asker);
if (aux == "nothing") KMessageBox::error(this, i18n("You have found a bug in a map. Please contact the author and tell the %1 map has nothing associated to color %2,%3,%4.", p_map -> getFile(), qRed(c), qGreen(c), qBlue(c)));
if (aux == "nothing") KMessageBox::error(this, i18nc("@info", "You have found a bug in a map. Please contact the author and tell the %1 map has nothing associated to color %2,%3,%4.", p_map -> getFile(), qRed(c), qGreen(c), qBlue(c)));
else if (p_shouldClearPopup)
{
p_popupManager.clear();
......@@ -130,15 +130,15 @@ void mapAsker::handleMapClick(QRgb c, const QPoint &p)
void mapAsker::nextQuestionHook(const QString &division)
{
QString divisionName = i18nc(p_map -> getFileName().toUtf8(), division.toUtf8());
p_next -> setText(i18n("<qt>Please click on:<br />%1</qt>", divisionName));
p_currentAnswer.setQuestion(i18nc(p_map -> getFileName().toUtf8(), division.toUtf8()));
p_next -> setText(i18nc("@info", "<qt>Please click on:<br />%1</qt>", divisionName));
p_currentAnswer.setQuestion(i18nc("@item:intable column Question, %1 is region name", "%1", i18nc(p_map -> getFileName().toUtf8(), division.toUtf8())));
p_next -> show();
p_currentAnswer.setCorrectAnswer(p_map -> getColor(division));
}
QString mapAsker::getQuestionHook() const
{
return i18n("Division in Map");
return i18nc("@title", "Division in Map");
}
void mapAsker::showEvent(QShowEvent *)
......
......@@ -107,7 +107,7 @@ void placeAsker::handleMapClick(QRgb c, const QPoint &widgetPoint, const QPointF
{
QString aux, cap;
aux = p_map -> getWhatIs(c, !p_asker);
if (aux == "nothing") KMessageBox::error(this, i18n("You have found a bug in a map. Please contact the author and tell the %1 map has nothing associated to color %2,%3,%4.", p_map -> getFile(), qRed(c), qGreen(c), qBlue(c)));
if (aux == "nothing") KMessageBox::error(this, i18nc("@info", "You have found a bug in a map. Please contact the author and tell the %1 map has nothing associated to color %2,%3,%4.", p_map -> getFile(), qRed(c), qGreen(c), qBlue(c)));
else if (p_shouldClearPopup)
{
p_popupManager.clear();
......@@ -148,9 +148,9 @@ void placeAsker::handleMapClick(QRgb c, const QPoint &widgetPoint, const QPointF
void placeAsker::nextQuestionHook(const QString &division)
{
QString divisionName = i18nc(p_map -> getFileName().toUtf8(), division.toUtf8());
p_next -> setText(i18n("<qt>Please place in the map:<br />%1</qt>", divisionName));
p_next -> setText(i18nc("@info", "<qt>Please place in the map:<br />%1</qt>", divisionName));
p_next -> show();
p_currentAnswer.setQuestion(i18nc(p_map -> getFile().toUtf8(), division.toUtf8()));
p_currentAnswer.setQuestion(i18nc("@item:intable column Question, %1 is region name", "%1", i18nc(p_map -> getFile().toUtf8(), division.toUtf8())));
p_currentAnswer.setCorrectAnswer(p_map -> getColor(division));
setCurrentDivision(division);
p_mapWidget->setCurrentDivisionImage(p_currentDivisionImage);
......@@ -159,7 +159,7 @@ void placeAsker::nextQuestionHook(const QString &division)
QString placeAsker::getQuestionHook() const
{
QString divisionType = i18nc(p_map -> getFileName().toUtf8(), p_map->getDivisionsString().toUtf8());
return i18n("Place %1 in map", divisionType);
return i18nc("@title", "Place %1 in map", divisionType);
}
void placeAsker::showEvent(QShowEvent *)
......
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