Posted April 9, 201411 yr I've used the simple addName() method in the past, and wanted to use the localization system. Got to know the system, updated my development environment to 1.7, and now all of the methods are depreciated. It seems I'm supposed to use the loadLanguagesFor() method, but I don't understand it and can't find any good tutorials for it. Could someone point me in the right direction? if (user.hasKnowledgeOfJava) { if (user.question.hasCode) { return interpetHelpfulResponse(user.getQuestion()); } else { return "Could you post your code please?"; } } else { return "Learn some freaking Java!"; }
April 9, 201411 yr I've used the simple addName() method in the past, and wanted to use the localization system. Got to know the system, updated my development environment to 1.7, and now all of the methods are depreciated. It seems I'm supposed to use the loadLanguagesFor() method, but I don't understand it and can't find any good tutorials for it. Could someone point me in the right direction? The future way of doing things is a .lang file for your mod: https://github.com/SanAndreasP/EnderStuffPlus/blob/master/resources/assets/enderstuffp/lang/en_US.lang Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
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.