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:
committed by
GitHub
parent
fc13c00ef3
commit
5a6618cc57
@ -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
|
||||
|
Reference in New Issue
Block a user