712
modifications
(Test traduction Stages et Modes) |
(Traduction) |
||
Ligne 2 : | Ligne 2 : | ||
-- Tablas con las traducciones | -- Tablas con las traducciones | ||
local | local translatedStage = { | ||
--Splatoon | --Splatoon | ||
Ligne 90 : | Ligne 90 : | ||
} | } | ||
local | local translatedMode = { | ||
["Regular Battle"] = "Match Classique", | ["Regular Battle"] = "Match Classique", | ||
Ligne 113 : | Ligne 113 : | ||
["Recon (mode)"] = "Balade", | ["Recon (mode)"] = "Balade", | ||
} | } | ||
local | local translatedMatchsChallenge = { | ||
["New Season Challenge"] = "Reto inaugural de temporada", | ["New Season Challenge"] = "Reto inaugural de temporada", | ||
["Too Many Trizookas!"] = "Certamen del tintazuca triple", | ["Too Many Trizookas!"] = "Certamen del tintazuca triple", | ||
Ligne 153 : | Ligne 153 : | ||
} | } | ||
local | local translatedCategorieArme = { | ||
["Shooter"] = "Lanzatintas", | ["Shooter"] = "Lanzatintas", | ||
["Blaster"] = "Devastador", | ["Blaster"] = "Devastador", | ||
Ligne 167 : | Ligne 167 : | ||
} | } | ||
local | local translatedArme = { | ||
["Main"] = "Principal", | ["Main"] = "Principal", | ||
["Sub"] = "Secundaria", | ["Sub"] = "Secundaria", | ||
Ligne 488 : | Ligne 488 : | ||
} | } | ||
local | local translatedType = { | ||
["Main"] = "Principal", | ["Main"] = "Principal", | ||
["Sub"] = "Secundaria", | ["Sub"] = "Secundaria", | ||
Ligne 494 : | Ligne 494 : | ||
} | } | ||
local | local translatedEquipement = { | ||
["Headgear"] = "Accesorio", | ["Headgear"] = "Accesorio", | ||
["Clothing"] = "Ropa", | ["Clothing"] = "Ropa", | ||
Ligne 1 338 : | Ligne 1 338 : | ||
} | } | ||
local | local translatedMarque = { | ||
["amiibo"] = "amiibo", | ["amiibo"] = "amiibo", | ||
["Annaki"] = "Annak", | ["Annaki"] = "Annak", | ||
Ligne 1 364 : | Ligne 1 364 : | ||
} | } | ||
local | local translatedBonus = { | ||
--Nombres | --Nombres | ||
["Abilities"] = "Potenciadores", | ["Abilities"] = "Potenciadores", | ||
Ligne 1 420 : | Ligne 1 420 : | ||
} | } | ||
local | local translatedPersonnage = { | ||
--Dúos o tríos musicales / Presentadores | --Dúos o tríos musicales / Presentadores | ||
["Callie"] = "Mar", | ["Callie"] = "Mar", | ||
Ligne 1 487 : | Ligne 1 487 : | ||
} | } | ||
local | local translatedEspece = { | ||
["Inklings"] = "Inklings", | ["Inklings"] = "Inklings", | ||
["Inkling"] = "Inkling", | ["Inkling"] = "Inkling", | ||
Ligne 1 499 : | Ligne 1 499 : | ||
} | } | ||
local | local translatedOctarien = { | ||
--Terrestres | --Terrestres | ||
Ligne 1 605 : | Ligne 1 605 : | ||
} | } | ||
local | local translatedSalmonoide = { | ||
--Menores | --Menores | ||
Ligne 1 658 : | Ligne 1 658 : | ||
} | } | ||
local | local translatedSquelecaille = { | ||
["Jelleton"] = "Esquealeta", | ["Jelleton"] = "Esquealeta", | ||
["Jelletons"] = "Esquealetas", | ["Jelletons"] = "Esquealetas", | ||
Ligne 1 686 : | Ligne 1 686 : | ||
} | } | ||
local | local translatedGroupe = { | ||
["Squid Sisters"] = "Calamarciñas", | ["Squid Sisters"] = "Calamarciñas", | ||
["Off the Hook"] = "Cefalopop", | ["Off the Hook"] = "Cefalopop", | ||
Ligne 1 692 : | Ligne 1 692 : | ||
} | } | ||
local | local translatedLieu = { | ||
--Cromópolis | --Cromópolis | ||
["Inkopolis"] = "Cromópolis", | ["Inkopolis"] = "Cromópolis", | ||
Ligne 1 768 : | Ligne 1 768 : | ||
} | } | ||
local | local translatedMonnaie = { | ||
["Cash"] = "Dinero", | ["Cash"] = "Dinero", | ||
["Super Sea Snail"] = "Supermolusco", | ["Super Sea Snail"] = "Supermolusco", | ||
Ligne 1 794 : | Ligne 1 794 : | ||
} | } | ||
local | local translatedEncas = { | ||
--Comida | --Comida | ||
["Deep-Fried Shwaffle"] = "Gofre rebozado con nata", | ["Deep-Fried Shwaffle"] = "Gofre rebozado con nata", | ||
Ligne 1 834 : | Ligne 1 834 : | ||
} | } | ||
local | local translatedCollectionnable = { | ||
--Nivel | --Nivel | ||
["Level"] = "Nivel", | ["Level"] = "Nivel", | ||
Ligne 1 851 : | Ligne 1 851 : | ||
} | } | ||
local | local translatedCatalogue = { | ||
["Catalog"] = "Catálogo", | ["Catalog"] = "Catálogo", | ||
} | } | ||
local | local translatedSaison = { | ||
["Temporada"] = "Season", | ["Temporada"] = "Season", | ||
["Temporadas"] = "Seasons", | ["Temporadas"] = "Seasons", | ||
Ligne 1 870 : | Ligne 1 870 : | ||
} | } | ||
local | local translatedPuceChromatique = { | ||
["Color chip"] = "Cromochip", | ["Color chip"] = "Cromochip", | ||
["Color chips"] = "Cromochips", | ["Color chips"] = "Cromochips", | ||
Ligne 1 955 : | Ligne 1 955 : | ||
} | } | ||
local | local translatedMedaille = { | ||
["Medal"] = "Galardón", | ["Medal"] = "Galardón", | ||
["Medals"] = "Galardones", | ["Medals"] = "Galardones", | ||
} | } | ||
local | local translatedMecanique = { | ||
--Básico | --Básico | ||
["Spawner drone"] = "Dron de aparición", | ["Spawner drone"] = "Dron de aparición", | ||
Ligne 2 143 : | Ligne 2 143 : | ||
-- Tablas con las traducciones invertidas | -- Tablas con las traducciones invertidas | ||
local | local invertedStage = invertTable(translatedStage) | ||
local | local invertedMode = invertTable(translatedMode) | ||
local | local invertedMatchsChallenge = invertTable(translatedMatchsChallenge) | ||
local | local invertedCategorieArme = invertTable(translatedCategorieArme) | ||
local | local invertedArme = invertTable(translatedArme) | ||
local | local invertedType = invertTable(translatedType) | ||
local | local invertedEquipement = invertTable(translatedEquipement) | ||
local | local invertedMarque = invertTable(translatedMarque) | ||
local | local invertedBonus = invertTable(translatedBonus) | ||
local | local invertedPersonnage = invertTable(translatedPersonnage) | ||
local | local invertedEspece = invertTable(translatedEspece) | ||
local | local invertedOctarien = invertTable(translatedOctarien) | ||
local | local invertedSalmonoide = invertTable(translatedSalmonoide) | ||
local | local invertedSquelecaille = invertTable(translatedSquelecaille) | ||
local | local invertedGroupe = invertTable(translatedGroupe) | ||
local | local invertedLieu = invertTable(translatedLieu) | ||
local | local invertedMonnaie = invertTable(translatedMonnaie) | ||
local | local invertedEncas = invertTable(translatedEncas) | ||
local | local invertedCollectionnable = invertTable(translatedCollectionnable) | ||
local | local invertedCatalogue = invertTable(translatedCatalogue) | ||
local | local invertedSaison = invertTable(translatedSaison) | ||
local | local invertedMedaille = invertTable(translatedMedaille) | ||
local | local invertedPuceChromatique = invertTable(translatedPuceChromatique) | ||
local | local invertedMecanique = invertTable(translatedMecanique) | ||
-- Funciones principales para obtener los nombres de cada lista | -- Funciones principales para obtener los nombres de cada lista | ||
function p. | function p.getStage(valor) | ||
return | return translatedStage[valor] or invertedStage[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getMode(valor) | ||
return | return translatedMode[valor] or invertedMode[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getStageChallenge(valor) | ||
return | return translatedStage[valor] or invertedStage[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getMatchsChallenge(valor) | ||
return | return invertedMatchsChallenge[valor] or translatedMatchsChallenge[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getCategorieArme(valor) | ||
return | return invertedCategorieArme[valor] or translatedCategorieArme[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getArme(valor) | ||
return | return invertedArme[valor] or translatedArme[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getType(valor) | ||
return | return invertedType[valor] or translatedType[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getEquipement(valor) | ||
return | return invertedEquipement[valor] or translatedEquipement[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getMarque(valor) | ||
return | return invertedMarque[valor] or translatedMarque[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getBonus(valor) | ||
return | return invertedBonus[valor] or translatedBonus[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getPersonnage(valor) | ||
return | return invertedPersonnage[valor] or translatedPersonnage[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getEspece(valor) | ||
return | return invertedEspece[valor] or translatedEspece[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getOctarien(valor) | ||
return | return invertedOctarien[valor] or translatedOctarien[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getSalmonoide(valor) | ||
return | return invertedSalmonoide[valor] or translatedSalmonoide[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getSquelecaille(valor) | ||
return | return invertedSquelecaille[valor] or translatedSquelecaille[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getGroupe(valor) | ||
return | return invertedGroupe[valor] or translatedGroupe[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getLieu(valor) | ||
return | return invertedLieu[valor] or translatedLieu[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getMonnaie(valor) | ||
return | return invertedMonnaie[valor] or translatedMonnaie[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getEncas(valor) | ||
return | return invertedEnCas[valor] or translatedEnCas[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getCollectionnable(valor) | ||
return | return invertedCollectionnable[valor] or translatedCollectionnable[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getCatalogue(valor) | ||
return | return invertedCatalogue[valor] or translatedCatalogue[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getSaison(valor) | ||
return | return invertedSaison[valor] or translatedSaison[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getMedaille(valor) | ||
return | return invertedMedaille[valor] or translatedMedaille[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getPuceChromatique(valor) | ||
return | return invertedPuceChromatique[valor] or translatedPuceChromatique[valor] or getError("valor") | ||
end | end | ||
function p. | function p.getMecanique(valor) | ||
return | return invertedMecanique[valor] or translatedMecanique[valor] or getError("valor") | ||
end | end | ||
Ligne 2 277 : | Ligne 2 277 : | ||
tipoNormalizado = genericType(tipoNormalizado) | tipoNormalizado = genericType(tipoNormalizado) | ||
-- Aplicar la traducción según el tipo | -- Aplicar la traducción según el tipo | ||
if tipoNormalizado == " | if tipoNormalizado == "stage" or tipoNormalizado == "stage" then | ||
return p. | return p.getStage(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "mode" or tipoNormalizado == "mode" then | ||
return p. | return p.getMode(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "matchschallenge" or tipoNormalizado == "matchsdechallenge" or tipoNormalizado == "challenge" then | ||
return p. | return p.getMatchsChallenge(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "catégoriearme" or tipoNormalizado == "catégoridarme" or tipoNormalizado == "classe" or tipoNormalizado == "classearme" or tipoNormalizado == "classedarme" or tipoNormalizado == "class" or tipoNormalizado == "weaponclass" then | ||
return p. | return p.getCategorieArme(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "arme" or tipoNormalizado == "weapon" then | ||
return p. | return p.getArme(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "type" or tipoNormalizado == "category" then | ||
return p. | return p.getType(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "équipement" or tipoNormalizado == "gear" then | ||
return p. | return p.getEquipement(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "marque" or tipoNormalizado == "brand" then | ||
return p. | return p.getMarque(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "bonus" or tipoNormalizado == "capacité" or tipoNormalizado == "ability" then | ||
return p. | return p.getBonus(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "personnage" or tipoNormalizado == "character" then | ||
return p. | return p.getPersonnage(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "espèce" or tipoNormalizado == "species" or tipoNormalizado == "race" then | ||
return p. | return p.getEspece(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "octarien" or tipoNormalizado == "octarian" then | ||
return p. | return p.getOctarien(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "salmonoïde" or tipoNormalizado == "salmonid" then | ||
return p. | return p.getSalmonoide(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "squelécaille" or tipoNormalizado == "jelleton" then | ||
return p. | return p.getSquelecaille(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "groupe" or tipoNormalizado == "band" then | ||
return p. | return p.getGroupe(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "lieu" or tipoNormalizado == "emplacement" or tipoNormalizado == "location" then | ||
return p. | return p.getLieu(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "monnaie" or tipoNormalizado == "cash" or tipoNormalizado == "sou" or tipoNormalizado == "money" then | ||
return p. | return p.getMonnaie(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "en-cas" or tipoNormalizado == "food" or tipoNormalizado == "boisson" or tipoNormalizado == "drink" then | ||
return p. | return p.getEnCas(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "collectionnable" or tipoNormalizado == "collectable" or tipoNormalizado == "collection" then | ||
return p. | return p.getCollectionnable(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "catalogue" or tipoNormalizado == "catalog" then | ||
return p. | return p.getCatalogue(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "saison" or tipoNormalizado == "season" then | ||
return p. | return p.getSaison(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "médaille" or tipoNormalizado == "medal" then | ||
return p. | return p.getMedaille(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "pucechromatique" or tipoNormalizado == "colorchip" then | ||
return p. | return p.getPuceChromatique(valor) | ||
elseif tipoNormalizado == " | elseif tipoNormalizado == "mécanique" or tipoNormalizado == "mechanic" then | ||
return p. | return p.getMecanique(valor) | ||
else | else | ||
return getError("tipo") | return getError("tipo") |
modifications