summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 5ae02a5..aa2af62 100644
--- a/init.lua
+++ b/init.lua
@@ -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