Add some more translation tags (overlooked or difficult)

M  mods/default/craftitems.lua
M  mods/default/nodes.lua
M  mods/doors/init.lua
This commit is contained in:
Zweihorn 2019-05-22 07:53:40 +02:00
parent ebf9ed5f1e
commit 3ad1a36764
3 changed files with 4 additions and 6 deletions

View File

@ -243,8 +243,8 @@ minetest.register_craftitem("default:skeleton_key", {
local new_stack = ItemStack("default:key") local new_stack = ItemStack("default:key")
local meta = new_stack:get_meta() local meta = new_stack:get_meta()
meta:set_string("secret", secret) meta:set_string("secret", secret)
meta:set_string("description", "Key to "..user:get_player_name().."'s " meta:set_string("description", S("Key to @1's @2", user:get_player_name(),
..minetest.registered_nodes[node.name].description) minetest.registered_nodes[node.name].description))
if itemstack:get_count() == 0 then if itemstack:get_count() == 0 then
itemstack = new_stack itemstack = new_stack

View File

@ -2511,8 +2511,6 @@ local function update_bookshelf(pos)
if n_written + n_empty == 0 then if n_written + n_empty == 0 then
meta:set_string("infotext", S("Empty Bookshelf")) meta:set_string("infotext", S("Empty Bookshelf"))
else else
-- meta:set_string("infotext", "Bookshelf (" .. n_written ..
-- " written, " .. n_empty .. " empty books)")
meta:set_string("infotext", S("Bookshelf (@1 written, @2 empty books)", n_written, n_empty)) meta:set_string("infotext", S("Bookshelf (@1 written, @2 empty books)", n_written, n_empty))
end end
end end

View File

@ -417,7 +417,7 @@ function doors.register(name, def)
meta:set_string("key_lock_secret", secret) meta:set_string("key_lock_secret", secret)
end end
return secret, "a locked door", owner return secret, S("a locked door"), owner
end end
def.node_dig_prediction = "" def.node_dig_prediction = ""
else else
@ -615,7 +615,7 @@ function doors.register_trapdoor(name, def)
meta:set_string("key_lock_secret", secret) meta:set_string("key_lock_secret", secret)
end end
return secret, "a locked trapdoor", owner return secret, S("a locked trapdoor"), owner
end end
def.node_dig_prediction = "" def.node_dig_prediction = ""
else else