# HG changeset patch # User Wuzzy # Date 1542915702 -3600 # Node ID 20b08e59730d587187bcccd49d40d542dbfddb80 # Parent 64fd3da2e6ddfd632a51489ff12282e143220f66 Add a few translator comments to some not-so-obvious strings diff -r 64fd3da2e6dd -r 20b08e59730d QTfrontend/main.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)); diff -r 64fd3da2e6dd -r 20b08e59730d QTfrontend/ui/page/pageoptions.cpp --- 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); diff -r 64fd3da2e6dd -r 20b08e59730d QTfrontend/ui/page/pagescheme.cpp --- 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);