lionleaf / dwitter

Social network for short js demos
https://www.dwitter.net
Apache License 2.0
763 stars 69 forks source link

1 Remixes? #527

Closed Hope41 closed 2 years ago

Hope41 commented 2 years ago

When a dweet only has one remix it says '1 remixes' not '1 remix'. It's only a small bug, but it keeps annoying me

lionleaf commented 2 years ago

Thanks for the report, I assume you're referring to the new beta.dwitter.net frontend?

I fixed it here: https://github.com/dwitter-net/dwitter-frontend/pull/111

Hope41 commented 2 years ago

Thanks, is there a way I can report primarily beta.dwitter.net frontend glitches without posting it on this main page?

sigvef commented 2 years ago

The frontend issue tracker is here: https://github.com/dwitter-net/dwitter-frontend/issues

joeytwiddle commented 2 years ago

Just a tip for developers:

If you are finding it too much hassle to separate 1 from the other cases (e.g. using a language without _ ? _ : _)

then a rough solution is to instead use a noun with two interpretations. For example:

n + " remix(es)"

would appear as:

0 remix(es) 1 remix(es) 2 remix(es)

which is not beautiful, but at least it's never wrong!