From 6bbfae389aedcc9cf3f29dee654eca11e6de1362 Mon Sep 17 00:00:00 2001 From: Hans-Werner Hilse Date: Fri, 23 May 2014 11:57:33 +0200 Subject: [PATCH] don't accept empty strings as valid translations --- frontend/gettext.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/gettext.lua b/frontend/gettext.lua index c1fbafc9c..895f8d56c 100644 --- a/frontend/gettext.lua +++ b/frontend/gettext.lua @@ -54,7 +54,7 @@ function GetText_mt.__index.changeLang(new_lang) while true do local line = po:read("*l") if line == nil or line == "" then - if data.msgid and data.msgstr then + if data.msgid and data.msgstr and data.msgstr ~= "" then GetText.translation[data.msgid] = string.gsub(data.msgstr, "\\(.)", c_escape) end -- stop at EOF: