Posted January 14, 201411 yr 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.
January 14, 201411 yr 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.
January 14, 201411 yr 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.
January 14, 201411 yr 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.
January 15, 201411 yr Agreed, lang files > by a huge degree than LanguageRegistry. CreepyPastaCraft git | SCPCraft git Keep an eye on them, see that I'm still working on it
January 15, 201411 yr 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.
January 15, 201411 yr 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.