mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
gettext: filter out more empty translations
This commit is contained in:
committed by
Frans de Jonge
parent
f2c678c205
commit
bfe329dfad
@@ -200,7 +200,7 @@ function GetText_mt.__index.changeLang(new_lang)
|
||||
local n = tonumber(k:match("msgstr%[([0-9]+)%]"))
|
||||
local msgstr = v
|
||||
|
||||
if n and msgstr then
|
||||
if n and msgstr and msgstr ~= "" then
|
||||
addTranslation(data.msgctxt, data.msgid, msgstr, n)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user