# Arabic plural forms are not being used

**URL:** https://meta.discourse.org/t/arabic-plural-forms-are-not-being-used/49291
**Category:** Translations
**Created:** [2016年八月26日 18:56 UTC](https://meta.discourse.org/t/arabic-plural-forms-are-not-being-used/49291 "2016-08-26T18:56:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![SafaAlfulaij](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/safaalfulaij/32/120867_2.png) [@SafaAlfulaij](https://meta.discourse.org/u/SafaAlfulaij)
#### Post date: [2016年八月26日 18:56 UTC](https://meta.discourse.org/t/arabic-plural-forms-are-not-being-used/49291/1 "2016-08-26T18:56:23Z")

</div>

There is a problem with Arabic plural forms, as the only used forms are "one" and "other", while there are a total of 6 forms! For example (F:Form): F\_zero: A F\_one: B F\_two: C f\_few: D f\_many: F f\_other: F

“other” is selected for count=2 while there is a form for it (two) and it’s not used (And it has a translation).

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2016年八月26日 19:07 UTC](https://meta.discourse.org/t/arabic-plural-forms-are-not-being-used/49291/2 "2016-08-26T19:07:15Z")

</div>

On first glance everything looks fine.

Can you give an example for a string where the pluralization doesn’t work? What text is shown and what would you expect instead? A screenshot would help too.

---

<div class="post-metadata">

### Author: ![SafaAlfulaij](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/safaalfulaij/32/120867_2.png) [@SafaAlfulaij](https://meta.discourse.org/u/SafaAlfulaij)
#### Post date: [2016年八月26日 19:20 UTC](https://meta.discourse.org/t/arabic-plural-forms-are-not-being-used/49291/3 "2016-08-26T19:20:36Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/a/3/a3427b33dec95d016b3559714aaed522ab87fe05.png)

The translation for the string is (Form is in brackets):
"لا إعجابات" (zero) "إعجاب واحد" (one) "إعجابان" (two) "{{count}} إعجابات" (few) "{{count}} إعجابا" (many) "{{count}} إعجاب" (other)
As you see, in the green box the "one" form is used (1 like) In the red box, the "other" form is used while it should be the "two" (2 likes)

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2016年八月26日 19:36 UTC](https://meta.discourse.org/t/arabic-plural-forms-are-not-being-used/49291/4 "2016-08-26T19:36:02Z")

</div>

I see. The [pluralization rules for the client](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/locales/ar.js.erb) are missing.

In case you want to create a pull request, take a look at this example (of course the pluralization rules for Arabic are different):  
[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/locales/cs.js.erb](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/locales/cs.js.erb)

The pluralization rules for the server look fine:

> <https://github.com/discourse/discourse/blob/main/config/locales/plurals.rb#L7-L7>

---

<div class="post-metadata">

### Author: ![SafaAlfulaij](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/safaalfulaij/32/120867_2.png) [@SafaAlfulaij](https://meta.discourse.org/u/SafaAlfulaij)
#### Post date: [2016年八月26日 19:56 UTC](https://meta.discourse.org/t/arabic-plural-forms-are-not-being-used/49291/5 "2016-08-26T19:56:42Z")

</div>

Done! [Add Arabic Pluralization Rules for Client by SafaAlfulaij · Pull Request #4423 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/4423)  
Thanks! 🙂

---

<div class="post-metadata">

### Author: ![SafaAlfulaij](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/safaalfulaij/32/120867_2.png) [@SafaAlfulaij](https://meta.discourse.org/u/SafaAlfulaij)
#### Post date: [2016年八月28日 21:47 UTC](https://meta.discourse.org/t/arabic-plural-forms-are-not-being-used/49291/6 "2016-08-28T21:47:57Z")

</div>

So, Ping? 😇
