summaryrefslogtreecommitdiff
path: root/doc/menu_lua_api.txt
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-08-14 19:22:23 +0200
committerPilzAdam <pilzadam@minetest.net>2013-08-17 16:01:43 +0200
commit09a50d0458f46c6129b4bea94502908241b3aed3 (patch)
tree57a2094750b7d47446a05fe1f8a64a8bca490fe8 /doc/menu_lua_api.txt
parent787b43b2183262a08726434e2597638ad85bfb72 (diff)
downloadminetest-09a50d0458f46c6129b4bea94502908241b3aed3.tar.gz
minetest-09a50d0458f46c6129b4bea94502908241b3aed3.tar.bz2
minetest-09a50d0458f46c6129b4bea94502908241b3aed3.zip
Add translation for main menu
Add engine.gettext() and remove gettext() calls in guiFormspecMenu.cpp
Diffstat (limited to 'doc/menu_lua_api.txt')
-rw-r--r--doc/menu_lua_api.txt7
1 files changed, 7 insertions, 0 deletions
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)