1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-03 08:20:23 +02: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