diff --git a/TODO.txt b/TODO.txt index 74c1528..e76f3e4 100644 --- a/TODO.txt +++ b/TODO.txt @@ -5,7 +5,6 @@ TODO: - creative - storage (chests, etc.) - add LBM when removing an item if it is a node -- update localization files - add "radius" option for pencil or "xlen", "ylen", & "zlen" options - add "xrotate" & "zrorate" modes for pencil - fix pencil "write" mode when pointing to side of node (node gets placed below) diff --git a/locale/cleaner.es.tr b/locale/cleaner.es.tr index 37b5bce..407037a 100644 --- a/locale/cleaner.es.tr +++ b/locale/cleaner.es.tr @@ -42,3 +42,12 @@ No unknown nodes found.=No se encontraron nodos desconocidos. Ore "@1" not found, not unregistering.=No se encontró el mineral "@1", se mantiene registrado. Unregistered @1 ores (this will be undone after server restart).=Se anuló @1 minerales del registro. Success!=¡Éxito! + +# tools: +@1: mode set to: @2=@1: modo configurado para: @2 +@1: node set to: @2=@1: nodo configurado para: @2 +Modes for tool "@1" not available.=Modos para "@1" no disponibles. +You do not have permission to use this item. Missing privs: @1=No tienes permiso para usar este artículo. Privs que faltan: @1 +Unknown mode: @1=Modo desconocido: @1 +Can't place node there.=No se puede poner nodo allí. +Cannot place unknown node: @1=No se puede poner nodo desconocido: @1 diff --git a/locale/template.txt b/locale/template.txt index 4f81862..e19a586 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -42,3 +42,12 @@ No unknown nodes found.= Ore "@1" not found, not unregistering.= Unregistered @1 ores (this will be undone after server restart).= Success!= + +# tools: +@1: mode set to: @2= +Modes for tool "@1" not available.= +@1: node set to: @2= +You do not have permission to use this item. Missing privs: @1= +Can't place node there.= +Unknown mode: @1= +Cannot place unknown node: @1= diff --git a/misc_functions.lua b/misc_functions.lua index df6bfd4..76378af 100644 --- a/misc_functions.lua +++ b/misc_functions.lua @@ -98,8 +98,7 @@ local tool = { imeta:set_string("mode", mode) if pname then - core.chat_send_player(pname, iname .. ": " - .. S("mode set to: @1", imeta:get_string("mode"))) + core.chat_send_player(pname, S("@1: mode set to: @2", iname, imeta:get_string("mode"))) end local new_stack @@ -120,7 +119,7 @@ local tool = { local modes = self.modes[iname] if not modes then - return false, stack, "modes for tool \"" .. stack:get_name() .. "\" not available." + return false, stack, S('Modes for tool "@1" not available.', stack:get_name()) end local imeta = stack:get_meta() @@ -145,8 +144,7 @@ local tool = { imeta:set_string("node", node) if pname then - core.chat_send_player(pname, stack:get_name() .. ": " - .. S("node set to: @1", imeta:get_string("node"))) + core.chat_send_player(pname, S("@1: node set to: @2", stack:get_name(), imeta:get_string("node"))) end return stack @@ -158,7 +156,7 @@ tool.on_use = function(stack, user, pointed_thing) local pname = user:get_player_name() if not core.get_player_privs(pname).server then - core.chat_send_player(pname, S("You do not have permission to use this item. Missing privs: server")) + core.chat_send_player(pname, S("You do not have permission to use this item. Missing privs: @1", "server")) return stack end