Even though all related translations are in place in Transifex:
… the “zero” translation is not used:
I suspect the issue here is that the
js.filters.latest.title key has incomplete pluralization and thus is treated by Transifex as 3 separate keys:
few key is missing.
Yes, you’re right. And there are a bunch more with the same issue. I fixed most of them in PR 3817, but there are still some unresolved ones:
@eviltrout Your weren’t happy about my last changes to the templates. How would you like to fix the pluralizations in this case?
Any updates on this? Will it be fixed in near future? Really annoying in non-english forums
Can you remind me what needs to change in the template for this to work? It has been some time and I can’t seem to figure it out.
As you can see in my PR 3817 I had to add a few conditional statements to some templates.
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
- 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.
Thanks for patience with me on this one! It has lasted so much time I’d forgotten some details.
Having reviewed everything I think your template approach is best. Sorry for the runaround but I think it makes the most sense even if it adds a bunch of logic.
That filter text is built programatically which is unfortunate. I think the following
git grep shows most of the locations:
git grep "I18n.t([\"']filters"