Provide translator context for a few less obvious engine strings
authorWuzzy <almikes@aol.com>
Thu, 21 Sep 2017 17:35:08 +0200
changeset 12479 42da9d8d82ab
parent 12478 faed28f815c7
child 12480 d7414e3b3bbb
Provide translator context for a few less obvious engine strings
QTfrontend/game.cpp
QTfrontend/model/roomslistmodel.cpp
QTfrontend/ui/page/pageeditteam.cpp
QTfrontend/ui/page/pagegamestats.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());
--- 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();
--- 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);
--- 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("");
             }