Fix dongle issue and localize the library error messages.
ackis [02-04-09 - 23:12]
Fix dongle issue and localize the library error messages.
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 @@
<Include file="libs\LibAboutPanel\lib.xml"/>
<Include file="libs\LibSharedMedia-3.0\lib.xml"/>
<Include file="libs\LibBetterBlizzOptions\LibBetterBlizzOptions-1.0\lib.xml"/>
-<Include file="libs\Astrolabe\Load.xml"/>
</Ui>
\ No newline at end of file