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

Tooltips does not handle pluralization correctly #58

Open
rob006 opened this issue Mar 4, 2019 · 0 comments
Open

Tooltips does not handle pluralization correctly #58

rob006 opened this issue Mar 4, 2019 · 0 comments

Comments

@rob006
Copy link

rob006 commented Mar 4, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant