diff --git a/commands.lua b/commands.lua index 48b64be..3a98538 100644 --- a/commands.lua +++ b/commands.lua @@ -1,3 +1,5 @@ +local S = minetest.get_translator("whitelist") + ChatCmdBuilder.new("whitelist", function(cmd) cmd:sub("off", function(sender) @@ -21,6 +23,7 @@ ChatCmdBuilder.new("whitelist", function(cmd) end) end, { - description = "whitelist commands", + description = S("Whitelist commands. is only needed for 'add' and 'remove'"), + params = " [<" .. S("player") .. ">]", privs = { server = true } }) diff --git a/locale/template.txt b/locale/template.txt index 4b49863..f8202c2 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -1,4 +1,4 @@ -# version 1.1.1 +# version 1.2.0 # author(s): # reviewer(s): # textdomain: whitelist @@ -14,5 +14,9 @@ Whitelist successfully disabled= [!] Whitelist can't be empty when enabled!= Whitelisted players: = +# commands.lua +Whitelist commands. is only needed for 'add' and 'remove'= +player= + #player_manager.lua You're not whitelisted!= diff --git a/locale/whitelist.it.tr b/locale/whitelist.it.tr index 05699eb..c0728b3 100644 --- a/locale/whitelist.it.tr +++ b/locale/whitelist.it.tr @@ -1,18 +1,22 @@ -# version 1.1.1 +# version 1.2.0 # author(s): Zughy # reviewer(s): # textdomain: whitelist # api.lua -[!] The whitelist is already enabled!=[!] La whitelist è già abilitata! -Whitelist successfully enabled=Whitelist abilitata con successo -[!] The whitelist is already disabled!=[!] La whitelist è già disabilitata! -Whitelist successfully disabled=Whitelist disabilitata con successo -[!] @1 is already whitelisted!=[!] @1 è già nella whitelist! -[!] There is no player whitelisted with that name...=[!] Nessun giocatore con quel nome è presente nella whitelist... +[!] The whitelist is already enabled!=[!] La lista bianca è già abilitata! +Whitelist successfully enabled=Lista bianca abilitata con successo +[!] The whitelist is already disabled!=[!] La lista bianca è già disabilitata! +Whitelist successfully disabled=Lista bianca disabilitata con successo +[!] @1 is already whitelisted!=[!] @1 è già nella lista bianca! +[!] There is no player whitelisted with that name...=[!] Nessun giocatore con quel nome è presente nella lista bianca... [!] You can't remove yourself!=[!] Non puoi rimuovere te stesso/a! -[!] Whitelist can't be empty when enabled!=[!] La whitelist non può essere vuota quand'è attiva! -Whitelisted players: =Giocatori in whitelist: +[!] Whitelist can't be empty when enabled!=[!] La lista bianca non può essere vuota quand'è attiva! +Whitelisted players: =Giocatori nella lista bianca: + +# commands.lua +Whitelist commands. is only needed for 'add' and 'remove'=Comandi lista bianca. è richiesto solamente per 'add' e 'remove' +player=giocatore #player_manager.lua -You're not whitelisted!=Non sei in whitelist! +You're not whitelisted!=Non sei nella lista bianca!