Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Some messages ignored with per-player-locale active

Open Fastbuilder575 opened this issue 11 months ago • 3 comments

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?bytebin=XeaCiWTXWw

Error log (if applicable)

No response

Bug description

Essentials seems to ignore some of the messages defined in the custom language messages_XXXX.properties files and instead be using the default for some parts of the message.

Steps to reproduce

One example with the /fly command:

messages_de.properties file: enabled=aktiviert disabled=deaktiviert flyMode=Du hast den Flugmodus bei {1} {0}.

Test 1: Minecraft client language: English (US) I execute the command /fly Response from the server is: "Set fly mode enabled for [DEV] Fastbuilder575."

Test 2: Minecraft client language: Deutsch (Deutschland) I execute the command /fly Response from the server is: "Set fly mode aktiviert for [DEV] Fastbuilder575."

Expected behaviour

Response from server should be "Du hast den Flugmodus bei [DEV] Fastbuilder575 aktiviert."

Actual behaviour

Response from server is "Set fly mode aktiviert for [DEV] Fastbuilder575." where some part of the file is used, in this case the translation for enabled, but the translation for flyMode is ignored.

Additional Information

No response

Fastbuilder575 avatar Feb 02 '25 11:02 Fastbuilder575

do you have the custom locale file in plugins/Essentials/messages/messages_de.properties?

JRoy avatar Feb 07 '25 02:02 JRoy

Yes, content of the messages_de.properties file is currently the following:

enabled=aktiviert
disabled=deaktiviert
flyCommandDescription=Abheben, in die Höhe\!
flyCommandUsage=/<command> [spieler] [on|off]
flyCommandUsage1=/<command> [spieler]
flyCommandUsage1Description=Schaltet das Fliegen für sich selbst oder einen anderen Spieler ein, falls angegeben
flying=fliegt
flyMode=<primary>Du hast den Flugmodus bei <secondary>{1} {0}<primary>.

Fastbuilder575 avatar Feb 07 '25 06:02 Fastbuilder575

Updated to the release Version 2.21.0, reported problem still exists.

New dump: https://essentialsx.net/dump.html?bytebin=wUeBPGwZQU

Fastbuilder575 avatar Mar 23 '25 09:03 Fastbuilder575