Quantcast

Fix for possible non-default locale errors

Erik L. Vonderscheer [07-01-09 - 07:47]
Fix for possible non-default locale errors
Filename
TradeFilter3.lua
TradeFilter3Locale.lua
diff --git a/TradeFilter3.lua b/TradeFilter3.lua
index b192e4e..7405869 100644
--- a/TradeFilter3.lua
+++ b/TradeFilter3.lua
@@ -100,7 +100,7 @@ function TF3:OnInitialize()
 	--[[ Libraries ]]--
 	local ACD = LibStub("AceConfigDialog-3.0")
 	local LAP = LibStub("LibAboutPanel")
-	local L =  LibStub("AceLocale-3.0"):GetLocale("TradeFilter3")
+	local L =  LibStub("AceLocale-3.0"):GetLocale("TradeFilter3", true)

 	self.db = LibStub("AceDB-3.0"):New("TradeFilter3DB", defaults);

@@ -314,13 +314,13 @@ function TF3:FilterFunc(...)
 		end
 		--@end-alpha@
 		if (self.db.profile.addfilter_enable) then
-			for i, matchIt in ipairs(self.db.profile.filter) do
+			for i,v in ipairs(self.db.profile.filter) do
 				--@alpha@
 				if (self.db.profile.debug) then
-					TF3:FindFrame(debugFrame, "Checking for Match with " .. matchIt)
+					TF3:FindFrame(debugFrame, "Checking for Match with " .. v)
 				end
 				--@end-alpha@
-				if (find(arg1, matchIt)) then
+				if (find(arg1,v)) then
 					--@alpha@
 					if (self.db.profile.debug) then
 						TF3:FindFrame(debugFrame, "|cff00ff00**** Matched ***|r")
diff --git a/TradeFilter3Locale.lua b/TradeFilter3Locale.lua
index ec9f7ee..60df1e0 100644
--- a/TradeFilter3Locale.lua
+++ b/TradeFilter3Locale.lua
@@ -4,35 +4,35 @@ File Revision: @file-revision@
 File Date: @file-date-iso@
 ]]--
 local debug = false
---[===[@debug@
+--@debug@
 debug = true
---@end-debug@]===]
+--@end-debug@

-local L =  LibStub("AceLocale-3.0"):NewLocale("TradeFilter3", "enUS", true, debug)
+local L =  LibStub("AceLocale-3.0"):NewLocale("TradeFilter3", "enUS", true)
 if L then
 --@localization(locale="enUS", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
 if GetLocale() == "enUS" then return end
 end

-local L =  LibStub("AceLocale-3.0"):NewLocale("TradeFilter3", "deDE", true, debug)
+local L =  LibStub("AceLocale-3.0"):NewLocale("TradeFilter3", "deDE")
 if L then
 --@localization(locale="deDE", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
 if GetLocale() == "deDE" then return end
 end

-local L =  LibStub("AceLocale-3.0"):NewLocale("TradeFilter3", "zhCN", true, debug)
+local L =  LibStub("AceLocale-3.0"):NewLocale("TradeFilter3", "zhCN")
 if L then
 --@localization(locale="zhCN", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
 if GetLocale() == "zhCN" then return end
 end

-local L =  LibStub("AceLocale-3.0"):NewLocale("TradeFilter3", "zhTW", true, debug)
+local L =  LibStub("AceLocale-3.0"):NewLocale("TradeFilter3", "zhTW")
 if L then
 --@localization(locale="zhTW", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
 if GetLocale() == "zhTW" then return end
 end

-local L =  LibStub("AceLocale-3.0"):NewLocale("TradeFilter3", "frFR", true, debug)
+local L =  LibStub("AceLocale-3.0"):NewLocale("TradeFilter3", "frFR")
 if L then
 --@localization(locale="frFR", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
 if GetLocale() == "frFR" then return end