From 037fd890dcab622d8c63d45c93efa276bf031cd4 Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 15 Jan 2013 23:40:34 -0500 Subject: [PATCH] Use localized skill name in skill guide string. Still need to localize the REST of the strings relating to the skill guides, though. --- src/main/java/com/gmail/nossr50/util/Page.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/Page.java b/src/main/java/com/gmail/nossr50/util/Page.java index 83e7ef5d6..8732d8463 100644 --- a/src/main/java/com/gmail/nossr50/util/Page.java +++ b/src/main/java/com/gmail/nossr50/util/Page.java @@ -58,8 +58,11 @@ public class Page { public static void grabGuidePageForSkill(SkillType skilltype, Player player, String[] args) { - String capitalized = Misc.getCapitalized(skilltype.toString()); - player.sendMessage(ChatColor.DARK_AQUA+"Guide for "+capitalized+" available type /"+skilltype.toString().toLowerCase()+" ? [Page#]"); //TODO: Needs more locale. + + String skillName = skilltype.toString(); + String capitalized = Misc.getCapitalized(skillName); + String localized = Misc.getCapitalized(LocaleLoader.getString(capitalized + ".SkillName")); + player.sendMessage(ChatColor.DARK_AQUA+"Guide for "+localized+" available type /"+skilltype.toString().toLowerCase()+" ? [Page#]"); //TODO: Needs more locale. if (args.length >= 1) { if (args[0].equals("?"))