Don't return empty translations

This commit is contained in:
ShadowNinja 2013-11-27 12:38:59 -05:00
parent 377dc784cd
commit 934ca0492c
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,10 @@ function intllib.Getter(modname)
local msgstr = load_strings(filename)
if msgstr then
intllib.getters[modname] = function (s)
return msgstr[s] or s
if msgstr[s] and msgstr[s] ~= "" then
return msgstr[s]
end
return s
end
else
intllib.getters[modname] = noop_getter