r23881 - trunk/Cartographer_Fishing

0 views
Skip to first unread message

svnco...@wowace.com

unread,
Jan 7, 2007, 9:30:06 AM1/7/07
to wowace-gar...@googlegroups.com
Author: kagaro
Date: Sun Jan 7 09:29:59 2007
New Revision: 23881

Log:
Cartographer_Fishing: fixed localization problem

Modified:
trunk/Cartographer_Fishing/addon.lua

Modified: trunk/Cartographer_Fishing/addon.lua
==============================================================================
--- trunk/Cartographer_Fishing/addon.lua (original)
+++ trunk/Cartographer_Fishing/addon.lua Sun Jan 7 09:29:59 2007
@@ -285,16 +285,16 @@
Cartographer_Fishing.isFishing = false

Cartographer_Fishing.nodeList = {
- ["Floating Wreckage"] = L["Floating Wreckage"],
- ["Patch of Elemental Water"] = L["Patch of Elemental Water"],
- ["Floating Debris"] = L["Floating Debris"],
- ["Oil Spill"] = L["Oil Spill"],
- ["Firefin Snapper School"] = L["Firefin Snapper School"],
- ["Greater Sagefish School"] = L["Greater Sagefish School"],
- ["Oily Blackmouth School"] = L["Oily Blackmouth School"],
- ["Sagefish School"] = L["Sagefish School"],
- ["School of Deviate Fish"] = L["School of Deviate Fish"],
- ["School of Tastyfish"] = L["School of Tastyfish"],
+ [L["Floating Wreckage"]] = ["Floating Wreckage"],
+ [L["Patch of Elemental Water"]] = ["Patch of Elemental Water"],
+ [L["Floating Debris"]] = ["Floating Debris"],
+ [L["Oil Spill"]] = ["Oil Spill"],
+ [L["Firefin Snapper School"]] = ["Firefin Snapper School"],
+ [L["Greater Sagefish School"]] = ["Greater Sagefish School"],
+ [L["Oily Blackmouth School"]] = ["Oily Blackmouth School"],
+ [L["Sagefish School"]] = ["Sagefish School"],
+ [L["School of Deviate Fish"]] = ["School of Deviate Fish"],
+ [L["School of Tastyfish"]] = ["School of Tastyfish"],
}
Cartographer_Fishing.questFish = {
[L["Sar'theris Striker"]] = true,
@@ -411,14 +411,14 @@
}
end

- Cartographer.options.args[bs["Fishing"]] = {
+ Cartographer.options.args["Fishing"] = {
name = bs["Fishing"],
desc = self.notes,
type = 'group',
args = aceopts,
handler = self,
}
- AceLibrary("AceConsole-2.0"):InjectAceOptionsTable(self, Cartographer.options.args[bs["Fishing"]])
+ AceLibrary("AceConsole-2.0"):InjectAceOptionsTable(self, Cartographer.options.args["Fishing"])
Cartographer:GetModule('Professions').addons[bs["Fishing"]] = self

if not Cartographer_FishingDB then
@@ -431,6 +431,17 @@
end
if not Cartographer_FishingDB.fish then
Cartographer_FishingDB.fish = {}
+ else -- fix unlocalizaed names
+ for _,zone in pairs(Cartographer_FishingDB.fish) do
+ if type(zone) == "table" then
+ for id,fish in ipairs(data) do
+ if L:HasReverseTranslation(fish) then
+ local newName = L:GetReverseTranslation(fish)
+ zone[id] = newName
+ end
+ end
+ end
+ end
end
end

@@ -466,7 +477,7 @@
if x == 0 and y == 0 then return end
local zone = GetRealZoneText()
what = what:gsub("^(.-) %(%d+%)$", "%1")
- what = L:GetReverseTranslation(what)
+ what = self.nodeList[what] --L:GetReverseTranslation(what)
-- cursor direction
local currentYardWidth, currentYardHeight = Tourist:GetZoneYardSize(GetRealZoneText())
local model = self:GetPlayerModelRef()
@@ -555,7 +566,7 @@
local stable = Cartographer_FishingDB.fish[key]
--stable:insert(lootName)
table.insert(stable,L:GetReverseTranslation(lootName))
- self:TriggerEvent("CartographerFishing_CaughtFish", key, x, y, lootName,"Fishing")
+ self:TriggerEvent("CartographerFishing_CaughtFish", key, x, y, L:GetReverseTranslation(lootName),"Fishing")
end
end
end

Reply all
Reply to author
Forward
0 new messages