From 53b2f96b769b958b1c814928222ba26b3ba1f84e Mon Sep 17 00:00:00 2001 From: ackis Date: Wed, 4 Feb 2009 23:12:00 +0000 Subject: [PATCH] Fix dongle issue and localize the library error messages. --- AckisRecipeList.lua | 18 ++++++++++++++---- AckisRecipeList.toc | 2 ++ Locals/ARLLocals-enUS.lua | 1 + embeds.xml | 1 - 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 82af819..5f2921d 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -32,22 +32,32 @@ local addon = LibStub("AceAddon-3.0"):GetAddon(MODNAME) -- Lets check to see if we have the needed libraries loaded (these are mandatory to run) if (not LibStub:GetLibrary("LibBabble-Faction-3.0", true)) then - addon:Print("LibBabble-Faction-3.0 not loaded. Addon cannot run.") + addon:Print(format(L["MISSING_LIBRARY"],"LibBabble-Faction-3.0")) + AckisRecipeList = nil return end if (not LibStub:GetLibrary("LibBabble-Zone-3.0", true)) then - addon:Print("LibBabble-Zone-3.0 not loaded. Addon cannot run.") + addon:Print(format(L["MISSING_LIBRARY"],"LibBabble-Zone-3.0")) + AckisRecipeList = nil return end if (not LibStub:GetLibrary("LibBabble-Boss-3.0", true)) then - addon:Print("LibBabble-Boss-3.0 not loaded. Addon cannot run.") + addon:Print(format(L["MISSING_LIBRARY"],"LibBabble-Boss-3.0")) + AckisRecipeList = nil return end if (not LibStub:GetLibrary("AceLocale-3.0", true)) then - addon:Print("AceLocale-3.0 not loaded. Addon cannot run.") + addon:Print(format(L["MISSING_LIBRARY"],"AceLocale-3.0")) + AckisRecipeList = nil + return +end + +if (not DongleStub) then + addon:Print(format(L["MISSING_LIBRARY"],"DongleStub")) + AckisRecipeList = nil return end diff --git a/AckisRecipeList.toc b/AckisRecipeList.toc index 36f35f5..f07f7f5 100644 --- a/AckisRecipeList.toc +++ b/AckisRecipeList.toc @@ -45,6 +45,8 @@ embeds.xml #@end-no-lib-strip@ +libs\Astrolabe\Load.xml + # Localization files local.xml diff --git a/Locals/ARLLocals-enUS.lua b/Locals/ARLLocals-enUS.lua index 5cca217..66d8e87 100644 --- a/Locals/ARLLocals-enUS.lua +++ b/Locals/ARLLocals-enUS.lua @@ -310,6 +310,7 @@ L["UnknownTradeSkill"] = "You have opened up a trade skill window which is not s L["OpenTradeSkillWindow"] = "Please open trade skill window to scan." L["SpellIDCache"] = "Spell ID: %s is not in your local cache. Please submit a ticket at http://wow.curseforge.com/projects/ackis-recipe-list/tickets/ and include the spell ID and the profession in which you were scanning." L["NoItemLink"] = "This item does not have an item link or it was not in your cache." +L["MISSING_LIBRARY"] = "%s is missing. Addon cannot run." -- Drop Obtain Info L["Unknown Zone"] = true diff --git a/embeds.xml b/embeds.xml index 990c5c7..44f1199 100644 --- a/embeds.xml +++ b/embeds.xml @@ -30,6 +30,5 @@ - \ No newline at end of file -- 1.7.9.5