From f300b0b08db41f9f44bea6c4690089b9bea6e3ff Mon Sep 17 00:00:00 2001 From: "F16Gaming (Laptop)" Date: Thu, 10 May 2012 13:12:20 +0200 Subject: [PATCH] Changed implentation of localized difficulty strings. --- GroupTools.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/GroupTools.lua b/GroupTools.lua index b0b233b..261d1cc 100644 --- a/GroupTools.lua +++ b/GroupTools.lua @@ -35,16 +35,16 @@ C.GroupTools = { RaidMax = 40, Difficulty = { Dungeon = { - [1] = function() return L("GT_DUNGEON_NORMAL") end, - [2] = function() return L("GT_DUNGEON_HEROIC") end, + [1] = "GT_DUNGEON_NORMAL", + [2] = "GT_DUNGEON_HEROIC", Normal = 1, Heroic = 2 }, Raid = { - [1] = function() return L("GT_RAID_N10") end, - [2] = function() return L("GT_RAID_N25") end, - [3] = function() return L("GT_RAID_H10") end, - [4] = function() return L("GT_RAID_H25") end, + [1] = "GT_RAID_N10", + [2] = "GT_RAID_N25", + [3] = "GT_RAID_H10", + [4] = "GT_RAID_H25", Normal10 = 1, Normal25 = 2, Heroic10 = 3, @@ -183,7 +183,7 @@ end -- @return String representation of dungeon difficulty. -- function GT:GetFriendlyDungeonDifficulty(diff) - return self.Difficulty.Dungeon[tonumber(diff) or GetDungeonDifficulty()]() + return L(self.Difficulty.Dungeon[tonumber(diff) or GetDungeonDifficulty()]) end --- Set the raid difficulty. @@ -204,5 +204,5 @@ end -- @return String representation of raid difficulty. -- function GT:GetFriendlyRaidDifficulty(diff) - return self.Difficulty.Raid[tonumber(diff) or GetRaidDifficulty()]() + return L(self.Difficulty.Raid[tonumber(diff) or GetRaidDifficulty()]) end -- 1.7.9.5