PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.97k stars 2.31k forks source link

Multilingualization of logs #9221

Closed creeper-0910 closed 1 year ago

creeper-0910 commented 1 year ago

Is your feature request related to a problem?

Hello, I have a question. Is it possible to make the Paper server's death log and achievement messages multilingual? We are using DiscordSRV, but it seems to be taking information from the logs and some of it is in English, so we would like to add a Japanese translation.

Describe the solution you'd like.

Multilingualization of logs

Describe alternatives you've considered.

I tried to apply the patch, but it seems that recent versions are no longer translatable.

Other

No response

JMBoy01 commented 1 year ago

Hello, I'm an enginering (in computer science) student from Belgium and I would like to try solve this issue. I have some decent knowledge of java and a little bit of experience with using papermc to write some plugins myself. I think Log4j is used but i couldn't find a build in way to chose a language for the log files. I will try and see if I can find another method.

molor commented 1 year ago

Log4j is used

No. Related: https://github.com/PaperMC/Paper/issues/3257

creeper-0910 commented 1 year ago

Sorry, I must have missed this issue. Should I close this issue?

NoahvdAa commented 1 year ago

Closing this as a duplicate of #3527 #3257.

As mentioned in the linked issue, the server jar only contains the en_US locale. This means we'll either need a reliable way to find and bundle all the language files (which are only in the client jar afaik), or we should let the user supply the language file and set the path to it via a config option or env var.

molor commented 1 year ago

(^ #3257, not #3527 XD)