Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
r41 release | 24.47 KB | Jan 26, 2023 | 10.0.5 +2 | 130 | Download |
r40 release | 24.50 KB | Jan 11, 2023 | 10.0.2 +2 | 103 | Download |
r39 release | 24.88 KB | Oct 25, 2022 | 10.0.2 +2 | 205 | Download |
r38 release | 24.79 KB | Sep 19, 2022 | 9.2.7 +2 | 140 | Download |
r37 release | 24.77 KB | Jun 3, 2022 | 9.2.5 +2 | 655 | Download |
r36 release | 11.38 KB | Mar 14, 2022 | 9.2.0 +2 | 173 | Download |
1.5.7-release +1 More release | 22.71 KB | Nov 3, 2021 | 1.14.0 +2 | 248 | Download |
1.5.6-release +1 More release | 21.94 KB | Jun 30, 2021 | 9.1.0 | 248 | Download |
1.5.5-release release | 10.57 KB | Mar 11, 2021 | 9.0.5 | 562 | Download |
1.5.4-release release | 10.55 KB | Feb 11, 2021 | 9.0.2 | 263 | Download |
1.5.3-release release | 6.50 KB | Feb 9, 2021 | 9.0.2 | 87 | Download |
1.5.2-release +1 More release | 21.92 KB | Nov 19, 2020 | 9.0.2 | 170 | Download |
1.5.1-release +1 More release | 21.92 KB | Oct 18, 2020 | 9.0.1 | 162 | Download |
1.5.0-release +1 More release | 21.97 KB | Nov 4, 2019 | 8.2.5 | 224 | Download |
1.4.1-release +1 More release | 21.74 KB | Jun 25, 2019 | 8.2.0 | 192 | Download |
1.4-release2 +1 More release | 21.74 KB | Mar 17, 2019 | 8.1.5 | 226 | Download |
1.4-release +1 More release | 22.02 KB | Jul 19, 2018 | 8.0.1 | 348 | Download |
1.3-release +1 More release | 20.78 KB | Oct 2, 2017 | 7.3.0 | 270 | Download |
1.2-8-release +1 More release | 20.70 KB | Sep 18, 2017 | 7.3.0 | 138 | Download |
1.2-7-release +1 More release | 20.74 KB | Sep 8, 2017 | 7.3.0 | 205 | Download |
1.2-release2 +1 More release | 20.74 KB | Sep 8, 2017 | 7.3.0 | 161 | Download |
1.1-release2 +1 More release | 19.29 KB | Sep 7, 2017 | 7.3.0 | 99 | Download |
1.1-release +1 More release | 19.40 KB | Sep 6, 2017 | 7.3.0 | 89 | Download |
1.0-Release3 +1 More release | 20.35 KB | Jun 12, 2017 | 7.2.0 | 207 | Download |
Description
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
Add a comment