forked from public/foundryvtt-wh4-lang-fr-fr
Sync to latest 1.5.3
This commit is contained in:
21
tools/detect_missing_strings.lua
Normal file
21
tools/detect_missing_strings.lua
Normal file
@ -0,0 +1,21 @@
|
||||
package.path = package.path .. ";luajson/?.lua"
|
||||
local JSON = require"json"
|
||||
|
||||
local enjsonf = "../../WFRP-4th-Edition-FoundryVTT/lang/en.json"
|
||||
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
|
||||
print("Missing tag not found", tag, value)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user