From c1f07d8fd73db0b89e61ef47be76c1efc23fb7e0 Mon Sep 17 00:00:00 2001 From: KyrosKrane Date: Mon, 13 Jul 2015 00:28:04 +0400 Subject: [PATCH] Localizing the localization to prevent conflicts with other addons. --- AnnoyingPopupRemover.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnnoyingPopupRemover.lua b/AnnoyingPopupRemover.lua index a7121b7..1a96954 100644 --- a/AnnoyingPopupRemover.lua +++ b/AnnoyingPopupRemover.lua @@ -67,7 +67,7 @@ APR.locale = GetLocale(); --######################################### -- This bit of meta-magic makes it so that if we call L with a key that doesn't yet exist, a key is created automatically, and its value is the name of the key. For example, if L["MyAddon"] doesn't exist, and I run print (L["MyAddon"]), the __index command causes the L table to automatically create a new key called MyAddon, and its value is set to tostring("MyAddon") -- same as the key name. -L = setmetatable({ }, {__index = function(t, k) +local L = setmetatable({ }, {__index = function(t, k) local v = tostring(k); rawset(t, k, v); return v; -- 1.7.9.5