# HG changeset patch
# User unc0rr
# Date 1289149174 -10800
# Node ID 4e3942f5827ceea3d43265daf12cf452d2a0fb8a
# Parent b970559af8fbc7f92fe0930c2de129eba758cf29
Fix i18n of plural forms
diff -r b970559af8fb -r 4e3942f5827c QTfrontend/statsPage.cpp
--- a/QTfrontend/statsPage.cpp Sun Nov 07 19:49:39 2010 +0300
+++ b/QTfrontend/statsPage.cpp Sun Nov 07 19:59:34 2010 +0300
@@ -177,57 +177,51 @@
team.Wins++; // should draws count as wins?
//team.SaveToFile(); // don't save yet
}
- break;
- }
-
+ break;
+ }
+
case 'P' : {
int i = info.indexOf(' ');
- playerPosition++;
- QString color = info.left(i);
- quint32 c = color.toInt();
- QColor clanColor = QColor(qRgb((c >> 16) & 255, (c >> 8) & 255, c & 255));
+ playerPosition++;
+ QString color = info.left(i);
+ quint32 c = color.toInt();
+ QColor clanColor = QColor(qRgb((c >> 16) & 255, (c >> 8) & 255, c & 255));
- QString playerinfo = info.mid(i + 1);
-
- i = playerinfo.indexOf(' ');
+ QString playerinfo = info.mid(i + 1);
+
+ i = playerinfo.indexOf(' ');
- QString kills = playerinfo.left(i);
- QString playername = playerinfo.mid(i + 1);
- QString image;
+ int kills = playerinfo.left(i).toInt();
+ QString playername = playerinfo.mid(i + 1);
+ QString image;
if (lastColor == c && playerPosition <= 2) playerPosition = 1;
- lastColor = c;
+ lastColor = c;
- switch (playerPosition)
- {
- case 1:
- image = "";
- break;
- case 2:
- image = "";
- break;
- case 3:
- image = "";
- break;
- default:
- image = "";
- break;
- }
+ switch (playerPosition)
+ {
+ case 1:
+ image = "";
+ break;
+ case 2:
+ image = "";
+ break;
+ case 3:
+ image = "";
+ break;
+ default:
+ image = "";
+ break;
+ }
QString message;
- QString killstring;
- if (kills.toInt() == 1)
- {
- killstring = PageGameStats::tr("(%1 kill)").arg(kills);
- } else {
- killstring = PageGameStats::tr("(%1 kills)").arg(kills);
- }
-
- message = QString("
%1 %2. %3 ").arg(image, QString::number(playerPosition), playername, clanColor.name()) + killstring + "
";
-
- labelGameRank->setText(labelGameRank->text() + message);
- break;
- }
+ QString killstring = PageGameStats::tr("(%1 kill)", "", kills).arg(kills);
+
+ message = QString("%1 %2. %3 ").arg(image, QString::number(playerPosition), playername, clanColor.name()) + killstring + "
";
+
+ labelGameRank->setText(labelGameRank->text() + message);
+ break;
+ }
case 's' : {
int i = info.indexOf(' ');
QString message = " " + PageGameStats::tr("%1 thought it's good to shoot his own hedgehogs with %2 pts.").arg(info.mid(i + 1), info.left(i)) + "
";
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_ar.ts
--- a/share/hedgewars/Data/Locale/hedgewars_ar.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_ar.ts Sun Nov 07 19:59:34 2010 +0300
@@ -365,13 +365,12 @@
-
+
-
-
-
-
-
+
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_bg.ts
--- a/share/hedgewars/Data/Locale/hedgewars_bg.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_bg.ts Sun Nov 07 19:59:34 2010 +0300
@@ -336,13 +336,12 @@
-
+
-
-
-
-
-
+
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_cs.ts
--- a/share/hedgewars/Data/Locale/hedgewars_cs.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_cs.ts Sun Nov 07 19:59:34 2010 +0300
@@ -339,13 +339,13 @@
-
+
-
-
-
-
-
+
+
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_de.ts
--- a/share/hedgewars/Data/Locale/hedgewars_de.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_de.ts Sun Nov 07 19:59:34 2010 +0300
@@ -377,13 +377,16 @@
Insgesamt fanden <b>%1</b> Igel ein trauriges Ende in dieser Runde.
-
+
- (%1 Kill)
+
+ (%1 Kill)
+
+
- (%1 Kills)
+ (%1 Kills)
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_en.ts
--- a/share/hedgewars/Data/Locale/hedgewars_en.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_en.ts Sun Nov 07 19:59:34 2010 +0300
@@ -371,13 +371,12 @@
A total of <b>%1</b> hedgehogs were killed during this round.
-
+
-
-
-
-
-
+
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_es.ts
--- a/share/hedgewars/Data/Locale/hedgewars_es.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_es.ts Sun Nov 07 19:59:34 2010 +0300
@@ -375,13 +375,16 @@
Un total de <b>%1</b> erizos murieron esta ronda.
-
+
- (%1 baja)
+
+ (%1 baja)
+
+
- (%1 bajas)
+ (%1 bajas)
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_fi.ts
--- a/share/hedgewars/Data/Locale/hedgewars_fi.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_fi.ts Sun Nov 07 19:59:34 2010 +0300
@@ -371,13 +371,16 @@
Yhteensä <b>%1</b> siiltä tapettiin tämän erän aikana.
-
+
- (%1 tappo)
+
+ (%1 tappo)
+
+
- (%1 tappoa)
+ (%1 tappoa)
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_fr.ts
--- a/share/hedgewars/Data/Locale/hedgewars_fr.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_fr.ts Sun Nov 07 19:59:34 2010 +0300
@@ -368,13 +368,12 @@
-
+
-
-
-
-
-
+
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_hu.ts
--- a/share/hedgewars/Data/Locale/hedgewars_hu.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_hu.ts Sun Nov 07 19:59:34 2010 +0300
@@ -363,13 +363,11 @@
-
+
-
-
-
-
-
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_it.ts
--- a/share/hedgewars/Data/Locale/hedgewars_it.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_it.ts Sun Nov 07 19:59:34 2010 +0300
@@ -372,13 +372,12 @@
-
+
-
-
-
-
-
+
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_ja.ts
--- a/share/hedgewars/Data/Locale/hedgewars_ja.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_ja.ts Sun Nov 07 19:59:34 2010 +0300
@@ -333,13 +333,11 @@
-
+
-
-
-
-
-
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_pl.ts
--- a/share/hedgewars/Data/Locale/hedgewars_pl.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_pl.ts Sun Nov 07 19:59:34 2010 +0300
@@ -380,13 +380,17 @@
W tej rundzie zostało zabitych <b>%1</b> jeży.
-
+
- (%1 zabity)
+
+ (%1 zabity)
+
+
+
- (%1 zabitych)
+ (%1 zabitych)
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_pt_BR.ts
--- a/share/hedgewars/Data/Locale/hedgewars_pt_BR.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_pt_BR.ts Sun Nov 07 19:59:34 2010 +0300
@@ -413,13 +413,16 @@
<b>%1</b> ouriços foram mortos neste round.
-
+
- (%1 morte)
+
+ (%1 morte)
+
+
- (%1 mortes)
+ (%1 mortes)
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_pt_PT.ts
--- a/share/hedgewars/Data/Locale/hedgewars_pt_PT.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_pt_PT.ts Sun Nov 07 19:59:34 2010 +0300
@@ -371,13 +371,16 @@
Um total de <b>%1</b> ouriços perderam a vida durante esta ronda.
-
+
- (%1 morto)
+
+ (%1 morto)
+
+
- (%1 mortos)
+ (%1 mortos)
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_ru.ts
--- a/share/hedgewars/Data/Locale/hedgewars_ru.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_ru.ts Sun Nov 07 19:59:34 2010 +0300
@@ -373,13 +373,13 @@
-
+
-
-
-
-
-
+
+
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_sk.ts
--- a/share/hedgewars/Data/Locale/hedgewars_sk.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_sk.ts Sun Nov 07 19:59:34 2010 +0300
@@ -373,13 +373,13 @@
-
+
-
-
-
-
-
+
+
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_sv.ts
--- a/share/hedgewars/Data/Locale/hedgewars_sv.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_sv.ts Sun Nov 07 19:59:34 2010 +0300
@@ -371,13 +371,16 @@
-
+
- (%1 död)
+
+ (%1 död)
+
+
- (%1 döda)
+ (%1 döda)
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_tr_TR.ts
--- a/share/hedgewars/Data/Locale/hedgewars_tr_TR.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_tr_TR.ts Sun Nov 07 19:59:34 2010 +0300
@@ -341,13 +341,11 @@
-
+
-
-
-
-
-
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_uk.ts
--- a/share/hedgewars/Data/Locale/hedgewars_uk.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_uk.ts Sun Nov 07 19:59:34 2010 +0300
@@ -373,13 +373,13 @@
-
+
-
-
-
-
-
+
+
+
+
+
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_zh_CN.ts
--- a/share/hedgewars/Data/Locale/hedgewars_zh_CN.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_zh_CN.ts Sun Nov 07 19:59:34 2010 +0300
@@ -366,13 +366,15 @@
本轮总共有 <b>%1</b> 只刺猬被击杀.</p>
-
+
- (%1 灭杀)
+
+ (%1 灭杀)
+
- (%1 灭杀)
+ (%1 灭杀)
diff -r b970559af8fb -r 4e3942f5827c share/hedgewars/Data/Locale/hedgewars_zh_TW.ts
--- a/share/hedgewars/Data/Locale/hedgewars_zh_TW.ts Sun Nov 07 19:49:39 2010 +0300
+++ b/share/hedgewars/Data/Locale/hedgewars_zh_TW.ts Sun Nov 07 19:59:34 2010 +0300
@@ -363,13 +363,11 @@
-
+
-
-
-
-
-
+
+
+