mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-01 11:30:03 -04:00
Transaltion - Updated langfiles and templates; using params
This commit is contained in:
parent
67dcb8a0de
commit
b1ca4b069a
15 changed files with 88 additions and 78 deletions
|
@ -109,7 +109,8 @@ minetest.register_node("bones:bones", {
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local time = meta:get_int("time") + elapsed
|
local time = meta:get_int("time") + elapsed
|
||||||
if time >= share_bones_time then
|
if time >= share_bones_time then
|
||||||
meta:set_string("infotext", meta:get_string("owner")..S("'s old bones"))
|
meta:set_string("infotext", S("@1's old bones", meta:get_string("owner")))
|
||||||
|
--meta:get_string("owner")..S("'s old bones"))
|
||||||
meta:set_string("owner", "")
|
meta:set_string("owner", "")
|
||||||
else
|
else
|
||||||
meta:set_int("time", time)
|
meta:set_int("time", time)
|
||||||
|
@ -212,7 +213,7 @@ minetest.register_on_dieplayer(function(player)
|
||||||
meta:set_string("owner", player_name)
|
meta:set_string("owner", player_name)
|
||||||
|
|
||||||
if share_bones_time ~= 0 then
|
if share_bones_time ~= 0 then
|
||||||
meta:set_string("infotext", player_name.."'s fresh bones")
|
meta:set_string("infotext", S("@1's fresh bones", player_name))--player_name.."'s fresh bones")
|
||||||
|
|
||||||
if share_bones_time_early == 0 or not minetest.is_protected(pos, player_name) then
|
if share_bones_time_early == 0 or not minetest.is_protected(pos, player_name) then
|
||||||
meta:set_int("time", 0)
|
meta:set_int("time", 0)
|
||||||
|
@ -222,6 +223,6 @@ minetest.register_on_dieplayer(function(player)
|
||||||
|
|
||||||
minetest.get_node_timer(pos):start(10)
|
minetest.get_node_timer(pos):start(10)
|
||||||
else
|
else
|
||||||
meta:set_string("infotext", player_name.."'s bones")
|
meta:set_string("infotext", S("@1's bones", player_name))--player_name.."'s bones")
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
#init.lua
|
#init.lua
|
||||||
Bones = Huesos
|
Bones = Huesos
|
||||||
's old bones = 's old bones
|
@1's old bones = Huesos de @1
|
||||||
|
@1's fresh bones = Huesos frescos de @1
|
||||||
|
@1's bones = Huesos de @1
|
||||||
|
|
5
mods/bones/locale/template.txt
Executable file
5
mods/bones/locale/template.txt
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#init.lua
|
||||||
|
Bones =
|
||||||
|
@1's old bones =
|
||||||
|
@1's fresh bones =
|
||||||
|
@1's bones =
|
|
@ -86,20 +86,19 @@ Lava Source = Fuente de lava
|
||||||
Flowing Lava = Lava fluyendo
|
Flowing Lava = Lava fluyendo
|
||||||
Torch = Antorcha
|
Torch = Antorcha
|
||||||
Chest = Cofre
|
Chest = Cofre
|
||||||
moves stuff in chest at = mueve objetos en el cofre en
|
@1 moves stuff in chest at @2 = @1 mueve objetos dentro del cofre en @2
|
||||||
moves stuff to chest at = coloca objetos en el cofre en
|
@1 moves stuff to chest at @2 = @1 coloca objetos en el cofre en @2
|
||||||
takes stuff from chest at = retira objetos del cofre en
|
@1 takes stuff from chest at @2 = @1 retira objetos del cofre en @2
|
||||||
Locked Chest = Cofre con cerradura
|
Locked Chest = Cofre con cerradura
|
||||||
Locked Chest (owned by = Cofre con cerradura (propiedad de
|
Locked Chest (owned by @1) = Cofre con cerradura (propiedad de @1)
|
||||||
moves stuff to locked chest at =
|
@1 moves stuff to locked chest at @2 = @1 coloca objetos dentro del cofre con cerradura en @2
|
||||||
takes stuff from locked chest at =
|
@1 takes stuff from locked chest at @2 = @1 retira objetos del cofre con cerradura en @2
|
||||||
Bookshelf = Librero
|
Bookshelf = Librero
|
||||||
moves stuff in bookshelf at = mueve objetos en el librero en
|
@1 moves stuff in bookshelf at @2 = @1 mueve objetos en el librero en @2
|
||||||
moves stuff to bookshelf at = coloca objetos en el librero en
|
@1 moves stuff to bookshelf at @2 = @1 coloca objetos en el librero en @2
|
||||||
takes stuff from bookshelf at = retira objetos del librero en
|
@1 takes stuff from bookshelf at @2 = @1 retira objetos del librero en @2
|
||||||
Sign = Señal
|
Sign = Señal
|
||||||
wrote \" = escribió \"
|
@1 wrote \"@2\" to sign at @3 = @1 escribió \"@2\" en una señal en @3
|
||||||
"\" to sign at =
|
|
||||||
Ladder = Escalera
|
Ladder = Escalera
|
||||||
Wooden Fence = Valla de madera
|
Wooden Fence = Valla de madera
|
||||||
Glass = Vidrio
|
Glass = Vidrio
|
||||||
|
@ -138,8 +137,8 @@ Mese Sword = Espada de mese
|
||||||
Diamond Sword = Espada de diamante
|
Diamond Sword = Espada de diamante
|
||||||
|
|
||||||
#trees.lua
|
#trees.lua
|
||||||
A sapling grows into a tree at = Un brote crece en un árbol en
|
A sapling grows into a tree at @1 = Un brote crece en un árbol en @2
|
||||||
A jungle sapling grows into a tree at = Un brote selvático crece en un árbol en
|
A jungle sapling grows into a tree at @1 = Un brote selvático crece en un árbol en @2
|
||||||
A pine sapling grows into a tree at = Un brote de pino crece en un árbol en
|
A pine sapling grows into a tree at @1 = Un brote de pino crece en un árbol en @2
|
||||||
|
Deprecated use of default.grow_tree = Uso descontinuado de default.grow_tree
|
||||||
|
Deprecated use of default.grow_jungle_tree = Uso descontinuado de default.grow_jungle_tree
|
||||||
|
|
|
@ -86,17 +86,18 @@ Lava Source =
|
||||||
Flowing Lava =
|
Flowing Lava =
|
||||||
Torch =
|
Torch =
|
||||||
Chest =
|
Chest =
|
||||||
moves stuff in chest at =
|
@1 moves stuff in chest at @2 =
|
||||||
moves stuff to chest at =
|
@1 moves stuff to chest at @2 =
|
||||||
takes stuff from chest at =
|
@1 takes stuff from chest at @2 =
|
||||||
Locked Chest =
|
Locked Chest =
|
||||||
Locked Chest (owned by =
|
Locked Chest (owned by @1) =
|
||||||
|
@1 moves stuff to locked chest at @2 =
|
||||||
|
@1 takes stuff from locked chest at @2 =
|
||||||
Bookshelf =
|
Bookshelf =
|
||||||
moves stuff in bookshelf at =
|
@1 moves stuff in bookshelf at @2 =
|
||||||
moves stuff to bookshelf at =
|
@1 moves stuff to bookshelf at @2 =
|
||||||
takes stuff from bookshelf at =
|
@1 takes stuff from bookshelf at @2 =
|
||||||
Sign =
|
@1 wrote \"@2\" to sign at @3 =
|
||||||
wrote \" =
|
|
||||||
Ladder =
|
Ladder =
|
||||||
Wooden Fence =
|
Wooden Fence =
|
||||||
Glass =
|
Glass =
|
||||||
|
@ -135,7 +136,8 @@ Mese Sword =
|
||||||
Diamond Sword =
|
Diamond Sword =
|
||||||
|
|
||||||
#trees.lua
|
#trees.lua
|
||||||
A sapling grows into a tree at =
|
A sapling grows into a tree at @1 =
|
||||||
A jungle sapling grows into a tree at =
|
A jungle sapling grows into a tree at @1 =
|
||||||
A pine sapling grows into a tree at =
|
A pine sapling grows into a tree at @1 =
|
||||||
|
Deprecated use of default.grow_tree =
|
||||||
|
Deprecated use of default.grow_jungle_tree =
|
||||||
|
|
|
@ -1226,16 +1226,16 @@ minetest.register_node("default:chest", {
|
||||||
return inv:is_empty("main")
|
return inv:is_empty("main")
|
||||||
end,
|
end,
|
||||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||||
minetest.log("action", player:get_player_name()..
|
minetest.log("action", S("@1 moves stuff in chest at @2",
|
||||||
S(" moves stuff in chest at ")..minetest.pos_to_string(pos))
|
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||||
end,
|
end,
|
||||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
minetest.log("action", player:get_player_name()..
|
minetest.log("action", S("@1 moves stuff to chest at @2",
|
||||||
S(" moves stuff to chest at ")..minetest.pos_to_string(pos))
|
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||||
end,
|
end,
|
||||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
minetest.log("action", player:get_player_name()..
|
minetest.log("action", S("@1 takes stuff from chest at @2",
|
||||||
S(" takes stuff from chest at ")..minetest.pos_to_string(pos))
|
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1252,8 +1252,7 @@ minetest.register_node("default:chest_locked", {
|
||||||
after_place_node = function(pos, placer)
|
after_place_node = function(pos, placer)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("owner", placer:get_player_name() or "")
|
meta:set_string("owner", placer:get_player_name() or "")
|
||||||
meta:set_string("infotext", S("Locked Chest (owned by ")..
|
meta:set_string("infotext", S("Locked Chest (owned by @1)", meta:get_string("owner")))
|
||||||
meta:get_string("owner")..")")
|
|
||||||
end,
|
end,
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
@ -1289,12 +1288,12 @@ minetest.register_node("default:chest_locked", {
|
||||||
return stack:get_count()
|
return stack:get_count()
|
||||||
end,
|
end,
|
||||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
minetest.log("action", player:get_player_name()..
|
minetest.log("action", S("@1 moves stuff to locked chest at @2",
|
||||||
S(" moves stuff to locked chest at ")..minetest.pos_to_string(pos))
|
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||||
end,
|
end,
|
||||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
minetest.log("action", player:get_player_name()..
|
minetest.log("action", S("@1 takes stuff from locked chest at @2",
|
||||||
S(" takes stuff from locked chest at ")..minetest.pos_to_string(pos))
|
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||||
end,
|
end,
|
||||||
on_rightclick = function(pos, node, clicker)
|
on_rightclick = function(pos, node, clicker)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
@ -1367,16 +1366,16 @@ minetest.register_node("default:bookshelf", {
|
||||||
end,
|
end,
|
||||||
|
|
||||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||||
minetest.log("action", player:get_player_name()..
|
minetest.log("action", S("@1 moves stuff in bookshelf at @2",
|
||||||
S(" moves stuff in bookshelf at ")..minetest.pos_to_string(pos))
|
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||||
end,
|
end,
|
||||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
minetest.log("action", player:get_player_name()..
|
minetest.log("action", S("@1 moves stuff to bookshelf at @2",
|
||||||
S(" moves stuff to bookshelf at ")..minetest.pos_to_string(pos))
|
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||||
end,
|
end,
|
||||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
minetest.log("action", player:get_player_name()..
|
minetest.log("action", S("@1 takes stuff from bookshelf at @2",
|
||||||
S(" takes stuff from bookshelf at ")..minetest.pos_to_string(pos))
|
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1415,8 +1414,10 @@ minetest.register_node("default:sign_wall", {
|
||||||
end
|
end
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
if not fields.text then return end
|
if not fields.text then return end
|
||||||
minetest.log("action", (sender:get_player_name() or "")..S(" wrote \"")..fields.text..
|
minetest.log("action", S("@1 wrote \"@2\" to sign at @3",
|
||||||
S("\" to sign at ")..minetest.pos_to_string(pos))
|
(sender:get_player_name() or ""), fields.text, minetest.pos_to_string(pos)))
|
||||||
|
-- minetest.log("action", (sender:get_player_name() or "")..S(" wrote \"")..fields.text..
|
||||||
|
-- S("\" to sign at ")..minetest.pos_to_string(pos))
|
||||||
meta:set_string("text", fields.text)
|
meta:set_string("text", fields.text)
|
||||||
meta:set_string("infotext", '"'..fields.text..'"')
|
meta:set_string("infotext", '"'..fields.text..'"')
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -30,8 +30,8 @@ minetest.register_abm({
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.log("action", S("A sapling grows into a tree at ")..
|
minetest.log("action", S("A sapling grows into a tree at @1",
|
||||||
minetest.pos_to_string(pos))
|
minetest.pos_to_string(pos)))
|
||||||
default.grow_tree(pos, random(1, 4) == 1)
|
default.grow_tree(pos, random(1, 4) == 1)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
@ -45,8 +45,8 @@ minetest.register_abm({
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.log("action", S("A jungle sapling grows into a tree at ")..
|
minetest.log("action", S("A jungle sapling grows into a tree at @1",
|
||||||
minetest.pos_to_string(pos))
|
minetest.pos_to_string(pos)))
|
||||||
default.grow_jungle_tree(pos)
|
default.grow_jungle_tree(pos)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
@ -60,8 +60,8 @@ minetest.register_abm({
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.log("action", S("A pine sapling grows into a tree at ")..
|
minetest.log("action", S("A pine sapling grows into a tree at @1",
|
||||||
minetest.pos_to_string(pos))
|
minetest.pos_to_string(pos)))
|
||||||
default.grow_pine_tree(pos)
|
default.grow_pine_tree(pos)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
@ -134,7 +134,7 @@ function default.grow_tree(pos, is_apple_tree, bad)
|
||||||
replaced yet
|
replaced yet
|
||||||
--]]
|
--]]
|
||||||
if bad then
|
if bad then
|
||||||
error("Deprecated use of default.grow_tree")
|
error(S("Deprecated use of default.grow_tree"))
|
||||||
end
|
end
|
||||||
|
|
||||||
local x, y, z = pos.x, pos.y, pos.z
|
local x, y, z = pos.x, pos.y, pos.z
|
||||||
|
@ -166,7 +166,7 @@ function default.grow_jungle_tree(pos, bad)
|
||||||
replaced yet
|
replaced yet
|
||||||
--]]
|
--]]
|
||||||
if bad then
|
if bad then
|
||||||
error("Deprecated use of default.grow_jungle_tree")
|
error(S("Deprecated use of default.grow_jungle_tree"))
|
||||||
end
|
end
|
||||||
|
|
||||||
local x, y, z = pos.x, pos.y, pos.z
|
local x, y, z = pos.x, pos.y, pos.z
|
||||||
|
|
|
@ -12,7 +12,7 @@ give_initial_stuff.intllib = S
|
||||||
minetest.register_on_newplayer(function(player)
|
minetest.register_on_newplayer(function(player)
|
||||||
--print("on_newplayer")
|
--print("on_newplayer")
|
||||||
if minetest.setting_getbool("give_initial_stuff") then
|
if minetest.setting_getbool("give_initial_stuff") then
|
||||||
minetest.log("action", S("Giving initial stuff to player ")..player:get_player_name())
|
minetest.log("action", S("Giving initial stuff to player @1", player:get_player_name()))
|
||||||
player:get_inventory():add_item('main', 'default:pick_steel')
|
player:get_inventory():add_item('main', 'default:pick_steel')
|
||||||
player:get_inventory():add_item('main', 'default:torch 99')
|
player:get_inventory():add_item('main', 'default:torch 99')
|
||||||
player:get_inventory():add_item('main', 'default:axe_steel')
|
player:get_inventory():add_item('main', 'default:axe_steel')
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Giving initial stuff to player = Otorgando objetos iniciales al jugador
|
Giving initial stuff to player @1 = Otorgando objetos iniciales al jugador @1
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Giving initial stuff to player =
|
Giving initial stuff to player @1 =
|
||||||
|
|
|
@ -70,16 +70,16 @@ minetest.register_node("vessels:shelf", {
|
||||||
end,
|
end,
|
||||||
|
|
||||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||||
minetest.log("action", player:get_player_name()..
|
minetest.log("action", S("@1 moves stuff in vessels shelf at @2",
|
||||||
S(" moves stuff in vessels shelf at ")..minetest.pos_to_string(pos))
|
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||||
end,
|
end,
|
||||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
minetest.log("action", player:get_player_name()..
|
minetest.log("action", S("@1 moves stuff to vessels shelf at @2",
|
||||||
S(" moves stuff to vessels shelf at ")..minetest.pos_to_string(pos))
|
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||||
end,
|
end,
|
||||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
minetest.log("action", player:get_player_name()..
|
minetest.log("action", S("@1 takes stuff from vessels shelf at @2",
|
||||||
S(" takes stuff from vessels shelf at ")..minetest.pos_to_string(pos))
|
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#init.lua
|
#init.lua
|
||||||
Vessels shelf = Estantería
|
Vessels shelf = Estantería
|
||||||
moves stuff in vessels shelf at = mueve objetos en la estantería en
|
@1 moves stuff in vessels shelf at @2 = @1 mueve objetos en la estantería en @2
|
||||||
moves stuff to vessels shelf at = coloca objetos en la estantería en
|
@1 moves stuff to vessels shelf at @2 = @1 coloca objetos en la estantería en @2
|
||||||
takes stuff from vessels shelf at = retira objetos de la estantería en
|
@1 takes stuff from vessels shelf at @2 = @1 retira objetos de la estantería en @2
|
||||||
Glass Bottle (empty) = Botella de vidrio (vacía)
|
Glass Bottle (empty) = Botella de vidrio (vacía)
|
||||||
Drinking Glass (empty) = Vaso de vidrio (vacío)
|
Drinking Glass (empty) = Vaso de vidrio (vacío)
|
||||||
Heavy Steel Bottle (empty) = Bote pesado de acero (vacío)
|
Heavy Steel Bottle (empty) = Bote pesado de acero (vacío)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#init.lua
|
#init.lua
|
||||||
Vessels shelf =
|
Vessels shelf =
|
||||||
moves stuff in vessels shelf at =
|
@1 moves stuff in vessels shelf at @2 =
|
||||||
moves stuff to vessels shelf at =
|
@1 moves stuff to vessels shelf at @2 =
|
||||||
takes stuff from vessels shelf at =
|
@1 takes stuff from vessels shelf at @2 =
|
||||||
Glass Bottle (empty) =
|
Glass Bottle (empty) =
|
||||||
Drinking Glass (empty) =
|
Drinking Glass (empty) =
|
||||||
Heavy Steel Bottle (empty) =
|
Heavy Steel Bottle (empty) =
|
||||||
|
|
|
@ -42,7 +42,7 @@ for _, row in ipairs(wool.dyes) do
|
||||||
local craft_color_group = row[3]
|
local craft_color_group = row[3]
|
||||||
-- Node Definition
|
-- Node Definition
|
||||||
minetest.register_node("wool:"..name, {
|
minetest.register_node("wool:"..name, {
|
||||||
description = desc..S(" Wool"),
|
description = S("@1 Wool", desc), --desc..S(" Wool"),
|
||||||
tiles = {"wool_"..name..".png"},
|
tiles = {"wool_"..name..".png"},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
|
|
|
@ -14,4 +14,4 @@ Brown = Marrón
|
||||||
Pink = Rosa
|
Pink = Rosa
|
||||||
Dark Grey = Gris oscruo
|
Dark Grey = Gris oscruo
|
||||||
Dark Green = Verde oscuro
|
Dark Green = Verde oscuro
|
||||||
Wool = Lana
|
@1 Wool = Lana @1
|
||||||
|
|
Loading…
Add table
Reference in a new issue