forked from public/foundryvtt-wh4-lang-fr-fr
Various translations fixes
This commit is contained in:
@ -2,23 +2,17 @@
|
||||
package.path = package.path .. ";luajson/?.lua"
|
||||
local JSON = require"json"
|
||||
|
||||
local path_in = "../tables/euphemism.json"
|
||||
local path_in = "/home/morr/Téléchargements/fvtt-RollTable-you-find-yourself-in-a-tavern-what-happens-next_.json"
|
||||
local f1 = io.open(path_in, "r")
|
||||
local strjson = f1:read("*a")
|
||||
f1:close()
|
||||
local tabData = JSON.decode(strjson)
|
||||
|
||||
local results = {}
|
||||
for idx, row in pairs(tabData.rows) do
|
||||
if row.range.Noun[1] then
|
||||
local min = row.range.Noun[1]
|
||||
local max = row.range.Noun[2]
|
||||
local field = tostring(min).."-"..tostring(max)
|
||||
--results[field] = "<b>"..row.name.."</b>:"..row.description
|
||||
results[field] = row.Noun.description
|
||||
print(field, row.name)
|
||||
end
|
||||
for idx, res in pairs(tabData.results) do
|
||||
results[res.range[1].."-"..res.range[2]] = res.text
|
||||
end
|
||||
|
||||
local entries = JSON.encode(results)
|
||||
print()
|
||||
print()
|
||||
|
Reference in New Issue
Block a user