Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (โ‹ฎ) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I feel like this should be biting me in the ass by now, but how does one properly register a Human-readable name for a creative tab and an achievement? I've tried using LanguageRegistry.addName() but to no avail... All it shows me is "itemGroup.tabJAGM" for the tab, and "achievement.jagmAch". Any ideas?

The further a society drifts from the truth, the more it hates those who speak it.

I really don't see why it doesn't work, you are probably doing it wrong.

LanguageRegistry.instance().addStringLocalization("itemGroup.tabJAGM", "en_US", "JAGM Stuff");

1.7.10 is no longer supported by forge, you are on your own.

  • Author

Thanks Ernio, complete derp on my part. I overlooked adding "itemGroup." to the front of "tabJAGM"

The further a society drifts from the truth, the more it hates those who speak it.

Gah!ย  Don't use the language registry >..<

ย 

Make a lang file.ย  So easy.

ย 

All you have to do is make a lang file and put [thing to translate]=[translation]

ย 

Everything in every lang file is added to the language registry automagically.

ย 

https://github.com/Draco18s/Artifacts/blob/master/assets/artifacts/lang/en_US.lang

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.ย  If you think this is the case, JUST REPORT ME.ย  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

ย 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

ย 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

I'll make the switch gradually to full localization files, for now I just needed the one thing so, I'm good :)

The further a society drifts from the truth, the more it hates those who speak it.

Do it now.ย  Putting it off will only lead to lots and lots of things needing to get done.

With the one mod I've localized I had to go into 26 classes and add StatCollector.localize() calls to several strings in each class because I hadn't anticipated localization from the outset.

ย 

193 localization entries later...

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.ย  If you think this is the case, JUST REPORT ME.ย  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

ย 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

ย 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions โ†’ Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.