mirror of
https://codeberg.org/AntumLuanti/mod-cleaner.git
synced 2025-03-15 04:41:22 +00:00
Add/update localization strings
This commit is contained in:
parent
182726e999
commit
a708add44d
4 changed files with 22 additions and 7 deletions
1
TODO.txt
1
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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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=
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue