gettext: filter out more empty translations

This commit is contained in:
Benoit Pierre
2025-06-19 23:23:29 +02:00
committed by Frans de Jonge
parent f2c678c205
commit bfe329dfad

View File

@@ -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