Added a type check when writing the locale files

This commit is contained in:
Hendrik Leppkes
2008-09-29 11:00:13 +02:00
parent c172c7770b
commit ca8e48aeec
+1 -1
View File
@@ -126,7 +126,7 @@ for idx, lang in ipairs(locale) do
file:write("\n")
local L = localizedStrings[lang]
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]))
else
local value = "true"