localization support added
This commit is contained in:
@@ -11126,19 +11126,29 @@ ItemIDsDatabase = {
|
||||
{"Vigorous Spaulders", {6051998, 51998, 397657, 397658, 397659, 397660, 397661, 397662, 397663, 397664, 397665, 397666, 397667, 397668} }
|
||||
}
|
||||
|
||||
|
||||
--[[
|
||||
AL_FindId(name, difficulty)
|
||||
Finds the Ids of other difficulties based on the name of the item and the difficulty parameter given.
|
||||
On the form of {Name, {normal, heroic, mythic, mythic1, mythic2, ... ,mythicN}}
|
||||
]]
|
||||
function AL_FindId(name, difficulty)
|
||||
for index, items in pairs(ItemIDsDatabase) do
|
||||
for key, eachItem in ipairs(items) do
|
||||
if eachItem == name then
|
||||
return items[2][difficulty]
|
||||
for i = 1, #ItemIDsDatabase do
|
||||
if ItemIDsDatabase[i][1] == name then
|
||||
return ItemIDsDatabase[i][2][difficulty]
|
||||
elseif ItemIDsDatabase[i][3] ~= nil and (ItemIDsDatabase[i][3] == name or ItemIDsDatabase[i][1] == name) then
|
||||
return ItemIDsDatabase[i][2][difficulty]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function AL_ItemDBLocalize(name, localization)
|
||||
for i = 1, #ItemIDsDatabase do
|
||||
if ItemIDsDatabase[i][1] == name then
|
||||
ItemIDsDatabase[i][3] = localization
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- https://replit.com/languages/lua
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
-- NOTE: THIS FILE IS AUTO-GENERATED BY A TOOL, ANY MANUALLY CHANGE MIGHT BE OVERWRITTEN.
|
||||
-- $Id: localization.lua 2725 2010-07-18 16:25:23Z arith $
|
||||
|
||||
local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then AtlasLoot_Data[category][i][4] = data[i] end end data = nil end
|
||||
local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then
|
||||
AL_ItemDBLocalize(string.sub(AtlasLoot_Data[category][i][4], 5), string.sub(data[i], 5));
|
||||
AtlasLoot_Data[category][i][4] = data[i]; end end data = nil end
|
||||
local locale = GetLocale()
|
||||
if locale == "frFR" then
|
||||
process("Aldor1",16,{"","=q2=Dessin : Draénite dorée resplendissante","=q1=Plans : Brassards plaie-des-flammes","=q1=Patron : Brassards coeur-de-flammes","","=q3=Robe d'anachorète","=q2=Calligraphie de discipline","=q2=Calligraphie de foi","=q2=Calligraphie de vengeance","=q2=Calligraphie de sauvegarde","=q2=Dessin : Draénite ombreuse royale","=q1=Plans : Gants plaie-des-flammes","=q1=Patron : Ceinture de déminage","=q1=Patron : Ceinture en flamécaille","=q1=Patron : Gants coeur-de-flammes","=q1=Patron : Fil ensorcelé argenté"})
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
-- NOTE: THIS FILE IS AUTO-GENERATED BY A TOOL, ANY MANUALLY CHANGE MIGHT BE OVERWRITTEN.
|
||||
-- $Id: localization.lua 2725 2010-07-18 16:25:23Z arith $
|
||||
|
||||
local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then AtlasLoot_Data[category][i][4] = data[i] end end data = nil end
|
||||
local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then
|
||||
AL_ItemDBLocalize(string.sub(AtlasLoot_Data[category][i][4], 5), string.sub(data[i], 5));
|
||||
AtlasLoot_Data[category][i][4] = data[i]; end end data = nil end
|
||||
local locale = GetLocale()
|
||||
if locale == "frFR" then
|
||||
process("AB2039_A",22,{"","=q3=Ceinturon des Hautes-terres en tissu","=q3=Bottes des Hautes-terres en tissu","=q3=Ceinturon des Hautes-terres en cuir","=q3=Ceinturon des Hautes-terres en cuir de lézard","=q3=Bottes des Hautes-terres en cuir","=q3=Bottes des Hautes-terres en cuir de lézard","","=q3=Ceinturon des Hautes-terres en tissu","=q3=Bottes des Hautes-terres en tissu","=q3=Ceinturon des Hautes-terres en cuir","=q3=Ceinturon des Hautes-terres en cuir de lézard","=q3=Ceinturon des Hautes-terres en mailles","=q3=Ceinturon matelassé des Hautes-terres","=q3=Bottes des Hautes-terres en cuir","=q3=Bottes des Hautes-terres en cuir de lézard","=q3=Grèves des Hautes-terres en mailles","=q3=Grèves matelassées des Hautes-terres","=q3=Ceinturon des Hautes-terres lamellaire","=q3=Ceinturon des Hautes-terres en mailles","=q3=Grèves des Hautes-terres lamellaires","=q3=Grèves des Hautes-terres en mailles"})
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
-- NOTE: THIS FILE IS AUTO-GENERATED BY A TOOL, ANY MANUALLY CHANGE MIGHT BE OVERWRITTEN.
|
||||
-- $Id: localization.lua 2725 2010-07-18 16:25:23Z arith $
|
||||
|
||||
local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then AtlasLoot_Data[category][i][4] = data[i] end end data = nil end
|
||||
local process = function(category,check,data) if not AtlasLoot_Data[category] or #AtlasLoot_Data[category] ~= check then return end for i = 1, #data do if data[i] and data[i] ~= "" then
|
||||
AL_ItemDBLocalize(string.sub(AtlasLoot_Data[category][i][4], 5), string.sub(data[i], 5));
|
||||
AtlasLoot_Data[category][i][4] = data[i]; end end data = nil end
|
||||
local locale = GetLocale()
|
||||
if locale == "frFR" then
|
||||
process("AhnkahetAmanitarHEROIC",5,{"=q4=Emblème de triomphe","=q3=Protège-mains du pont en soie","=q3=Garde-jambes des attaques incessantes","=q3=Amulette du lanceur de sort","=q3=Arc-crâne d'Amanitar"})
|
||||
|
||||
Reference in New Issue
Block a user