1
0
Fork 0

Add: new plural form for Romanian translation (#8936)

pull/9160/head
Nicolae Crefelean 2021-04-10 17:33:27 +02:00 committed by Charles Pigott
parent 4cfcbcfbaa
commit a8a838c24c
2 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,7 @@
##name Romanian ##name Romanian
##ownname Românӑ ##ownname Românӑ
##isocode ro_RO ##isocode ro_RO
##plural 0 ##plural 14
##textdir ltr ##textdir ltr
##digitsep . ##digitsep .
##digitsepcur . ##digitsepcur .

View File

@ -620,6 +620,12 @@ static int DeterminePluralForm(int64 count, int plural_form)
* Scottish Gaelic */ * Scottish Gaelic */
case 13: case 13:
return ((n == 1 || n == 11) ? 0 : (n == 2 || n == 12) ? 1 : ((n > 2 && n < 11) || (n > 12 && n < 20)) ? 2 : 3); 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;
} }
} }