8000 bug #27997 Serbo-Croatian has Serbian plural rule (kylekatarnls) · symfony/symfony@286996c · GitHub
[go: up one dir, main page]

Skip to content

Commit 286996c

Browse files
committed
bug #27997 Serbo-Croatian has Serbian plural rule (kylekatarnls)
This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes #27997). Discussion ---------- Serbo-Croatian has Serbian plural rule | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Enable correct plural on Serbo-Croatian translations. Could be safely merged in versions branches. Commits ------- 4ff0f95 Serbo-Croatian has Serbian plural rule
2 parents 08a49bc + 4ff0f95 commit 286996c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Translation/PluralizationRules.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public static function get($number, $locale)
144144
case 'bs':
145145
case 'hr':
146146
case 'ru':
147+
case 'sh':
147148
case 'sr':
148149
case 'uk':
149150
return ((1 == $number % 10) && (11 != $number % 100)) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 >= 20))) ? 1 : 2);

0 commit comments

Comments
 (0)
0