All pastes #131892 Raw Edit

Something

public lua v1 · immutable
#131892 ·published 2006-08-15 00:22 UTC
rendered paste body
Index: Babble-Zone-2.0.lua===================================================================--- Babble-Zone-2.0.lua	(revision 8018)+++ Babble-Zone-2.0.lua	(working copy)@@ -18,10 +18,66 @@ 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)  -- 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"] = "Stranglethorn",+		["Stratholme"] = "Strat",+		["Swamp of Sorrows"] = "SoS",+		["Temple of Ahn'Qiraj"] = "TAQ",+		["The Temple of Atal'Hakkar"] = "ST",+		["Thousand Needles"] = "Thousand Needles",+		["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, MINOR_VERSION) BabbleZone = nil+BabbleZoneAbbr = nil