Quantcast

- A bunch of TITAN_ID fixes for "TitanClassic" as that is what is loading from the toc. What a pain in the ass.

HonorGoG [08-11-19 - 20:41]
- A bunch of TITAN_ID fixes for "TitanClassic" as that is what is loading from the toc.  What a pain in the ass.
Filename
TitanClassic/TitanClassicAutoHide.lua
TitanClassic/TitanClassicUtils.lua
TitanClassic/locale/Localization.lua
diff --git a/TitanClassic/TitanClassicAutoHide.lua b/TitanClassic/TitanClassicAutoHide.lua
index 7e09f17..47b83d8 100644
--- a/TitanClassic/TitanClassicAutoHide.lua
+++ b/TitanClassic/TitanClassicAutoHide.lua
@@ -11,7 +11,7 @@ These routines control the 'push pin' on each bar, if shown.
 :DESC
 --]]
 local AceTimer = LibStub("AceTimer-3.0")
-local L = LibStub("AceLocale-3.0"):GetLocale("Titan", true)
+local L = LibStub("AceLocale-3.0"):GetLocale("TitanClassic", true)
 local Dewdrop = nil
 if AceLibrary and AceLibrary:HasInstance("Dewdrop-2.0") then Dewdrop = AceLibrary("Dewdrop-2.0") end

diff --git a/TitanClassic/TitanClassicUtils.lua b/TitanClassic/TitanClassicUtils.lua
index 9989488..aedc9f8 100644
--- a/TitanClassic/TitanClassicUtils.lua
+++ b/TitanClassic/TitanClassicUtils.lua
@@ -8,16 +8,14 @@ TITAN_PANEL_NONMOVABLE_PLUGINS = {};
 TITAN_PANEL_MENU_FUNC_HIDE = "TitanPanelRightClickMenu_Hide";
 TitanPlugins = {};  -- Used by plugins
 TitanPluginsIndex = {};
-TITAN_NOT_REGISTERED = _G["RED_FONT_COLOR_CODE"].."Not_Registered_Yet".._G["FONT_COLOR_CODE_CLOSE"]
-TITAN_REGISTERED = _G["GREEN_FONT_COLOR_CODE"].."Registered".._G["FONT_COLOR_CODE_CLOSE"]
-TITAN_REGISTER_FAILED = _G["RED_FONT_COLOR_CODE"].."Failed_to_Register".._G["FONT_COLOR_CODE_CLOSE"]
-
 local _G = getfenv(0);
 local L = LibStub("AceLocale-3.0"):GetLocale(TITAN_ID, true)
 local media = LibStub("LibSharedMedia-3.0")
+local drop_down_1 = "L_DropDownList1"  -- The LibUIDropDownMenu lib is used over the Blizzard frame
+TITAN_NOT_REGISTERED = _G["RED_FONT_COLOR_CODE"].."Not_Registered_Yet".._G["FONT_COLOR_CODE_CLOSE"]
+TITAN_REGISTERED = _G["GREEN_FONT_COLOR_CODE"].."Registered".._G["FONT_COLOR_CODE_CLOSE"]
+TITAN_REGISTER_FAILED = _G["RED_FONT_COLOR_CODE"].."Failed_to_Register".._G["FONT_COLOR_CODE_CLOSE"]

--- The LibUIDropDownMenu lib is used over the Blizzard frame
-local drop_down_1 = "L_DropDownList1"
 --
 -- The routines labeled API are useable by addon developers
 --
diff --git a/TitanClassic/locale/Localization.lua b/TitanClassic/locale/Localization.lua
index cced248..3a0d947 100644
--- a/TitanClassic/locale/Localization.lua
+++ b/TitanClassic/locale/Localization.lua
@@ -1,7 +1,7 @@
-local L = LibStub("AceLocale-3.0"):NewLocale("Titan","enUS",true)
+local L = LibStub("AceLocale-3.0"):NewLocale("TitanClassic","enUS",true)

-L["TITAN_PANEL"] = "Titan Panel";
-local TITAN_PANEL = "Titan Panel";
+L["TITAN_PANEL"] = "Titan Panel Classic";
+local TITAN_PANEL = "Titan Panel Classic";
 L["TITAN_DEBUG"] = "<Titan>";
 L["TITAN_PRINT"] = "Titan";