Skip to content
This repository was archived by the owner on Jul 4, 2019. It is now read-only.
This repository was archived by the owner on Jul 4, 2019. It is now read-only.

Tooltips does not handle pluralization correctly #58

@rob006

Description

@rob006

title={item.votes() >= 1 ? item.votes() + ' ' + app.translator.trans('reflar-polls.forum.tooltip.vote') : item.votes() + ' ' + app.translator.trans('reflar-polls.forum.tooltip.votes')}

I'm trying to fix translations on my forum and it is impossible to translate these tooltips correctly. In Polish we have 3 forms for pluralization:

  • 1 głos
  • 2 głosy
  • 5 głosów

Using concatenation with only 2 forms (and weird condition - why item.votes() >= 1?) is extremely inflexible. It would be great to have real pluralization support for these labels: https://flarum.org/docs/extend/i18n.html#including-variables

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions