SamB440 / ForcePack

Spigot/Velocity plugin to aid resource pack deployment and enforcement, among other utilities.
https://fortitude.islandearth.net/category/forcepack
GNU General Public License v3.0
48 stars 17 forks source link

Velocity translations #14

Open SamB440 opened 1 year ago

SamB440 commented 1 year ago

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.".

Cryptite commented 7 months ago

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!

SamB440 commented 7 months ago

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 commented 6 months ago

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