Skip to content

Commit

Permalink
Add: new plural form for Romanian translation (OpenTTD#8936)
Browse files Browse the repository at this point in the history
  • Loading branch information
kneekoo committed Apr 10, 2021
1 parent 5a14bf3 commit d4c3d01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lang/romanian.txt
@@ -1,7 +1,7 @@
##name Romanian
##ownname Românӑ
##isocode ro_RO
##plural 0
##plural 14
##textdir ltr
##digitsep .
##digitsepcur .
Expand Down
6 changes: 6 additions & 0 deletions src/strings.cpp
Expand Up @@ -628,6 +628,12 @@ static int DeterminePluralForm(int64 count, int plural_form)
* Scottish Gaelic */
case 13:
return ((n == 1 || n == 11) ? 0 : (n == 2 || n == 12) ? 1 : ((n > 2 && n < 11) || (n > 12 && n < 20)) ? 2 : 3);

/* Three forms: special cases for 1, 0 and numbers ending in 01 to 19.
* Used in:
* Romanian */
case 14:
return n == 1 ? 0 : (n == 0 || (n % 100 > 0 && n % 100 < 20)) ? 1 : 2;
}
}

Expand Down

0 comments on commit d4c3d01

Please sign in to comment.