mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
don't accept empty strings as valid translations
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user