From 0fad786123442b6970135d415bebe9c7667ddebe Mon Sep 17 00:00:00 2001 From: alek13 Date: Sat, 16 Sep 2023 21:47:35 +0300 Subject: [PATCH] Mobs: Trader: extract form. Closes lord-server/lord#1147 --- minetest_types.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/minetest_types.lua b/minetest_types.lua index 28d9705..c8f7d7e 100644 --- a/minetest_types.lua +++ b/minetest_types.lua @@ -194,7 +194,10 @@ function minetest.get_hit_params(groups, tool_capabilities , time_from_last_punc --- As an extra commodity, if `textdomain` is nil, it is assumed to be "" instead. --- --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L3329-L3338) -function minetest.get_translator(textdomain) end +--- +--- @param text_domain string +--- @return fun(str: string, ...) +function minetest.get_translator(text_domain) end --- translates the string `str` with --- the given `textdomain` for disambiguation. The textdomain must match the --- textdomain specified in the translation file in order to get the string