# Why plural on these keys?

**URL:** https://meta.discourse.org/t/why-plural-on-these-keys/107917
**Category:** Translations
**Created:** [1월 30, 2019, 12:29오후 UTC](https://meta.discourse.org/t/why-plural-on-these-keys/107917 "2019-01-30T12:29:26Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Lure](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lure/32/130462_2.png) [@Lure](https://meta.discourse.org/u/Lure)
#### Post date: [1월 30, 2019, 12:29오후 UTC](https://meta.discourse.org/t/why-plural-on-these-keys/107917/1 "2019-01-30T12:29:26Z")

</div>

While going through plurals in Slovenian translations I have noticed some keys that have plural enabled, but I do not see `%{count}`, so it is hard to understand how they are used.

Does not make sense to have number for this, right?

- datetime.distance\_in\_words\_verbose.less\_than\_x\_seconds

Is number just added in front for these?

- js.number.human.storage\_units.units.byte
- js.links\_lowercase
- js.groups.title
- js.post.actions.defer\_flags

Does it make sense to have plural for pecentage?

- admin\_js.admin.flags.user\_percentage.agreed
- admin\_js.admin.flags.user\_percentage.disagreed
- admin\_js.admin.flags.user\_percentage.ignored

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [1월 30, 2019, 12:50오후 UTC](https://meta.discourse.org/t/why-plural-on-these-keys/107917/2 "2019-01-30T12:50:41Z")

</div>

> [@Lure](#):
>
> Does not make sense to have number for this, right?
> 
> - datetime.distance\_in\_words\_verbose.less\_than\_x\_seconds

There was a number in this string before it was changed to “right now”. Looks like we forgot to remove the plural.

> [@Lure](#):
>
> Is number just added in front for these?
> 
> - js.number.human.storage\_units.units.byte
> - js.links\_lowercase
> - js.groups.title
> - js.post.actions.defer\_flags

I’m quite sure that happens for `byte` and it’s quite likely that the same thing happens for the others as well. I’ll check it out when I have some time.

> [@Lure](#):
>
> Does it make sense to have plural for pecentage?
> 
> - admin\_js.admin.flags.user\_percentage.agreed
> - admin\_js.admin.flags.user\_percentage.disagreed
> - admin\_js.admin.flags.user\_percentage.ignored

I’m not sure. 🤔 It certainly doesn’t make sense for English and German. Maybe other languages need it? I guess using pluralization doesn’t hurt in this case. 🤷‍♂️

---

<div class="post-metadata">

### Author: ![Lure](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lure/32/130462_2.png) [@Lure](https://meta.discourse.org/u/Lure)
#### Post date: [1월 30, 2019, 3:00오후 UTC](https://meta.discourse.org/t/why-plural-on-these-keys/107917/4 "2019-01-30T15:00:30Z")

</div>

Thanks for the clarification.  
Related question: how is the plural used for titles:

- js.groups.title

And for filters, it is difficult to decide which gender should be used as there is no context:

- js.filters.latest.title\_with\_count
- js.filters.unread.title\_with\_count
- js.filters.new.title\_with\_count

In Slovene, “topic” is feminine, while “post” is masculine. If the same form is used for both, it will be incorrect or strange in some cases.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [1월 30, 2019, 3:20오후 UTC](https://meta.discourse.org/t/why-plural-on-these-keys/107917/5 "2019-01-30T15:20:18Z")

</div>

> [@Lure](#):
>
> how is plural used for titles:
> 
> - js.groups.title

It’s shown in user profiles. If the user belongs to one group it shows “Group \<group\_name\>” and if the user belongs to more than one it shows “Groups \<group\_name1\>, \<group\_name2\>, …”

Those filters are for topics.  
 ![image](https://global.discourse-cdn.com/meta/original/3X/b/2/b26d58b0823c4a0099e4f72fa3878d48512ef21c.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/7/d79e0627fbc95450f99b641959bed3e78381d237.png)

---

<div class="post-metadata">

### Author: ![Lure](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lure/32/130462_2.png) [@Lure](https://meta.discourse.org/u/Lure)
#### Post date: [1월 30, 2019, 3:46오후 UTC](https://meta.discourse.org/t/why-plural-on-these-keys/107917/6 "2019-01-30T15:46:09Z")

</div>

It seems that at least New (`js.filters.new.title_with_count`) is also used in Admin/Users:

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/4/a430ca21df5d9a5249c69e63c189c31c6344f8ae.png)

Which makes a strange mismatch between `Nove` and `Novi uporabniki`. Maybe something to separate in future?

---

<div class="post-metadata">

### Author: ![Lure](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lure/32/130462_2.png) [@Lure](https://meta.discourse.org/u/Lure)
#### Post date: [1월 30, 2019, 3:52오후 UTC](https://meta.discourse.org/t/why-plural-on-these-keys/107917/7 "2019-01-30T15:52:26Z")

</div>

Can you also explain use of these:

- js.filters.with\_topics
- js.filters.with\_category

Are they missing plural? Or is `%{filter}` name of filter?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [4월 23, 2019, 5:20오후 UTC](https://meta.discourse.org/t/why-plural-on-these-keys/107917/8 "2019-04-23T17:20:42Z")

</div>

> [@Lure](#):
>
> Does not make sense to have number for this, right?
> 
> - datetime.distance\_in\_words\_verbose.less\_than\_x\_seconds

I’ll remove the pluralization in an upcoming commit.

> [@Lure](#):
>
> Is number just added in front for these?
> 
> - js.links\_lowercase

This is kind of a special case because the numbers are shown above the text.

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/9/29e4bd273c6d739a49584f185d8a80e0a3e728c5.png)

> [@Lure](#):
>
> js.post.actions.defer\_flags

The actual number isn’t shown, but the button text changes depending on the number of flags.

> [@Lure](#):
>
> It seems that at least New ( `js.filters.new.title_with_count` ) is also used in Admin/Users:

No, the admin panel uses `admin_js.admin.users.nav.new` for the navigation item shown in your screenshot.

> [@Lure](#):
>
> Can you also explain use of these:
> 
> - js.filters.with\_topics
> - js.filters.with\_category
> 
> Are they missing plural? Or is `%{filter}` name of filter?

Those are used as page title and are visible in the browser tab. Values for `%{filter}` are “Latest”, “Unread”, “New”, “Read”, “My Posts” and “Bookmarks”. The last 3 values aren’t visible by default.

So, for `js.filters.with_topics` you get titles like “Latest topics”, “Unread topics”,… `js.filters.with_category` is used when the filter is applied to a category and leads to titles like “Latest support topics” or “New support topics”.

While looking at this I noticed that we still have translations for the old “Hot” filter. I’ll remove those strings unless I find a place where this stuff is still used.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [5월 22, 2019, 11:36오전 UTC](https://meta.discourse.org/t/why-plural-on-these-keys/107917/9 "2019-05-22T11:36:59Z")

</div>


