Skip to content
Snippets Groups Projects
Commit ebc95f46 authored by Otowa Kotori's avatar Otowa Kotori
Browse files

updates i18n_helper

parent dc07ffcb
Branches newphantasm
No related tags found
1 merge request!628i18n Misc updates
......@@ -361,13 +361,17 @@ local function print_file(file_out, file_out_2)
lfs.mkdir("outputs")
local fn = "outputs/" .. shortname .. "." .. locale .. ".lua"
local ff = io.open(fn, "w")
ff:write(content)
ff:close()
if ff then
ff:write(content)
ff:close()
end
fn = output_filename[shortname]
print(fn)
ff = io.open(fn, "w")
ff:write(content)
ff:close()
if ff then
ff:write(content)
ff:close()
end
end
print(("%d / %d entries translated"):format(translated, all_entry))
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment