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:
parent
4d55f99548
commit
bfc11fe83c
|
@ -243,8 +243,8 @@ minetest.register_craftitem("default:skeleton_key", {
|
|||
local new_stack = ItemStack("default:key")
|
||||
local meta = new_stack:get_meta()
|
||||
meta:set_string("secret", secret)
|
||||
meta:set_string("description", "Key to "..user:get_player_name().."'s "
|
||||
..minetest.registered_nodes[node.name].description)
|
||||
meta:set_string("description", S("Key to @1's @2", user:get_player_name(),
|
||||
minetest.registered_nodes[node.name].description))
|
||||
|
||||
if itemstack:get_count() == 0 then
|
||||
itemstack = new_stack
|
||||
|
|
|
@ -2501,8 +2501,6 @@ local function update_bookshelf(pos)
|
|||
if n_written + n_empty == 0 then
|
||||
meta:set_string("infotext", S("Empty Bookshelf"))
|
||||
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))
|
||||
end
|
||||
end
|
||||
|
|
|
@ -417,7 +417,7 @@ function doors.register(name, def)
|
|||
meta:set_string("key_lock_secret", secret)
|
||||
end
|
||||
|
||||
return secret, "a locked door", owner
|
||||
return secret, S("a locked door"), owner
|
||||
end
|
||||
def.node_dig_prediction = ""
|
||||
else
|
||||
|
@ -615,7 +615,7 @@ function doors.register_trapdoor(name, def)
|
|||
meta:set_string("key_lock_secret", secret)
|
||||
end
|
||||
|
||||
return secret, "a locked trapdoor", owner
|
||||
return secret, S("a locked trapdoor"), owner
|
||||
end
|
||||
def.node_dig_prediction = ""
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue