summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-01-12 17:21:30 +0000
committerfrosch <frosch@openttd.org>2013-01-12 17:21:30 +0000
commitfea76bbb78b335c58f99e03d8906372cb1d895be (patch)
tree68805186218b1c7356e16e03aa5657b241142940
parent28f22a46bca8494e7add7fa647f63d5cdbb994cd (diff)
downloadopenttd-fea76bbb78b335c58f99e03d8906372cb1d895be.tar.xz
(svn r24910) -Fix: [strgen] Description of plural form 3 was incorrect.
-rw-r--r--src/strings.cpp1
-rw-r--r--src/table/strgen_tables.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 45e1d5597..0fd9b5b41 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -539,6 +539,7 @@ static int DeterminePluralForm(int64 count, int plural_form)
return n > 1 ? 1 : 0;
/* Three forms: special cases for 0, and numbers ending in 1 except when ending in 11.
+ * Note: Cases are out of order for hysterical reasons. '0' is last.
* Used in:
* Latvian */
case 3:
diff --git a/src/table/strgen_tables.h b/src/table/strgen_tables.h
index 14de3a4c3..ed405aa48 100644
--- a/src/table/strgen_tables.h
+++ b/src/table/strgen_tables.h
@@ -164,7 +164,7 @@ static const PluralForm _plural_forms[] = {
{ 2, "Two forms: special case for 1.", "\"1\" \"other\"" },
{ 1, "Only one form.", "\"other\"" },
{ 2, "Two forms: special case for 0 to 1.", "\"0..1\" \"other\"" },
- { 3, "Three forms: special cases for 0, and numbers ending in 1 except when ending in 11.", "\"0\" \"1,21,31,...\" \"other\"" },
+ { 3, "Three forms: special cases for 0, and numbers ending in 1 except when ending in 11.", "\"1,21,31,...\" \"other\" \"0\"" },
{ 5, "Five forms: special cases for 1, 2, 3 to 6, and 7 to 10.", "\"1\" \"2\" \"3..6\" \"7..10\" \"other\"" },
{ 3, "Three forms: special cases for numbers ending in 1 except when ending in 11, and 2 to 9 except when ending in 12 to 19.", "\"1,21,31,...\" \"2..9,22..29,32..39,...\" \"other\"" },
{ 3, "Three forms: special cases for numbers ending in 1 except when ending in 11, and 2 to 4 except when ending in 12 to 14.", "\"1,21,31,...\" \"2..4,22..24,32..34,...\" \"other\"" },