Handling plural forms in activity pub localization strings

I noticed some strings in the ActivityPub plugin that, in my opinion, need pluralization.

The first post of a new topic will be published %{delay_minutes} minutes after being posted

discourse-activity-pub/config/locales/client.en.yml at a49ec5c4f5acac28bafbc1c57c57161c067e8f6e · discourse/discourse-activity-pub · GitHub
If delay_minutes is 1, it should say “1 minute”.

“Publish Post #%{post_number} and deliver it to the followers of the Group Actors in %{minutes} minutes.”

discourse-activity-pub/config/locales/client.en.yml at a49ec5c4f5acac28bafbc1c57c57161c067e8f6e · discourse/discourse-activity-pub · GitHub
Same as above.

“Publish %{count} unpublished posts in Topic #%{topic_id}. Posts will not be delivered to the followers of the Group Actors.”

discourse-activity-pub/config/locales/client.en.yml at a49ec5c4f5acac28bafbc1c57c57161c067e8f6e · discourse/discourse-activity-pub · GitHub

If only 1 post is unpublished, you would say “Publish %{count} unpublished post in Topic #%{topic_id}. Post will not be delivered to the followers of the Group Actors.”

“%{min_length} to %{max_length} letters, numbers, dashes or underscores.”

discourse-activity-pub/config/locales/client.en.yml at a49ec5c4f5acac28bafbc1c57c57161c067e8f6e · discourse/discourse-activity-pub · GitHub
I think this one depends on max_length. If max_length is 1, you would say “letter, number, dash or underscore”. But I am not sure if there are other languages where min_length is relevant too.

“Username must be %{min_length} to %{max_length} letters, numbers, dashes or underscores.”

discourse-activity-pub/config/locales/server.en.yml at a49ec5c4f5acac28bafbc1c57c57161c067e8f6e · discourse/discourse-activity-pub · GitHub
Same as above.

“%{count} of %{total} posts in this topic are published.”

discourse-activity-pub/config/locales/client.en.yml at a49ec5c4f5acac28bafbc1c57c57161c067e8f6e · discourse/discourse-activity-pub · GitHub
This one is a little more complex because it depends on two variables: count and total. For example:

  • 1 of 1 post in this topic is published
  • 1 of 3 posts in this topic is published
  • 2 of 3 posts in this topic are published
3 Likes