Ajout traduction des jobs, par Thargos

This commit is contained in:
2021-12-28 10:45:38 +01:00
parent b7f25c99eb
commit 3b7b03f578
5 changed files with 457 additions and 317 deletions

View File

@ -2,7 +2,7 @@
package.path = package.path .. ";luajson/?.lua"
local JSON = require"json"
local path_in = "../tables/job.json"
local path_in = "../tables/euphemism.json"
local f1 = io.open(path_in, "r")
local strjson = f1:read("*a")
f1:close()
@ -10,12 +10,12 @@ local tabData = JSON.decode(strjson)
local results = {}
for idx, row in pairs(tabData.rows) do
if row.range.Pourquoi[1] then
local min = row.range.Pourquoi[1]
local max = row.range.Pourquoi[2]
if row.range.Participle[1] then
local min = row.range.Participle[1]
local max = row.range.Participle[2]
local field = tostring(min).."-"..tostring(max)
--results[field] = "<b>"..row.name.."</b>:"..row.description
results[field] = row.Pourquoi.description
results[field] = row.Participle.description
print(field, row.name)
end
end