Added a type check when writing the locale files
This commit is contained in:
@@ -126,7 +126,7 @@ for idx, lang in ipairs(locale) do
|
|||||||
file:write("\n")
|
file:write("\n")
|
||||||
local L = localizedStrings[lang]
|
local L = localizedStrings[lang]
|
||||||
for idx, match in ipairs(work) do
|
for idx, match in ipairs(work) do
|
||||||
if L[match] then
|
if type(L[match]) == "string" then
|
||||||
file:write(string.format("L[\"%s\"] = \"%s\"\n", match, L[match]))
|
file:write(string.format("L[\"%s\"] = \"%s\"\n", match, L[match]))
|
||||||
else
|
else
|
||||||
local value = "true"
|
local value = "true"
|
||||||
|
|||||||
Reference in New Issue
Block a user