mojira.dev
MC-307690

The error message produced by /difficulty doesn't use the difficulty's translated name

This behavior has been present since 17w45a.

The bug

The difficulty command uses your language's names for the difficulty when it queries the difficulty or successfully changes it. However, when it fails to change it (because the difficulty was already the provided one), the untranslated ID of the difficulty appears instead.

Steps to reproduce

  1. Set the game language to Spanish.

  2. Set the world difficulty to Peaceful:

    difficulty peaceful

    -> ✔ The command feedback is translated.

  3. Query the world difficulty:

    difficulty

    -> ✔ The command feedback is translated.

  4. Try to set the world difficulty to Peaceful again:

    difficulty peaceful

    -> ❌ The command feedback uses the untranslated word "peaceful".

[media]

Observed behavior

The error message will use the internal name.

Expected behavior

It would use the localized name, as the success and query messages do.

Linked issues

Attachments

Comments 2

The essence of this error is easier for Russian-speaking people to understand, because the Russian language is also affected by this bug. Therefore, who is Russian (not English-speaking!) here are the steps to reproduce this bug:

Russian Russian is a language other than Russian, then change it to Russian.

  • Use it /difficulty peaceful

  • Use /difficulty

  • Use /difficulty again.

  • The error message uses the word «Peaceful», which has not been translated into Russian.

tryashtar

bl4ckscor3

Confirmed

Platform

Low

Commands, Internationalisation

Minecraft 17w45a, 26.1.2, 26.2 Snapshot 4

26.2 Snapshot 5

Retrieved