ForcePack icon indicating copy to clipboard operation
ForcePack copied to clipboard

Velocity translations

Open SamB440 opened this issue 3 years ago • 3 comments

As per the discussion on #13, translations for velocity need to be added somehow.

Best idea is probably to have a language file with translation keys such as servers.example-server.resourcepack.prompt="<yellow>Please accept our resource pack to improve your experience.".

SamB440 avatar Dec 27 '22 12:12 SamB440

Maybe known, but I can't figure out how, or if there's a way to use the lang files for the translation of resourcepack.prompt. If you delete it, it errors. Unsure why it doesn't use prompt_text in the lang files, or whether this is a [global-pack] problem only?

It's the most useful one to translate too!

Cryptite avatar Jan 04 '24 14:01 Cryptite

I don't have translations set up for velocity yet. From what I can tell the adventure API only allows using an internal resource bundle of translations, rather than having configurable files... doesn't help that they have 0 documentation on this.

SamB440 avatar Jan 04 '24 16:01 SamB440

https://stackoverflow.com/questions/1172424/how-to-load-a-resource-bundle-from-a-file-resource-in-java

Seems this will work for loading translations from file.

But I'm currently waiting for velocity to fix their resource pack API, since there are several bugs

SamB440 avatar Feb 03 '24 09:02 SamB440