Merge pull request #1215 from Frenzie/gettext

gettext: unescape \n
pull/1226/head
Huang Xin 10 years ago
commit 49d5a1b71e

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