Jump to content

Getting Server's Current Language?


jredfox

Recommended Posts

Just now, diesieben07 said:

The server can only translate English.

what if you run your server jvm in russian isn't it in russian then? I looked at net.minecraft.util.text.translation.I18n and it was different from the client I18n it had a map<string,string> then a fallback map<string,string> for en us lang. Why would the server one have two maps if it doesn't translate?

Link to comment
Share on other sites

6 hours ago, diesieben07 said:

No. Minecraft server always runs in English.

 

This is so that the integrated server still uses the client's language.

that is really stupid that means for silkspawners on multiplayer it will only give people english because the event is on server what am I suppose to do about that?

Link to comment
Share on other sites

If the mod runs on the client as well, you can use TextComponentTranslation if you use the chat, or handle translation on the client if it is client side code. Both methods will translate your strings to the language set in the client

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.