8000 Serbo-Croatian has Serbian plural rule by kylekatarnls · Pull Request #27997 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Serbo-Croatian has Serbian plural rule #27997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Serbo-Croatian has Serbian plural rule
  • Loading branch information
kylekatarnls authored and fabpot committed Jul 19, 2018
commit 4ff0f951be67af1be5d2830244e707859ce9becd
1 change: 1 addition & 0 deletions src/Symfony/Component/Translation/PluralizationRules.php
Expand Up
Original file line number Diff line number Diff line change
@@ -144,6 +144,7 @@ public static function get($number, $locale)
case 'bs':
case 'hr':
case 'ru':
case 'sh':
case 'sr':
case 'uk':
return ((1 == $number % 10) && (11 != $number % 100)) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 >= 20))) ? 1 : 2);
Expand Down
0