Permalink
Browse files

Added Localization.

  • Loading branch information...
1 parent 4880e7a commit d71b68bc270ec8a4a227b46766c2e48405fcf546 Jiyoon Jang committed Jun 18, 2010
Showing with 37 additions and 21 deletions.
  1. +8 −0 Fiend.toc
  2. +7 −3 core.lua
  3. +22 −18 display.lua
View
@@ -1,6 +1,14 @@
## Interface: 302000
+
+## Title: Fiend
+## Notes: Tracks Damage, Healing, Overhealing.
+## Notes-koKR: 데미지, 힐링, 오버힐링을 추적합니다.
+## Author: Zariel
+## Version: 3.3.3-5
## OptionalDeps: LibDataBroker-1.1
+Locale-koKR.lua
+
core.lua
roster.lua
display.lua
View
@@ -1,3 +1,7 @@
+local ADDON_NAME, Fiend = ...
+Fiend.L = Fiend.L or { }
+local L = setmetatable(Fiend.L, { __index = function(t, s) t[s] = s return s end })
+
local addon = CreateFrame("Frame")
addon:SetScript("OnEvent", function(self, event, ...) return self[event](self, ...) end)
addon:RegisterEvent("ADDON_LOADED")
@@ -72,16 +76,16 @@ function addon:ADDON_LOADED(name)
-- Display:NewView(String name, String[] events, int barSize, int[]
-- headerColor, int[] barColor)
-- Only name, events and size are required.
- local damage = win:NewView("Damage", {
+ local damage = win:NewView(L["Damage"], {
"SWING_DAMAGE",
"RANGE_DAMAGE",
"SPELL_DAMAGE",
"SPELL_PERIODIC_DAMAGE",
}, 16, { 0.6, 0.2, 0.2 })
- local heal = win:NewView("Healing", { "SPELL_HEAL", "SPELL_PERIDOIC_HEAL" }, 16, { 0.2, 0.6, 0.2 })
+ local heal = win:NewView(L["Healing"], { "SPELL_HEAL", "SPELL_PERIDOIC_HEAL" }, 16, { 0.2, 0.6, 0.2 })
- local overHeal = win:NewView("OverHealing", { "SPELL_HEAL", "SPELL_PERIDOIC_HEAL" }, 16, { 0.2, 0.6, 0.5 })
+ local overHeal = win:NewView(L["OverHealing"], { "SPELL_HEAL", "SPELL_PERIDOIC_HEAL" }, 16, { 0.2, 0.6, 0.5 })
overHeal.overHeal = true
self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
View
@@ -1,5 +1,9 @@
local fiend = _G.Fiend
+local ADDON_NAME, Fiend = ...
+Fiend.L = Fiend.L or { }
+local L = setmetatable(Fiend.L, { __index = function(t, s) t[s] = s return s end })
+
local Display = {
}
@@ -177,7 +181,7 @@ function View:Output(count, where, player)
end
end
- output("Fiend " .. self.title .. ":")
+ output("Fiend - " .. self.title .. ":")
-- Need to do a double pass
local bar
@@ -450,34 +454,34 @@ function Display:ToolTip()
owner = drop,
isTitle = true,
}, {
- text = "Reset",
+ text = L["Reset"],
owner = drop,
func = function()
if self.currentView then
self.currentView:RemoveAllBars()
end
end,
}, {
- text = "Reset All",
+ text = L["Reset All"],
owner = drop,
func = function()
for i, d in pairs(self.views) do
d:RemoveAllBars()
end
end,
}, {
- text = "Displays",
+ text = L["Displays"],
owner = drop,
hasArrow = true,
menuList = {
},
}, {
- text = "Output",
+ text = L["Output"],
owner = drop,
hasArrow = true,
menuList = {
{
- text = "Guild",
+ text = L["Guild"],
owner = drop,
func = function()
if self.currentView then
@@ -486,52 +490,52 @@ function Display:ToolTip()
end
end,
}, {
- text = "Party",
+ text = L["Party"],
owner = drop,
func = function()
if self.currentView then
self.currentView:Output(self.printNum, "PARTY")
end
end,
}, {
- text = "Say",
+ text = L["Say"],
owner = drop,
func = function()
if self.currentView then
self.currentView:Output(self.printNum, "SAY")
end
end
}, {
- text = "Whisper",
+ text = L["Whisper"],
owner = drop,
func = function()
end,
}, {
- text = "Print",
+ text = L["Print"],
owner = drop,
func = function()
if self.currentView then
self.currentView:Output(self.printNum)
end
end
}, {
- text = "Count",
+ text = L["Count"],
owner = drop,
hasArrow = true,
menuList = {
},
},
},
}, {
- text = self.frame:IsShown() and "Hide" or "Show",
+ text = self.frame:IsShown() and L["Hide"] or L["Show"],
owner = drop,
func = function()
if self.frame:IsShown() then
self.frame:Hide()
- self.menu[1][6].text = "Show"
+ self.menu[1][6].text = L["Show"]
else
self.frame:Show()
- self.menu[1][6].text = "Hide"
+ self.menu[1][6].text = L["Hide"]
end
end,
}
@@ -543,21 +547,21 @@ function Display:ToolTip()
count = count + 1
self.menu[1][5].menuList[6].menuList[count] = {
- text = i or "All",
+ text = i or L["All"],
value = count,
func = function()
self.printNum = i
- print("Set the output limit to " .. i)
+ print(string.format(L["Set the output limit to %d"], i))
end,
}
end
self.menu[1][5].menuList[6].menuList[count + 1] = {
- text = "All",
+ text = L["All"],
value = count + 1,
func = function()
self.printNum = nil
- print("Set the output limit to All")
+ print(L["Set the output limit to All"])
end,
}

0 comments on commit d71b68b

Please sign in to comment.