# HG changeset patch # User Wuzzy # Date 1506008108 -7200 # Node ID 42da9d8d82abf5f46616a2578a75cf4c5f7e6f2f # Parent faed28f815c78f8e055eab359da23b5c8a06e65b Provide translator context for a few less obvious engine strings diff -r faed28f815c7 -r 42da9d8d82ab QTfrontend/game.cpp --- a/QTfrontend/game.cpp Thu Sep 21 16:53:07 2017 +0200 +++ b/QTfrontend/game.cpp Thu Sep 21 17:35:08 2017 +0200 @@ -386,6 +386,8 @@ arguments << "--user-prefix"; arguments << cfgdir->absolutePath(); arguments << "--locale"; + // TODO: Don't bother translators with this nonsense and detect this file automatically. + //: IMPORTANT: This text has a special meaning, do not translate it directly. This is the file name of translation files for the game engine, found in Data/Locale/. Usually, you replace “en” with the ISO-639-1 language code of your language. arguments << tr("en.txt"); arguments << "--frame-interval"; arguments << QString::number(config->timerInterval()); diff -r faed28f815c7 -r 42da9d8d82ab QTfrontend/model/roomslistmodel.cpp --- a/QTfrontend/model/roomslistmodel.cpp Thu Sep 21 16:53:07 2017 +0200 +++ b/QTfrontend/model/roomslistmodel.cpp Thu Sep 21 17:35:08 2017 +0200 @@ -32,17 +32,18 @@ QAbstractTableModel(parent), c_nColumns(9) { - m_headerData = - QStringList() - << tr("In progress") - << tr("Room Name") - << tr("C") - << tr("T") - << tr("Owner") - << tr("Map") - << tr("Script") - << tr("Rules") - << tr("Weapons"); + m_headerData = QStringList(); + m_headerData << tr("In progress"); + m_headerData << tr("Room Name"); + //: Caption of the column for the number of connected clients in the list of rooms + m_headerData << tr("C"); + //: Caption of the column for the number of teams in the list of rooms + m_headerData << tr("T"); + m_headerData << tr("Owner"); + m_headerData << tr("Map"); + m_headerData << tr("Script"); + m_headerData << tr("Rules"); + m_headerData << tr("Weapons"); m_staticMapModel = DataManager::instance().staticMapModel(); m_missionMapModel = DataManager::instance().missionMapModel(); diff -r faed28f815c7 -r 42da9d8d82ab QTfrontend/ui/page/pageeditteam.cpp --- a/QTfrontend/ui/page/pageeditteam.cpp Thu Sep 21 16:53:07 2017 +0200 +++ b/QTfrontend/ui/page/pageeditteam.cpp Thu Sep 21 17:35:08 2017 +0200 @@ -404,6 +404,7 @@ { int cpuLevel = 6 - index; CPUFlag->setPixmap(pixCPU[cpuLevel - 1]); + //: Name of a flag for computer-controlled enemies. %1 is replaced with the computer level CPUFlagLabel->setText(tr("CPU %1").arg(cpuLevel)); } hboxCPUWidget->setHidden(index == 0); diff -r faed28f815c7 -r 42da9d8d82ab QTfrontend/ui/page/pagegamestats.cpp --- a/QTfrontend/ui/page/pagegamestats.cpp Thu Sep 21 16:53:07 2017 +0200 +++ b/QTfrontend/ui/page/pagegamestats.cpp Thu Sep 21 17:35:08 2017 +0200 @@ -302,8 +302,10 @@ QString message; QString killstring; if(kindOfPoints.compare("") == 0) { + //: Number of kills in stats screen, written after the team name killstring = PageGameStats::tr("(%1 kill)", "", kills).arg(kills); } else { + //: For custom number of points in the stats screen, written after the team name. %1 is the number, %2 is the word. Example: “4 points” killstring = PageGameStats::tr("(%1 %2)", "", kills).arg(kills).arg(kindOfPoints); kindOfPoints = QString(""); }