• Sasha Sorokin's avatar
    Avoid using pluralize on moderation pages (#12589) · d5b7a4b1
    Sasha Sorokin authored
    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
    d5b7a4b1
Name
Last commit
Last update
.circleci Loading commit data...
.dependabot Loading commit data...
.github Loading commit data...
app Loading commit data...
bin Loading commit data...
config Loading commit data...
db Loading commit data...
dist Loading commit data...
lib Loading commit data...
log Loading commit data...
nanobox Loading commit data...
public Loading commit data...
spec Loading commit data...
streaming Loading commit data...
vendor Loading commit data...
.buildpacks Loading commit data...
.codeclimate.yml Loading commit data...
.dockerignore Loading commit data...
.editorconfig Loading commit data...
.env.nanobox Loading commit data...
.env.production.sample Loading commit data...
.env.test Loading commit data...
.env.vagrant Loading commit data...
.eslintignore Loading commit data...
.eslintrc.js Loading commit data...
.foreman Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.haml-lint.yml Loading commit data...
.nanoignore Loading commit data...
.nvmrc Loading commit data...
.profile Loading commit data...
.rspec Loading commit data...
.rubocop.yml Loading commit data...
.ruby-version Loading commit data...
.sass-lint.yml Loading commit data...
.slugignore Loading commit data...
.yarnclean Loading commit data...
AUTHORS.md Loading commit data...
Aptfile Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
Capfile Loading commit data...
Dockerfile Loading commit data...
Gemfile Loading commit data...
Gemfile.lock Loading commit data...
LICENSE Loading commit data...
Procfile Loading commit data...
Procfile.dev Loading commit data...
README.md Loading commit data...
Rakefile Loading commit data...
Vagrantfile Loading commit data...
app.json Loading commit data...
babel.config.js Loading commit data...
boxfile.yml Loading commit data...
config.ru Loading commit data...
crowdin.yml Loading commit data...
docker-compose.yml Loading commit data...
package.json Loading commit data...
postcss.config.js Loading commit data...
priv-config Loading commit data...
scalingo.json Loading commit data...
yarn.lock Loading commit data...