From 3ad1a367642eeaca29cad1f18659f83a910c488a Mon Sep 17 00:00:00 2001 From: Zweihorn Date: Wed, 22 May 2019 07:53:40 +0200 Subject: [PATCH] Add some more translation tags (overlooked or difficult) M mods/default/craftitems.lua M mods/default/nodes.lua M mods/doors/init.lua --- mods/default/craftitems.lua | 4 ++-- mods/default/nodes.lua | 2 -- mods/doors/init.lua | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/mods/default/craftitems.lua b/mods/default/craftitems.lua index bb7578b..96c3f3a 100644 --- a/mods/default/craftitems.lua +++ b/mods/default/craftitems.lua @@ -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 diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index a356dd8..1b03e3c 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -2511,8 +2511,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 diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 80b549e..1caecb8 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -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