Simple Voice Chat

Simple Voice Chat

31M Downloads

translation.yml not working

kakigorimochi opened this issue · 1 comments

commented

Please read the FAQ before submitting a bug report!

Bug description
I tried modifying the translation.yml file and the changes applied doesn't seem to be working

Steps to reproduce the issue

  1. Go to '/plugins/voichat/translation.yml' with voicechat (2.2.8)
  2. Edit the not compatible message and check if my yml is valid on yamllint.com, save changes
  3. Fire up the server and login with an old voice chat version (2.1.28)
  4. See error

Expected behavior
I expected my custom message to appear.

Log files
No logs available as voice chat seem to say it loaded the translation.

Versions

  • 1.18.1
  • Forge 39.0.5
  • 2.2.8

Other mods
n/a

Screenshots (Optional)
n/a

commented

The custom message will only appear if there is no matching translation on the client.

if (clientCompatibilityVersion <= 6) {
// Send a literal string, as we don't know if the translations exist on these versions
return Component.text(String.format(Voicechat.translate("not_compatible"), Voicechat.INSTANCE.getDescription().getVersion(), "Simple Voice Chat"));