mojira.dev
MC-172305

Some words within "/clear" command feedback messages are always pluralized

The Bug:

Some words within "/clear" command feedback messages are always pluralized.

This is an issue because when the value before the given noun is "1", the noun's plural form is used instead of its singular one, therefore making the string grammatically incorrect in some cases. 

Affected Strings:

Before reading the table, please note the following:

  • Words colored in GREEN are correct.

  • Words colored in RED are incorrect.

 

Translation Key

Current String

Expected String

String URL on Crowdin

commands.clear.success.single

Removed %s items from player %s

Removed %s item(s) from player %s

https://crowdin.com/translate/minecraft/10038/enus-engb#5341010 

commands.clear.success.multiple

Removed %s items from %s players

Removed %s item(s) from %s players

https://crowdin.com/translate/minecraft/10038/enus-engb#5341012 

commands.clear.test.single

Found %s matching items on player %s

Found %s matching item(s) on player %s

https://crowdin.com/translate/minecraft/10038/enus-engb#5341014 

commands.clear.test.multiple

Found %s matching items on %s players

Found %s matching item(s) on %s players

https://crowdin.com/translate/minecraft/10038/enus-engb#5341016 

Alternatively, instead of having one string cover both the plural and non-plural variants of the word, two separate translation strings could be created, one of which covers the plural variant and the other that covers the non-plural variant.

Steps to Reproduce:

  1. Display any of the affected strings as listed above by using the command provided below and replacing "XYZ" with the string's translation key.

    /tellraw @s {"translate":"XYZ"}
  2. Look closely at the affected words within the string.

  3. Take note as to whether or not some words within "/clear" command feedback messages are always pluralized.

Observed Behavior:

Some words are always pluralized.

Expected Behavior:

The said words would be correctly singularized or pluralized where appropriate.

Linked issues

Attachments

Comments 13

All command feedback is plural, this is because it's a hassle to support every form of plural in translations (note, non-english languages have numerous different plurals for different non-1 values).

This was intentional by design (I asked mojang back when I was mod about this).

Can confirm in 20w48a. I've attached a screenshot which proves this statement.

Can confirm in 21w03a.

Can confirm in 21w11a.

Can confirm in 21w13a. Relates to MC-202226.

3 more comments

Can confirm in 1.18.2 and 22w18a.

Can confirm in 1.19.2. This ticket relates to MC-255060.

Hi; I've done some deeper investigating regarding this issue and it appears there are some other "clear" command strings that are also affected by this issue. Would it be okay if I can request ownership of this report since the reporter has been inactive for quite a substantial amount of time and also so that I can update it to mention the newly discovered information? I'm happy to keep this report up-to-date as well. 🙂

Reporter changed to @unknown based on comment above – add a comment here if you would like ownership of the report again, @unknown. Thanks. 🙂

I lost my old "3A 'n 2A Kids" account so I’m gonna comment here.

Do you mind if you transfer the ownership back to this account? I've had a look at the files, could also add some more description to the bug.

Thanks!

3A 'n 2A Kids

Avoma

migrated

Confirmed

Platform

Low

Text

grammar, pluralization, spelling

1.15.2, 20w06a, 20w07a, 20w14a, 1.16.2, ..., 1.18.2, 22w18a, 1.19.2, 22w43a, 1.19.3

1.19.4 Pre-release 4

Retrieved