diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 3 | ||||
-rw-r--r-- | doc/menu_lua_api.txt | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index e4e9985ac..bd465bbed 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1068,8 +1068,7 @@ minetest.pos_to_string({x=X,y=Y,z=Z}) -> "(X,Y,Z)" ^ Convert position to a printable string minetest.string_to_pos(string) -> position ^ Same but in reverse -minetest.formspec_escape(string) -> string -^ escapes characters like [, ], and \ that can not be used in formspecs +^ escapes characters [ ] \ , ; that can not be used in formspecs minetest namespace reference ----------------------------- diff --git a/doc/menu_lua_api.txt b/doc/menu_lua_api.txt index 3812f11fd..014e689dc 100644 --- a/doc/menu_lua_api.txt +++ b/doc/menu_lua_api.txt @@ -167,6 +167,13 @@ engine.file_open_dialog(formname,caption) ^ returns nil or selected file/folder Helpers: +engine.formspec_escape(string) -> string +^ escapes characters [ ] \ , ; that can not be used in formspecs +engine.gettext(string) -> string +^ look up the translation of a string in the gettext message catalog +fgettext(string, ...) -> string +^ call engine.gettext(string), replace "$1"..."$9" with the given +^ extra arguments, call engine.formspec_escape and return the result dump(obj, dumped={}) ^ Return object serialized as a string string:split(separator) |