]> cat aescling's git repositories - mastodon.git/commit
Avoid using pluralize on moderation pages (#12589)
authorSasha Sorokin <dafri.nochiterov8@gmail.com>
Thu, 12 Dec 2019 18:50:23 +0000 (01:50 +0700)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 12 Dec 2019 18:50:23 +0000 (19:50 +0100)
commitd5b7a4b116d37e8b87f3ed9ebdc6adf07a088766
treeb013325517a9d4067153f20be453fbe6667d2815
parent1c1028321795461cb72a60bb7bc1e3479bb21bb9
Avoid using pluralize on moderation pages (#12589)

Pluralize function from Rails framework does not work with other
languages than English, moreover it does not even work properly with
English [1]. Not that the latest applies to this context, it's just
a sign that we best to avoid this function, especially when there are
more reliable ways.

This commit changes how reports pages generated in order to avoid usage
of pluralize function, replacing it with default translation function,
called with given counter. On top of that, we have to make strings
pluralizable, so have to change locale files.

[1]: https://medium.com/@anna7/b3927de2ca8e#6a60
47 files changed:
app/views/admin/reports/index.html.haml
app/views/admin/reports/show.html.haml
config/locales/ar.yml
config/locales/ca.yml
config/locales/co.yml
config/locales/cs.yml
config/locales/cy.yml
config/locales/da.yml
config/locales/de.yml
config/locales/el.yml
config/locales/en.yml
config/locales/en_GB.yml
config/locales/eo.yml
config/locales/es-AR.yml
config/locales/es.yml
config/locales/et.yml
config/locales/eu.yml
config/locales/fa.yml
config/locales/fi.yml
config/locales/fr.yml
config/locales/gl.yml
config/locales/hu.yml
config/locales/id.yml
config/locales/it.yml
config/locales/ja.yml
config/locales/ka.yml
config/locales/kk.yml
config/locales/ko.yml
config/locales/lt.yml
config/locales/ms.yml
config/locales/nl.yml
config/locales/oc.yml
config/locales/pl.yml
config/locales/pt-BR.yml
config/locales/pt-PT.yml
config/locales/ru.yml
config/locales/sk.yml
config/locales/sl.yml
config/locales/sq.yml
config/locales/sr.yml
config/locales/sv.yml
config/locales/th.yml
config/locales/tr.yml
config/locales/uk.yml
config/locales/zh-CN.yml
config/locales/zh-HK.yml
config/locales/zh-TW.yml