Add a few translator comments to some not-so-obvious strings
authorWuzzy <Wuzzy2@mail.ru>
Thu, 22 Nov 2018 20:41:42 +0100
changeset 14279 20b08e59730d
parent 14278 64fd3da2e6dd
child 14280 3342358bc2c3
Add a few translator comments to some not-so-obvious strings
QTfrontend/main.cpp
QTfrontend/ui/page/pageoptions.cpp
QTfrontend/ui/page/pagescheme.cpp
--- a/QTfrontend/main.cpp	Thu Nov 22 20:59:23 2018 +0300
+++ b/QTfrontend/main.cpp	Thu Nov 22 20:41:42 2018 +0100
@@ -150,11 +150,19 @@
 "\n"
 "%8"
 "\n"
-).arg(HWApplication::tr("Usage", "command-line"))
-.arg(HWApplication::tr("OPTION", "command-line"))
-.arg(HWApplication::tr("CONNECTSTRING", "command-line"))
-.arg(HWApplication::tr("Options", "command-line"))
-.arg(HWApplication::tr("Display this help", "command-line"))
+).arg(
+//: “Usage” as in “how the command-line syntax works”. Shown when running “hedgewars --help” in command-line
+HWApplication::tr("Usage", "command-line")
+).arg(
+//: Name of a command-line argument, shown when running “hedgewars --help” in command-line. “OPTION” as in “command-line option”
+HWApplication::tr("OPTION", "command-line")
+).arg(
+//: Name of a command-line argument, shown when running “hedgewars --help” in command-line
+HWApplication::tr("CONNECTSTRING", "command-line")
+).arg(
+//: “Options” as in “command-line options”
+HWApplication::tr("Options", "command-line")
+).arg(HWApplication::tr("Display this help", "command-line"))
 .arg(HWApplication::tr("Custom path for configuration data and user data", "command-line"))
 .arg(HWApplication::tr("Custom path to the game data folder", "command-line"))
 .arg(HWApplication::tr("Hedgewars can use a %1 (e.g. \"%2\") to connect on start.", "command-line").arg(HWApplication::tr("CONNECTSTRING", "command-line")).arg(QString("hwplay://") + NETGAME_DEFAULT_SERVER));
--- a/QTfrontend/ui/page/pageoptions.cpp	Thu Nov 22 20:59:23 2018 +0300
+++ b/QTfrontend/ui/page/pageoptions.cpp	Thu Nov 22 20:41:42 2018 +0100
@@ -664,6 +664,7 @@
                 if(entryName.isEmpty())
                 {
                     // Show error and the locale identifier
+                    //: In the case of an error, this is shown in the language selection for a language with unknown name. %1 = language code
                     entryName = tr("MISSING LANGUAGE NAME [%1]").arg(lname);
                 }
                 CBLanguage->addItem(entryName, lname);
--- a/QTfrontend/ui/page/pagescheme.cpp	Thu Nov 22 20:59:23 2018 +0300
+++ b/QTfrontend/ui/page/pagescheme.cpp	Thu Nov 22 20:41:42 2018 +0100
@@ -172,6 +172,7 @@
     // Right
     QLabel * l;
 
+//: Description of the game scheme setting “Damage Modifier”. “Knockback” means how much hedgehogs and objects get pushed by explosions and other forces
     QString wtDamageModifier = tr("Overall damage and knockback in percent");
     QString wtTurnTime = tr("Turn time in seconds");
     QString wtInitHealth = tr("Initial health of hedgehogs");
@@ -458,6 +459,7 @@
     glBSLayout->addWidget(SB_AirMines,14,2,1,1);
 
     l = new QLabel(gbBasicSettings);
+//: Label of game scheme setting for the time you get after an attack
     l->setText(QLabel::tr("% Retreat Time"));
     l->setWhatsThis(wtGetAwayTime);
     l->setWordWrap(true);