diff options
author | Nathanaƫl Courant <Ekdohibs@users.noreply.github.com> | 2017-08-26 09:43:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-26 09:43:08 +0200 |
commit | 5a6618cc57097e1e7205ad6b1d967a3ad79d016e (patch) | |
tree | b44ba4000a020d4183a2599cc717cf2e1ce49c1e /builtin/common | |
parent | fc13c00ef3e9b6f280146f3d77b6659fcc55a13c (diff) | |
download | minetest-5a6618cc57097e1e7205ad6b1d967a3ad79d016e.tar.gz minetest-5a6618cc57097e1e7205ad6b1d967a3ad79d016e.tar.bz2 minetest-5a6618cc57097e1e7205ad6b1d967a3ad79d016e.zip |
Add '@n' escape sequences and some documentation on translated strings.
Diffstat (limited to 'builtin/common')
-rw-r--r-- | builtin/common/misc_helpers.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua index 67eda11f3..5fc589b72 100644 --- a/builtin/common/misc_helpers.lua +++ b/builtin/common/misc_helpers.lua @@ -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 |