turns out russian (and other balkan languages?) have only 3 plural forms

This commit is contained in:
Thibault Duplessis 2017-08-16 17:05:54 -05:00
parent 8967820085
commit 7a1cbabe5f

View file

@ -46,7 +46,13 @@ private object I18nQuantity {
val rem10 = c % 10
if (rem10 == 1 && rem100 != 11) One
else if (rem10 >= 2 && rem10 <= 4 && !(rem100 >= 12 && rem100 <= 14)) Few
else if (rem10 == 0 || (rem10 >= 5 && rem10 <= 9) || (rem100 >= 11 && rem100 <= 14)) Many
/* android-i18n plural rules disagree with crowdin (and a native russian speaker)
* https://github.com/populov/android-i18n-plurals/blob/master/library/src/main/java/com/seppius/i18n/plurals/PluralRules_Balkan.java
* crowdin only has One, Few, Other
* We're going to stick with crowdin (and the native russian speaker) here
* Conversation: https://lichess.org/forum/lichess-feedback/help-translate-lichess#6
*/
// else if (rem10 == 0 || (rem10 >= 5 && rem10 <= 9) || (rem100 >= 11 && rem100 <= 14)) Many
else Other
}