# Polls labels Russian pluralization missing translations

**URL:** https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235
**Category:** Support
**Created:** [June 20, 2015, 4:00am UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235 "2015-06-20T04:00:51Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![kuchaev\_iv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuchaev_iv/32/114921_2.png) [@kuchaev\_iv](https://meta.discourse.org/u/kuchaev_iv)
#### Post date: [June 20, 2015, 4:00am UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/1 "2015-06-20T04:00:51Z")

</div>

Already reported

![](https://global.discourse-cdn.com/meta/original/3X/1/5/1577120e258185f66a2d935ae0186daa9e6974de.png)

The core has some same lables like new posts counter in main menu with the same bug.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 20, 2015, 4:52am UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/2 "2015-06-20T04:52:36Z")

</div>

Is this a bug, or simply not translated yet?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [June 20, 2015, 5:33am UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/3 "2015-06-20T05:33:35Z")

</div>

I may have missed it, but I couldn’t find “few” anywhere in the plugin.  
Closest I could find was in the plugins clients.\_\_.yml files eg.

```plaintext
en:
  js:
    poll:
      voters:
        zero: "voters"
        one: "voter"
        other: "voters"

```

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 20, 2015, 5:36am UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/4 "2015-06-20T05:36:24Z")

</div>

Pluralization is weird, try looking at crazy welsh for example

This is just a missing translation, there is no concept of “few” # like there is in Russian in English

---

<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: [June 20, 2015, 8:01am UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/5 "2015-06-20T08:01:43Z")

</div>

> [@sam](#):
>
> This is just a missing translation

But it’s not possible to translate those strings in Transifex. I guess we have to figure out if this is a bug in Transifex and hope that they fix it someday or if something can/should be done with the translation files in Discourse.

[https://meta.discourse.org/t/a-better-poll-bar-chart-feature/28008/91?u=gerhard](https://meta.discourse.org/t/a-better-poll-bar-chart-feature/28008/91)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 20, 2015, 8:10am UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/6 "2015-06-20T08:10:15Z")

</div>

Hmmm do we even ship polls to transifex?

---

<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: [June 20, 2015, 8:33am UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/7 "2015-06-20T08:33:07Z")

</div>

Yes, the locale files of the poll plugin are available on Transifex.  
 ![](https://global.discourse-cdn.com/meta/optimized/3X/b/c/bcc42c13007ab35bdb1638d35e3c5589676db141_2_690x83.png)

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [June 20, 2015, 4:24pm UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/8 "2015-06-20T16:24:04Z")

</div>

But do they even have a “few” property?

i still haven’t been able to find where that is coming from.

---

<div class="post-metadata">

### Author: ![kuchaev\_iv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuchaev_iv/32/114921_2.png) [@kuchaev\_iv](https://meta.discourse.org/u/kuchaev_iv)
#### Post date: [June 20, 2015, 5:41pm UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/9 "2015-06-20T17:41:56Z")

</div>

> [@gerhard](#):
>
> zero, one and other

> **[Home | Transifex Help Center](https://help.transifex.com/en/)**
>
> Transifex Help Center

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 20, 2015, 10:11pm UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/10 "2015-06-20T22:11:38Z")

</div>

Some languages have differing pluralization rules

Eg Arabic nplurals == 6

> **[Plural Forms — Localization Guide 0.9.0 documentation](http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html)**

You can’t fit 6 buckets into 3 buckets

We need to figure out how to communicate this to transifex cc @neil @techAPJ

---

<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: [June 20, 2015, 10:50pm UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/11 "2015-06-20T22:50:35Z")

</div>

> [@Mittineague](#):
>
> But do they even have a “few” property?
> 
> i still haven’t been able to find where that is coming from.

It’s coming from the pluralization rules:  
[https://github.com/discourse/discourse/blob/master/lib/javascripts/locale/ru.js](https://github.com/discourse/discourse/blob/master/lib/javascripts/locale/ru.js)

The Russian locale uses `one`, `few` and `other`.  
The English locale uses `one` and `other`.

Transifex doesn’t detect a string as pluralized when the English locale file contains pluralizations different from `one` and `other` (e.g. it uses `zero`). That’s why `few` is not available in Transifex for those strings in the Russian locale.

> [@sam](#):
>
> We need to figure out how to communicate this to transifex

I don’t think there’s a need for that. They already support up to 6 plural forms and all the supported languages should be configured correctly on their side.  
If I’m not mistaken removing all the `zero` and `many` keys from the English locale should be enough.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 20, 2015, 10:57pm UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/12 "2015-06-20T22:57:48Z")

</div>

> [@gerhard](#):
>
> If I’m not mistaken removing all the zero and many keys from the English locale should be enough.

Then we should fix our scripts to do that @techAPJ

---

<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: [June 27, 2015, 1:11pm UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/13 "2015-06-27T13:11:55Z")

</div>

I submitted a PR that should fix this as soon as the translations are pushed to Transifex.  
[https://github.com/discourse/discourse/pull/3574](https://github.com/discourse/discourse/pull/3574)

BTW: Should the following keys be pluralized too?  
[https://github.com/gschlager/discourse/blob/patch-2/plugins/poll/config/locales/client.en.yml#L30-L34](https://github.com/gschlager/discourse/blob/patch-2/plugins/poll/config/locales/client.en.yml#L30-L34)  
If I’m not mistaken count will never be 1 for those keys, so the missing pluralization doesn’t matter for languages like English or German. But I imagine it could be a problem for languages like Russian…

> [@sam](#):
>
> Then we should fix our scripts to do that @techAPJ

I messaged the Transifex support and asked if they can change the algorithm that detects pluralization to support the special case of “zero”. If they can’t do that we’d need to rename all “zero” keys in the locale files and change the calls to `I18n.t` for those keys… There’s only one [“many” key](https://github.com/discourse/discourse/blob/db066b5d3fcdfc81b9f82a3816400302604e1556/config/locales/server.en.yml#L73-L75) in the locale files and that’s a [valid one](https://github.com/rails/rails/pull/11658).

---

<div class="post-metadata">

### Author: ![kuchaev\_iv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuchaev_iv/32/114921_2.png) [@kuchaev\_iv](https://meta.discourse.org/u/kuchaev_iv)
#### Post date: [July 9, 2015, 9:13am UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/14 "2015-07-09T09:13:32Z")

</div>

Any updates here? There are also the same issues in the main Russian 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: [July 9, 2015, 10:07am UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/15 "2015-07-09T10:07:11Z")

</div>

Unfortunately not. My PR hasn’t been merged yet.  
I’m not sure how the team intends to fix the pluralization problems in the main translation files.

@kuchaev_iv Can you take a look at the following strings? Should they be pluralized too in order to create a proper Russian translation?

> <https://github.com/discourse/discourse/blob/main/plugins/poll/config/locales/client.en.yml#L23-L26>

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [February 24, 2017, 11:00am UTC](https://meta.discourse.org/t/polls-labels-russian-pluralization-missing-translations/30235/16 "2017-02-24T11:00:29Z")

</div>


