From 7a5ed53e88e6339f3595d4763e4c9e376a369d67 Mon Sep 17 00:00:00 2001 From: 1F616EMO Date: Fri, 2 Aug 2024 19:59:14 +0800 Subject: [PATCH] Translate OK --- init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index da106c3..c5063ac 100644 --- a/init.lua +++ b/init.lua @@ -25,11 +25,13 @@ ]] local S = minetest.get_translator("basket") +local F = minetest.formspec_escape +local FS = function(...) return F(S(...)) end local formspec = "size[8,10]" .. - "label[0,0.2;" .. S("Name:") .. "]" .. + "label[0,0.2;" .. FS("Name:") .. "]" .. "field[1.5,0.3;5,1;infotext;;${basket_description}]" .. - "button[7,0;1,1;btn;OK]" .. + "button[7,0;1,1;btn;" .. FS("OK") .. "]" .. "list[context;main;0,1.3;8,4;]" .. "list[current_player;main;0,5.85;8,1;]" .. "list[current_player;main;0,7.08;8,3;8]" ..