gettext: unescape \n

Fixes the problem that any msgid with \n in it wouldn't show up translated.
pull/1215/head
Frans de Jonge 10 years ago
parent fad702b6d5
commit ab442c2434

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

Loading…
Cancel
Save