WoW LibRaces-1.0 addon Shadowlands/Burning Crusade Classic 2021
logo
wow addon LibRaces-1.0

LibRaces-1.0

Game Version: 9.0.5
Total Downloads: 1,972
Updated: Mar 11, 2021
Created: Jun 12, 2017
download LibRaces-1.0Download Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
1.5.5-release release 10.57 KB Mar 11, 2021 9.0.5 169 download LibRaces-1.0 1.5.5-release releaseDownload
1.5.4-release release 10.55 KB Feb 11, 2021 9.0.2 113 download LibRaces-1.0 1.5.4-release releaseDownload
1.5.3-release release 6.50 KB Feb 9, 2021 9.0.2 44 download LibRaces-1.0 1.5.3-release releaseDownload
1.5.2-release +1 More release 21.92 KB Nov 19, 2020 9.0.2 90 download LibRaces-1.0 1.5.2-release

+1 More releaseDownload
1.5.1-release +1 More release 21.92 KB Oct 18, 2020 9.0.1 79 download LibRaces-1.0 1.5.1-release

+1 More releaseDownload
1.5.0-release +1 More release 21.97 KB Nov 4, 2019 8.2.5 157 download LibRaces-1.0 1.5.0-release

+1 More releaseDownload
1.4.1-release +1 More release 21.74 KB Jun 25, 2019 8.2.0 137 download LibRaces-1.0 1.4.1-release

+1 More releaseDownload
1.4-release2 +1 More release 21.74 KB Mar 17, 2019 8.1.5 139 download LibRaces-1.0 1.4-release2

+1 More releaseDownload
1.4-release +1 More release 22.02 KB Jul 19, 2018 8.0.1 220 download LibRaces-1.0 1.4-release

+1 More releaseDownload
1.3-release +1 More release 20.78 KB Oct 2, 2017 7.3.0 168 download LibRaces-1.0 1.3-release

+1 More releaseDownload
1.2-8-release +1 More release 20.70 KB Sep 18, 2017 7.3.0 71 download LibRaces-1.0 1.2-8-release

+1 More releaseDownload
1.2-7-release +1 More release 20.74 KB Sep 8, 2017 7.3.0 74 download LibRaces-1.0 1.2-7-release

+1 More releaseDownload
1.2-release2 +1 More release 20.74 KB Sep 8, 2017 7.3.0 47 download LibRaces-1.0 1.2-release2

+1 More releaseDownload
1.1-release2 +1 More release 19.29 KB Sep 7, 2017 7.3.0 39 download LibRaces-1.0 1.1-release2

+1 More releaseDownload
1.1-release +1 More release 19.40 KB Sep 6, 2017 7.3.0 32 download LibRaces-1.0 1.1-release

+1 More releaseDownload
1.0-Release3 +1 More release 20.35 KB Jun 12, 2017 7.2.0 99 download LibRaces-1.0 1.0-Release3

+1 More releaseDownload
1.5.3-release-1-g78ef8f1 alpha 10.57 KB Feb 11, 2021 9.0.2 4 download LibRaces-1.0 1.5.3-release-1-g78ef8f1 alphaDownload

Description

Share this:

Description

This is a little library to translate localized race names to english names like “Mensch” to “Human”. (Female and male names)
New description coming soon… 🙂

To use in addons

lib = LibStub("LibRaces-1.0")

API

 

lib:GetRaceToken(<raceName>)

Example:

"NightElf", "Night Elf" = lib:GetRaceToken("Elfe de la nuit")

Arguments:

raceName – race name (all client supported languages)

 

Return values:

englishToken – english version without spacer like realm name behind character names

 

lib:GetRaceName(<raceName>[,<languageCode>[,<gender>]])

Examples:

-- Orc [english to italian]
"Orco", "Orchessa" = lib:GetRaceName("Orc","itIT")
 -- Blood Elf [Russian to female portuguese]
"Elfa Sangrenta" = lib:GetRaceName("Эльф крови","ptPT",2)

Arguments:

raceName – race name (all client supported languages)

languageCode – deDE, enGB, enUS, esES, esMX, frFR, itIT, koKR, ptBR, ptPT, ruRU, zhCN, zhTW

or de, en, es, mx, fr, it, ko, pt, br, ru, cn, tw

genderIndex – 0=Neutral, 1=Male, 2=Female

 

Return values without 3. argument:

raceNameMale – male race name in choosen language

raceNameFemale – female race name in choosen language

 

Return values with 3. argument:

raceName – neutral, male or female race name in choosen language

 

lib:GetLanguageByRaceNamelib(<raceName>)

Example:

"deDE","enGB","enUS","frFR","itIT","ptBT","ptPT" = lib:GetLanguageByRaceName("Troll")

Arguments:

raceName – race name (all client supported languages)

 

Return values:

languageCodeN – a list of language code matching with given race name

 

lib:GetGenderByRaceName(<raceName>)

Example:

2, "FEMALE" = lib:GetGenderByRaceName("Nachtelfe") -- german female night elf

Arguments:

raceName – race name (all client supported languages)

 

Return values:

genderIndex – 0=Neutral, 1=Male, 2=Female

genderName – english gender name (uppercase)

Hizuro’s other projects

 • https://www.curseforge.com/members/hizuro_de/projects

Comments

Add a comment