From a9981e351816868d92ce8ff826539a3c4fb2fabf Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 7 Jun 2016 20:29:06 +0100 Subject: Added intllib support (thanks Xanthin) --- admin.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'admin.lua') diff --git a/admin.lua b/admin.lua index 7844d53..219aff5 100644 --- a/admin.lua +++ b/admin.lua @@ -1,24 +1,26 @@ +local S = protector.intllib + protector.removal_names = "" minetest.register_chatcommand("delprot", { params = "", - description = "Remove Protectors near players with names provided (separate names with spaces)", + description = S("Remove Protectors near players with names provided (separate names with spaces)"), privs = {server = true}, func = function(name, param) if not param or param == "" then minetest.chat_send_player(name, - "Protector Names to remove: " - .. protector.removal_names) + S("Protector Names to remove: %1", + protector.removal_names)) return end if param == "-" then minetest.chat_send_player(name, - "Name List Reset") + S("Name List Reset")) protector.removal_names = "" -- cgit v1.2.3