Fix stats messages
authorunc0rr
Sun, 07 Nov 2010 21:23:29 +0300
changeset 4192 67e1a683e9b3
parent 4191 2a92c7f5c058
child 4193 a8672ff05409
Fix stats messages Add ru description
QTfrontend/statsPage.cpp
share/hedgewars/Data/misc/hwengine.desktop.in
--- a/QTfrontend/statsPage.cpp	Sun Nov 07 13:20:06 2010 -0500
+++ b/QTfrontend/statsPage.cpp	Sun Nov 07 21:23:29 2010 +0300
@@ -225,21 +225,21 @@
         case 's' : {
             int i = info.indexOf(' ');
             int num = info.left(i).toInt();
-            QString message = "<p><img src=\":/res/StatsMostSelfDamage.png\"> " + PageGameStats::tr("<b>%1</b> thought it's good to shoot his own hedgehogs with <b>%2</b> pts.", "", num).arg(info.mid(i + 1), num) + "</p>";
+            QString message = "<p><img src=\":/res/StatsMostSelfDamage.png\"> " + PageGameStats::tr("<b>%1</b> thought it's good to shoot his own hedgehogs with <b>%2</b> pts.", "", num).arg(info.mid(i + 1)).arg(num) + "</p>";
             AddStatText(message);
             break;
         }
         case 'S' : {
             int i = info.indexOf(' ');
             int num = info.left(i).toInt();
-            QString message = "<p><img src=\":/res/StatsSelfKilled.png\"> " + PageGameStats::tr("<b>%1</b> killed <b>%2</b> of his own hedgehogs.", "", num).arg(info.mid(i + 1), num) + "</p>";
+            QString message = "<p><img src=\":/res/StatsSelfKilled.png\"> " + PageGameStats::tr("<b>%1</b> killed <b>%2</b> of his own hedgehogs.", "", num).arg(info.mid(i + 1)).arg(num) + "</p>";
             AddStatText(message);
             break;
         }
         case 'B' : {
             int i = info.indexOf(' ');
             int num = info.left(i).toInt();
-            QString message = "<p><img src=\":/res/StatsSkipped.png\"> " + PageGameStats::tr("<b>%1</b> was scared and skipped turn <b>%2</b> times.", "", num).arg(info.mid(i + 1), num) + "</p>";
+            QString message = "<p><img src=\":/res/StatsSkipped.png\"> " + PageGameStats::tr("<b>%1</b> was scared and skipped turn <b>%2</b> times.", "", num).arg(info.mid(i + 1)).arg(num) + "</p>";
             AddStatText(message);
             break;
         }
--- a/share/hedgewars/Data/misc/hwengine.desktop.in	Sun Nov 07 13:20:06 2010 -0500
+++ b/share/hedgewars/Data/misc/hwengine.desktop.in	Sun Nov 07 21:23:29 2010 +0300
@@ -11,6 +11,7 @@
 GenericName[es]=Motor del juego Hedgewars, reproduce demos y partidas guardadas
 GenericName[it]=Motore grafico di Hedgewars, riproduce le demo e riprende le partite salvate
 GenericName[pt]=Motor de jogo Hedgewars, para reprodução de jogos guardados e demos
+GenericName[ru]=Движок Hedgewars для проигрывания сохранённых игр и демок
 Icon=hedgewars.png
 Exec=${CMAKE_INSTALL_PREFIX}/bin/hwengine ${HEDGEWARS_DATADIR}/hedgewars/Data %f
 Path=/tmp