summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2008-03-25 17:39:02 +0000
committermaedhros <maedhros@openttd.org>2008-03-25 17:39:02 +0000
commit2023f5954122a7dbb66963cfaa54678719aae011 (patch)
tree28c066eb77e080efcc4b12c7cf16bbacb7f04ef0 /src/strings.cpp
parent6184676ec76e0512f51e98ec06d6f3b152411025 (diff)
downloadopenttd-2023f5954122a7dbb66963cfaa54678719aae011.tar.xz
(svn r12417) -Fix: Add a new plural rule for Icelandic.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 9338c99a4..32f2a297c 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -462,6 +462,12 @@ static int DeterminePluralForm(int64 cnt)
* Slovenian */
case 8:
return n % 100 == 1 ? 0 : n % 100 == 2 ? 1 : n % 100 == 3 || n % 100 == 4 ? 2 : 3;
+
+ /* Two forms; singular used for everything ending in 1 but not in 11.
+ * Used in:
+ * Icelandic */
+ case 9:
+ return n % 10 == 1 && n % 100 != 11 ? 0 : 1;
}
}