Add/update localization strings

This commit is contained in:
Jordan Irwin 2021-07-30 15:29:26 -07:00
parent 182726e999
commit a708add44d
4 changed files with 22 additions and 7 deletions

View file

@ -5,7 +5,6 @@ TODO:
- creative - creative
- storage (chests, etc.) - storage (chests, etc.)
- add LBM when removing an item if it is a node - 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 "radius" option for pencil or "xlen", "ylen", & "zlen" options
- add "xrotate" & "zrorate" modes for pencil - add "xrotate" & "zrorate" modes for pencil
- fix pencil "write" mode when pointing to side of node (node gets placed below) - fix pencil "write" mode when pointing to side of node (node gets placed below)

View file

@ -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. 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. Unregistered @1 ores (this will be undone after server restart).=Se anuló @1 minerales del registro.
Success!=¡Éxito! 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

View file

@ -42,3 +42,12 @@ No unknown nodes found.=
Ore "@1" not found, not unregistering.= Ore "@1" not found, not unregistering.=
Unregistered @1 ores (this will be undone after server restart).= Unregistered @1 ores (this will be undone after server restart).=
Success!= 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=

View file

@ -98,8 +98,7 @@ local tool = {
imeta:set_string("mode", mode) imeta:set_string("mode", mode)
if pname then if pname then
core.chat_send_player(pname, iname .. ": " core.chat_send_player(pname, S("@1: mode set to: @2", iname, imeta:get_string("mode")))
.. S("mode set to: @1", imeta:get_string("mode")))
end end
local new_stack local new_stack
@ -120,7 +119,7 @@ local tool = {
local modes = self.modes[iname] local modes = self.modes[iname]
if not modes then 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 end
local imeta = stack:get_meta() local imeta = stack:get_meta()
@ -145,8 +144,7 @@ local tool = {
imeta:set_string("node", node) imeta:set_string("node", node)
if pname then if pname then
core.chat_send_player(pname, stack:get_name() .. ": " core.chat_send_player(pname, S("@1: node set to: @2", stack:get_name(), imeta:get_string("node")))
.. S("node set to: @1", imeta:get_string("node")))
end end
return stack return stack
@ -158,7 +156,7 @@ tool.on_use = function(stack, user, pointed_thing)
local pname = user:get_player_name() local pname = user:get_player_name()
if not core.get_player_privs(pname).server then 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 return stack
end end