# Internal Server Error caused by I18n::InvalidPluralizationData

**URL:** <https://meta.discourse.org/t/internal-server-error-caused-by-i18n-invalidpluralizationdata/33573>\
**Category:** Bug\
**Created:** [September 22, 2015, 10:34am UTC](https://meta.discourse.org/t/internal-server-error-caused-by-i18n-invalidpluralizationdata/33573 "2015-09-22T10:34:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 22, 2015, 11:56am UTC](https://meta.discourse.org/t/internal-server-error-caused-by-i18n-invalidpluralizationdata/33573/3 "2015-09-22T11:56:36Z")

</div>

Well, actually it’s a problem in the English locale file that’s causing this.

`server.en.yml` contains the `zero`, `one` and `other` keys, but according to the [official pluralization rules](http://www.unicode.org/cldr/charts/25/supplemental/language_plural_rules.html#en) only `one` and `other` are allowed. It currently works for English (and all the other languages that use only `one` and `other`) because the Ruby I18n module has a [special case for the `zero` key](https://github.com/svenfuchs/i18n/blob/master/lib/i18n/backend/base.rb#L133-L135).

> <https://github.com/discourse/discourse/blob/main/config/locales/server.en.yml#L156-L159>

Unfortunately Transifex doesn’t handle the special case of `zero`, so it doesn’t detect any key as pluralized if there exists anything else than `one` and `other` in the English locale files.

That’s the reason why the `server.cs.yml` contains the `zero`, `one` and `other` keys instead of the [required `one`, `few` and `other`](https://github.com/discourse/discourse/blob/master/config/locales/plurals.rb#L16).

> <https://github.com/discourse/discourse/blob/main/config/locales/server.cs.yml#L110-L113>

There’s currently no easy way to fix this. I was planning on proposing a few solutions to this problem in the next few days.

---

_[View the full topic](https://meta.discourse.org/t/internal-server-error-caused-by-i18n-invalidpluralizationdata/33573)._
