2020-05-31 10:10:58 +02:00
|
|
|
package.path = package.path .. ";luajson/?.lua"
|
|
|
|
local JSON = require"json"
|
|
|
|
|
2021-10-18 15:44:35 +02:00
|
|
|
local enjsonf = "../../WFRP4e-FoundryVTT/lang/en.json.NEW"
|
2020-05-31 10:10:58 +02:00
|
|
|
local frjsonf = "../fr.json"
|
|
|
|
|
|
|
|
local fp = io.open(enjsonf, "r")
|
|
|
|
local entags = JSON.decode( fp:read("*a") )
|
|
|
|
fp:close()
|
|
|
|
|
|
|
|
fp = io.open(frjsonf, "r")
|
|
|
|
local frtags = JSON.decode( fp:read("*a") )
|
|
|
|
fp:close()
|
|
|
|
|
|
|
|
for tag, value in pairs(entags) do
|
|
|
|
if not frtags[tag] then
|
2021-08-26 21:01:54 +02:00
|
|
|
print('"'..tag..'":"'.. value..'",')
|
2020-05-31 10:10:58 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|