Js.filters.latest.title - incomplete pluralization in Transifex

As you can see in my PR 3817 I had to add a few conditional statements to some templates.

Before:

After:
https://github.com/gschlager/discourse/blob/1e6ff9a83a8c154045a7af28f8d9c0533c90bd15/app/assets/javascripts/admin/templates/modal/admin_badge_preview.hbs#L17-L23

I didn’t fix the remaining four translation keys since they probably need some changes to templates as well and you expressed your concern about those changes in your comment:

The client templates seem to be quite a bit longer with this patch and I thought zero was a nice feature.

Finding all occurrences of those js.filters keys seemed like a lot of work and I wasn’t sure if you even wanted me to change the templates the way I did.

What I need from you in order to finish my PR:

  • A decision regarding my template changes. Are they fine or should I solve this e.g. by using some kind of additional parameter with the i18n method?
  • Maybe some hints where the js.filters keys are used. Looks like the keys are concatenated most of the time which makes them hard to find.
2 « J'aime »