Jump to content

Recommended Posts

Posted

Back in the 1.7 days and prior (a long time ago, I know), there used to be a way to load an external lang file, with its map of translations, into the game.

 

For example, I would have a file in the config folder that would be labeled and (just for clarity to the end user) given the extension .lang.

 

Using the line

LanguageRegistry.instance().loadLocalization(file.toURI().toURL(),"en_US",false);

// I understand that it's a sloppy line, but you get the gist of the use of the loadLocalization function

I could load a file of translations into the en_US language in the game.

 

Is there a contemporary equivalent that I could use in order to achieve the same result? If not, how would I go about doing this? Would I need to create a new ResourcePack and load that in?

 

Thanks in advance! :)

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information
Posted

Nothing is wrong with making a resource pack. I was just wondering what the 1.9 equivalent of the LanguageRegistry.instance().loadLocalization is. If it's resource packs, awesome, I'll get on that!

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information

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.

Announcements



×
×
  • Create New...

Important Information

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