If the translation is not in the English file, the translation from the admin interface does not work.
topic_count_latest.few
![]()
Some cases can be very sensitive; this is on the central page of the site.
v2.0.0.beta5 +192
A bug was reported where pluralized strings (e.g., topic_count_latest.few) in non-English locales (like Russian) couldn’t be overridden via the admin interface if they were missing from the locale file — causing fallback to English or placeholder text like [ru.topic_count_latest.few]. Stranik highlighted the issue, noting it affected critical UI areas like the homepage and search results. gerhard acknowledged it as a minor bug, confirmed the reproduction steps, and noted that recent translation updates should have resolved the missing keys — but a commit was still needed to fully fix the issue. Stranik confirmed the problem persisted unless translations were manually added via admin, and shared screenshots showing the absence of topic_count_latest in client.ru.yml. gerhard later identified an incomplete translation update and pushed a fix. Stranik confirmed the fix worked, with all translations now appearing correctly. The issue was officially resolved in commit 81c329f.
If the translation is not in the English file, the translation from the admin interface does not work.
topic_count_latest.few
![]()
Some cases can be very sensitive; this is on the central page of the site.
v2.0.0.beta5 +192
I consider this a minor bug. It will be fixed eventually, but it’s currently at the bottom of my list.
For the sake of completeness, here are steps to reproduce:
client.ru.yml doesn’t contain a translation for topic_count_latest.few.topic_count_latest.Expected: It should list all the pluralization keys for Russian (one, few, other).
Actual: It lists only the pluralization keys for English and the ones available in the Russian locale file.
Regarding the missing translation: I updated the translations today, so you should be able to see the translated strings when you update to latest.
And you shouldn’t see the [ru.topic_count_latest.few] in production mode. It should fallback to English. Are you saying this isn’t happening? Can you reproduce it on try or meta?
Into a file:
https://github.com/discourse/discourse/blob/master/config/locales/client.ru.yml
topic_count_latest - no.
Meta’s hard to test. The fact is that if Russian translation is not added to the database using the admin interface, the transfer is taken apparently from a file. It will show English.
I noticed on my website. But only it is necessary to add a translation through the administrator interface, then this error will appear. (not only on the Central page, but also in the search results, etc. where there - few)
Changes in the file:
https://github.com/discourse/discourse/tree/master/config/locales
Oh, for some reason it didn’t update all translation files. ![]()
Update translations · discourse/discourse@10dad5d · GitHub should fix it.
Fixed in FIX: Customizing missing pluralized translations didn't work · discourse/discourse@81c329f · GitHub
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.