Index: Babble-Zone-2.0.lua =================================================================== --- Babble-Zone-2.0.lua (revision 8018) +++ Babble-Zone-2.0.lua (working copy) @@ -10,6 +10,7 @@ ]] local MAJOR_VERSION = "Babble-Zone-2.0" +local MAJOR_VERSION_ABBR = "Babble-Zone-Abbr-1.0" local MINOR_VERSION = "$Revision$" if not AceLibrary then error(MAJOR_VERSION .. " requires AceLibrary") end @@ -18,10 +19,65 @@ if not AceLibrary:HasInstance("AceLocale-2.0") then error(MAJOR_VERSION .. " requires AceLocale-2.0") end local BabbleZone = AceLibrary("AceLocale-2.0"):new(MAJOR_VERSION) +local BabbleZoneAbbr = AceLibrary("AceLocale-2.0"):new(MAJOR_VERSION_ABBR) -- uncomment below for debug information -- BabbleZone:EnableDebugging() +-- BabbleZoneAbbr:EnableDebugging() +BabbleZoneAbbr:RegisterTranslations("enUS", function() + return { + ["Ahn'Qiraj"] = "TAQ", + ["Alterac Valley"] = "AV", + ["Arathi Basin"] = "AB", + ["Blackfathom Deeps"] = "BFD", + ["Blackrock Depths"] = "BRD", + ["Blackrock Mountain"] = "BRM", + ["Blackrock Spire"] = "BRS", + ["Blackwing Lair"] = "BWL", + ["Blasted Lands"] = "BL", + ["Booty Bay"] = "BB", + ["Burning Steppes"] = "BS", + ["Caverns of Time"] = "COT", + ["Dire Maul"] = "DM", + ["Eastern Plaguelands"] = "EPL", + ["Gadgetzan"] = "GGZ", + ["Ironforge"] = "IF", + ["Loch Modan"] = "LM", + ["Maraudon"] = "Mara", + ["Molten Core"] = "MC", + ["Naxxramas"] = "Naxx", + ["Onyxia's Lair"] = "Onyxia", + ["Orgrimmar"] = "Org", + ["Ragefire Chasm"] = "RFC", + ["Razorfen Downs"] = "RFD", + ["Razorfen Kraul"] = "RFK", + ["Ruins of Ahn'Qiraj"] = "RAQ", + ["Scarlet Monastery"] = "SM", + ["Scholomance"] = "Scholo", + ["Searing Gorge"] = "SG", + ["Shadowfang Keep"] = "SFK", + ["Silithus"] = "Sili", + ["Silverpine Forest"] = "Silverpine", + ["The Stockade"] = "Stockade", + ["Stonetalon Mountains"] = "Stonetalon", + ["Stormwind City"] = "SW", + ["Stranglethorn Vale"] = "STV", + ["Stratholme"] = "Strat", + ["Swamp of Sorrows"] = "SoS", + ["Temple of Ahn'Qiraj"] = "TAQ", + ["The Temple of Atal'Hakkar"] = "ST", + ["Thunder Bluff"] = "TB", + ["Undercity"] = "UC", + ["Wailing Caverns"] = "WC", + ["Warsong Gulch"] = "WSG", + ["Western Plaguelands"] = "WPL", + ["Winterspring"] = "WS", + ["Zul'Farrak"] = "ZF", + ["Zul'Gurub"] = "ZG", + } +end) + BabbleZone:RegisterTranslations("enUS", function() return { ["Ahn'Qiraj"] = "Ahn'Qiraj", @@ -480,5 +536,10 @@ BabbleZone:Debug() BabbleZone:SetStrictness(true) +BabbleZoneAbbr:Debug() +BabbleZoneAbbr:SetStrictness(true) + AceLibrary:Register(BabbleZone, MAJOR_VERSION, MINOR_VERSION) +AceLibrary:Register(BabbleZoneAbbr, MAJOR_VERSION_ABBR, MINOR_VERSION) BabbleZone = nil +BabbleZoneAbbr = nil