Iâve noticed the latest update uses the one version of the pluralized strings if the count is 1. The problem is, until now the pluralized strings always used the other version even if the count is 1 and on /admin/customize/site_texts/ there is no option to find the one version of the string for example on Hungarian language. However on Hungarian there is no reason to use both version (one and other) because itâll be pretty much the same.
Repro:
Change locale e.g. Hungarian
Go to /admin/customize/site_texts/
Search e.g. js.topic_count_latest and change the text.
Check it on the See new or updated topics banner.
It will use the default value when there is only 1 update available because the string you edited is the other version. If there is more new or updated topics the text will be change to what you added before.
Yeah, there are two versions in the Hungarian locale (one and other), but I think it never used the one version until now as it isnât available in admin text customization either. It always fell back to the other.
If you check the Hungarian language file you can see the plurals are always the same.
Hovewer I see there are strings which is not use count on form one.
Like this:
Itâs ok because we donât need the count in this case when only 1 topic itâs pretty obvious. But the other one difference here is only that the other is appears a number. The text is same no matter there is number or not.
So if you ask me I just would remove the one form.
But if itâs coming from an external library which is I think correct, because Hungarian have plural form but not most of cases that Discourse uses. So probably adding the one form to have the abality to customize it would be the easiest solution to prevent the issues. Yeah it is mooostly same but at least we can customize it in admin.
I donât know itâs a hard question. As everyone who running a Hungarian forum and made customization in admin have been changed only the other form. Because it fell back to other from one always. So if we add the one form, admins have to review again all of the plural strings to modify that version too to be the same as other.
Thank you for your detailed response! Bug fix have been merged:
The fix adds :one form for Hungarian. Future crowdin translators may can try to remove %{count} for singular to make it look different from the :other form.
I think itâs ok, the %{count} is nicely follow the English locale. Which also donât use %{count} in some plural strings one form. Now the change is only we can edit the one form in admin too which is enough I think in this case. I think if itâs work correctly no need to other changes. Iâll update soon to test it.
Seems everything works excellent That was a great pastime to change all these but I almost done with it. Thanks again and thank you @Moin too to point this out.