diff --git a/frontend/gettext.lua b/frontend/gettext.lua index a68e1c374..cd52a7024 100644 --- a/frontend/gettext.lua +++ b/frontend/gettext.lua @@ -77,6 +77,8 @@ function GetText_mt.__index.changeLang(new_lang) s = line:match("^%s*\"(.*)\"%s*$") end if what and s then + -- unescape \n or msgid won't match + s = s:gsub("\\n", "\n") data[what] = (data[what] or "") .. s end end