1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Add '@n' escape sequences and some documentation on translated strings.

This commit is contained in:
Nathanaël Courant 2017-08-26 09:43:08 +02:00 committed by GitHub
parent fc13c00ef3
commit 5a6618cc57
3 changed files with 16 additions and 0 deletions

View file

@ -704,6 +704,8 @@ function core.translate(textdomain, str, ...)
end
arg_index = arg_index + 1
return ESCAPE_CHAR .. "F" .. arg[a] .. ESCAPE_CHAR .. "E"
elseif matched == "n" then
return "\n"
else
return matched
end