# Transifex error with plurals

**URL:** https://meta.discourse.org/t/transifex-error-with-plurals/128371
**Category:** Translations
**Created:** [September 12, 2019, 7:14am UTC](https://meta.discourse.org/t/transifex-error-with-plurals/128371 "2019-09-12T07:14:45Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![yaron](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaron/32/119812_2.png) [@yaron](https://meta.discourse.org/u/yaron)
#### Post date: [September 12, 2019, 7:14am UTC](https://meta.discourse.org/t/transifex-error-with-plurals/128371/1 "2019-09-12T07:14:45Z")

</div>

Hey, I have a problem with error checking in Transifex. I have the following strings:

- X month ago
- X months ago

Which in Hebrew become 4 cases:

- Lifney Hodesh
- Lifney Hodshayim
- Lifney X Hodashim
- Lifney X Hodashim

Since the parameter does not appear in the first two cases, I am getting an error. I can include the parameter anyway, but it will look odd.

---

<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: [September 12, 2019, 9:15am UTC](https://meta.discourse.org/t/transifex-error-with-plurals/128371/2 "2019-09-12T09:15:06Z")

</div>

Is there any chance you can make it work with including the number of months in all 4 cases? Maybe rewrite it a little bit to make it look less weird? Is this the only translation where it doesn’t make sense to include the `%{count}` in all 4 texts?

I’m reluctant to change that translation check from “error” to “warning” since it helps a lot with translation quality. I could temporarily disable the check, set the translations and re-enable it again if you tell me the 4 translations.

---

<div class="post-metadata">

### Author: ![yaron](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaron/32/119812_2.png) [@yaron](https://meta.discourse.org/u/yaron)
#### Post date: [September 12, 2019, 12:49pm UTC](https://meta.discourse.org/t/transifex-error-with-plurals/128371/3 "2019-09-12T12:49:15Z")

</div>

I can but it’ll look weird, why do you think changing it to warning is a problem?

Basically this check should be set to warning unless you’re using C which in this case you should enable the error because changing the parameters may break the build.

---

<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: [September 17, 2019, 12:54pm UTC](https://meta.discourse.org/t/transifex-error-with-plurals/128371/4 "2019-09-17T12:54:29Z")

</div>

> [@yaron](#):
>
> why do you think changing it to warning is a problem?

We had lots of problems with invalid translations in the past because translators messed up placeholders. That lead to broken builds and lots of support requests and I really don’t want to switch this back to warning.

Unfortunately there’s only one check (“Variable substitution specifiers (like “%{var}”) are preserved in the translations.”), otherwise I’d exclude the `%{count}` variable from this check.

The following offer still stands:

> [@gerhard](#):
>
> I could temporarily disable the check, set the translations and re-enable it again if you tell me the 4 translations.

Of course that won’t work if this problem affects lots of translations.

---

<div class="post-metadata">

### Author: ![yaron](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaron/32/119812_2.png) [@yaron](https://meta.discourse.org/u/yaron)
#### Post date: [September 18, 2019, 7:54am UTC](https://meta.discourse.org/t/transifex-error-with-plurals/128371/5 "2019-09-18T07:54:27Z")

</div>

So, do we need to schedule or is there an option for a permanent solutions?  
Transifex has a support forum, we can ask there if you think this should be solved in another way.

---

<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: [September 18, 2019, 7:56am UTC](https://meta.discourse.org/t/transifex-error-with-plurals/128371/6 "2019-09-18T07:56:50Z")

</div>

Please post the 4 translated strings I’ll take care of it. No need to schedule anything. I’ll see if we can find a better solution in the future.

---

<div class="post-metadata">

### Author: ![yaron](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaron/32/119812_2.png) [@yaron](https://meta.discourse.org/u/yaron)
#### Post date: [September 18, 2019, 8:01am UTC](https://meta.discourse.org/t/transifex-error-with-plurals/128371/7 "2019-09-18T08:01:14Z")

</div>

## Months

Singular: One month ago  
Two: Two months ago  
Few: %{count} months ago  
Many: %{count} months ago

## Years

Singular: One year ago  
Two: Two years ago  
Few: %{count} years ago  
Many: %{count} years ago

Thank you!

---

<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: [September 18, 2019, 8:06am UTC](https://meta.discourse.org/t/transifex-error-with-plurals/128371/8 "2019-09-18T08:06:56Z")

</div>

Done. `js.dates.medium_with_ago.x_months` and `js.dates.medium_with_ago.x_years` have been translated.
