From ca8e48aeecbf71f2db848807c3cfdcd497cc3f80 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Mon, 29 Sep 2008 11:00:13 +0200 Subject: [PATCH] Added a type check when writing the locale files --- locale/Babelfish.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/Babelfish.lua b/locale/Babelfish.lua index 3efabf1..d88546e 100644 --- a/locale/Babelfish.lua +++ b/locale/Babelfish.lua @@ -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"