# טיפול בצורות רבים במחרוזות הלוקליזציה של ActivityPub

**URL:** https://meta.discourse.org/t/handling-plural-forms-in-activity-pub-localization-strings/363687
**Category:** Translations
**Tags:** activitypub
**Created:** [27 באפריל,‏ 2025,‏ 8:14pm UTC](https://meta.discourse.org/t/handling-plural-forms-in-activity-pub-localization-strings/363687 "2025-04-27T20:14:32Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [3 בנובמבר,‏ 2025,‏ 10:48pm UTC](https://meta.discourse.org/t/handling-plural-forms-in-activity-pub-localization-strings/363687/11 "2025-11-03T22:48:28Z")

</div>

> <https://github.com/discourse/discourse-activity-pub/blob/cad2ab6bd15e302759472e52baa3f316975ff8c0/config/locales/client.en.yml#L302-L304>

I am struggling a little with the translation: Does Discourse choose the singular and plural based on `count` or `total`?  
From my understanding, it’s usually count.  
But I cannot figure out how to handle the case that **`count` is 1** and **`total` is 3**. I get something like “1 of 3 _post_ in this topic is published”. I can fix that by using “posts”: “1 of 3 post_s_ in this topic is published”. But then it doesn’t work if `total` is 1. 🤯

> [@Moin](#):
>
> #### “%{count} of %{total} posts in this topic are published.”
> 
> [discourse-activity-pub/config/locales/client.en.yml at a49ec5c4f5acac28bafbc1c57c57161c067e8f6e · discourse/discourse-activity-pub · GitHub](https://github.com/discourse/discourse-activity-pub/blob/a49ec5c4f5acac28bafbc1c57c57161c067e8f6e/config/locales/client.en.yml#L279)  
> 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

Maybe we need [Message Format support for localization](https://meta.discourse.org/t/message-format-support-for-localization/7035) in this case?

---

_[View the full topic](https://meta.discourse.org/t/handling-plural-forms-in-activity-pub-localization-strings/363687)._
