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:
parent
fc13c00ef3
commit
5a6618cc57
3 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue