Wrong relative timestamps in some languages

Hello. I have one annoying problem and it seems to be related to language packs.

When a user makes a post, the timestamps everywhere show 0h, or after 0 days for some period of time (only while the date is relative). When I switch to another language, it’s all fine. I can’t figure out which strings should be changed. Any ideas?

Which language is affected?

Latvian is affected. I tried English US and lithuanian and they were fine.

I see that the translations for zero use 0 instead of %{count}. But I don’t know if this is the cause of the problem.

Do you use the same grammar for other numbers, like, for example, for 10? Then 0 would be shown instead of the actual count.

1 Like

It was the cause. Replacing 0 with %{count} actually solved the visible problem! Thanks!

It would be really helpful for everyone if you could update the translations on Crowdin as well.

Crowdin shows 33 strings where a variable is missing.
https://discourse.crowdin.com/editor/4/246/en-lv/24?view=comfortable&filter=basic&value=20&em

4 Likes

I have made some translations. I will check Crowdin. Thanks for the help!

3 Likes