Robosphinx Posted January 14, 2014 Share Posted January 14, 2014 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? Quote The further a society drifts from the truth, the more it hates those who speak it. Link to comment Share on other sites More sharing options...
Ernio Posted January 14, 2014 Share Posted January 14, 2014 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"); Quote 1.7.10 is no longer supported by forge, you are on your own. Link to comment Share on other sites More sharing options...
Robosphinx Posted January 14, 2014 Author Share Posted January 14, 2014 Thanks Ernio, complete derp on my part. I overlooked adding "itemGroup." to the front of "tabJAGM" Quote The further a society drifts from the truth, the more it hates those who speak it. Link to comment Share on other sites More sharing options...
Draco18s Posted January 14, 2014 Share Posted January 14, 2014 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 Quote 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. Link to comment Share on other sites More sharing options...
ntzrmtthihu777 Posted January 15, 2014 Share Posted January 15, 2014 Agreed, lang files > by a huge degree than LanguageRegistry. Quote CreepyPastaCraft git | SCPCraft git Keep an eye on them, see that I'm still working on it Link to comment Share on other sites More sharing options...
Robosphinx Posted January 15, 2014 Author Share Posted January 15, 2014 I'll make the switch gradually to full localization files, for now I just needed the one thing so, I'm good Quote The further a society drifts from the truth, the more it hates those who speak it. Link to comment Share on other sites More sharing options...
Draco18s Posted January 15, 2014 Share Posted January 15, 2014 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... Quote 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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.