WoW LibRaces-1.0 addon Shadowlands/classic 2020
logo
wow addon LibRaces-1.0

LibRaces-1.0

Game Version: 9.0.2
Total Downloads: 1,477
Updated: Nov 19, 2020
Created: Jun 12, 2017
download LibRaces-1.0Download Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
1.5.2-release +1 More release 21.92 KB Nov 19, 2020 9.0.2 0 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 76 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 151 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 138 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 219 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 166 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 73 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 46 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 36 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 31 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 98 download LibRaces-1.0 1.0-Release3

+1 More releaseDownload

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