img



img

LibRaces-1.0


By: hizuro_de
Addon | img 8,613




Description

___________________________________________________________________________________________________________________________

Here is a small library that will translate race names from local dialects to English names, such as "Mensch", "Human". This is a little library to translate localized race names into english names like "Mensch" to "Human".

New description coming soon... :)

Add-ons

lib = LibStub("LibRaces-1.0")

API

lib:GetRaceToken( )

Example:

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

Arguments:

RaceName - name of the race (in all languages supported by client)

Return Values

EnglishToken without the spacer behind characters names or realm names

lib:GetRaceName( [, [, ]])

Examples:

Orc (english)

"Orco", "Orchessa" = lib:GetRaceName("Orc","itIT")

Blood Elf (Russian for female Portuguese)

"Elfa Sangrenta" = lib:GetRaceName("El'f krovi","ptPT",2)

Arguments:

RaceName - name of the race (supported in all languages by client)

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 Argument:

raceNameMale - male race name in choosen language

RaceNameFemale is the female name of race in your chosen language

Return Values with Argument 3.

RaceName in the language of your choice - neutral race names for men or women

lib:GetLanguageByRaceNamelib( )

Example:

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

Arguments:

RaceName - name of the race (all languages supported by client)

 

 

 

Return Values

 

LanguageCodeN is a list that matches the given race with corresponding language codes

 

 

 

lib:GetGenderByRaceName( )

Example:

 

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

Arguments:

 

RaceName - name of the race (all languages supported by client)

 

 

 

Return Values

 

GenderIndex: 0=Neutral; 1=Male; 2=Female

 

genderName - english gender name (uppercase)




About Project

Created: March 2nd 2024

Updated: March 2nd 2024

Project ID: 6249

License: All Rights Reserved

__________________________________________

Game Versions:

1.01.03

1.01.03

1.01.03

1.01.03

1.01.03

__________________________________________

Flavors:

WoW Retail

__________________________________________

Categories

Companions

Battle

__________________________________________

Main File

hizuro_de_LibRaces-1.0.zip
  • Release
  • March 2nd 2024

    __________________________________________

    Recent File

    hizuro_de_LibRaces-1.0.zip
  • Release
  • March 2nd 2024

    __________________________________________

    Members

    img
    hizuro_de
    Owner

    __________________________________________

    Report