diff options
author | smatz <smatz@openttd.org> | 2009-04-07 00:05:44 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-04-07 00:05:44 +0000 |
commit | 1eeb1d6ceeb65ac95efdc58a4f8e4dc555a25ca0 (patch) | |
tree | 4a06a98a051194d267a557f8acc628333ce89a12 /src/strings.cpp | |
parent | c738978dae5eb8880d062d1cb815b19236d11a5e (diff) | |
download | openttd-1eeb1d6ceeb65ac95efdc58a4f8e4dc555a25ca0.tar.xz |
(svn r15965) -Change: use recent Czech language for plural form (it has been official for years anyway)
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index f3179573b..7cf2d730a 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -439,7 +439,7 @@ static int DeterminePluralForm(int64 count) /* Three forms, special cases for numbers ending in 1 and 2, 3, 4, except those ending in 1[1-4] * Used in: - * Croatian, Czech, Russian, Slovak, Ukrainian */ + * Croatian, Russian, Slovak, Ukrainian */ case 6: return n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2; @@ -460,6 +460,12 @@ static int DeterminePluralForm(int64 count) * Icelandic */ case 9: return n % 10 == 1 && n % 100 != 11 ? 0 : 1; + + /* Three forms, special cases for one and 2, 3, or 4 + * Used in: + * Czech */ + case 10: + return n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2; } } |