You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
607 B

--[[ BEGIN STANDARD HEADER ]] --
-- Imports
local _G = _G
local LibStub = LibStub
local setmetatable = setmetatable
local pairs = pairs
-- Isolate the environment
setfenv(1, select(2, ...))
--[[ END STANDARD HEADER ]] --
--@non-debug@
local BR = {}
--@non-end-debug@
for k, v in pairs(_G.LOCALIZED_CLASS_NAMES_FEMALE) do
BR[v] = k
end
for k, v in pairs(_G.LOCALIZED_CLASS_NAMES_MALE) do
BR[v] = k
end
function GetGenderNeutralClass(ns, class)
class = class or ns
return class and (BR[class] or class):upper()
end
-- /print Prat.GetGenderNeutralClass("Shaman")