Wowpedia
Advertisement
Wowpedia
240,497
pages
Game Flavors
Links
Patch
Added in 3.2.0 / 1.13.2

Fills a table with localized class names, callable with localization-independent class IDs.

FillLocalizedClassList(classTable[, isFemale])

Arguments

classTable 
table - The table you want to be filled with the data (does not have to be an empty table).
isFemale 
boolean - If true the table will be filled with female class names.

Returns

classTable 
table - The table you parsed as argument (now filled with class names).

e.g. for enUS

[1] = {
    DEATHKNIGHT="Death Knight",
    WARRIOR="Warrior",
    ROGUE="Rogue",
    MAGE="Mage",
    PRIEST="Priest",
    WARLOCK="Warlock",
    HUNTER="Hunter",
    SHAMAN="Shaman",
    DRUID="Druid",
    MONK="Monk",
    PALADIN="Paladin"
}

Details

  • FrameXML populates the globals LOCALIZED_CLASS_NAMES_MALE and LOCALIZED_CLASS_NAMES_FEMALE using this function; you can access these tables directly instead of creating another copy.

See also

Advertisement