8000 bug #16528 [Translation] Add support for Armenian pluralization. (mar… · symfony/symfony@ec39f9d · GitHub
[go: up one dir, main page]

Skip to content

Commit ec39f9d

Browse files
committed
bug #16528 [Translation] Add support for Armenian pluralization. (marcosdsanchez)
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes #16528). Discussion ---------- [Translation] Add support for Armenian pluralization. According to http://www.unicode.org/cldr/charts/27/supplemental/language_plural_rules.html#hy Armenian has 2 forms of pluralization for cardinal numbers. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A Commits ------- 5f1980b The following change adds support for Armenian pluralization.
2 parents ab3c8f8 + 5f1980b commit ec39f9d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Component/Translation/PluralizationRules.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public static function get($number, $locale)
132132
case 'fr':
133133
case 'gun':
134134
case 'hi':
135+
case 'hy':
135136
case 'ln':
136137
case 'mg':
137138
case 'nso':

src/Symfony/Component/Translation/Tests/PluralizationRulesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function successLangcodes()
6161
{
6262
return array(
6363
array('1', array('ay','bo', 'cgg','dz','id', 'ja', 'jbo', 'ka','kk','km','ko','ky')),
64-
array('2', array('nl', 'fr', 'en', 'de', 'de_GE')),
64+
array('2', array('nl', 'fr', 'en', 'de', 'de_GE', 'hy', 'hy_AM')),
6565
array('3', array('be','bs','cs','hr')),
6666
array('4', array('cy','mt', 'sl')),
6767
array('5', array()),

0 commit comments

Comments
 (0)
0