From 8dd3c9224f00662b99970b2428b238b26b728ede Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 18 Mar 2019 18:16:25 +0100 Subject: [PATCH] Fix translation of falling anvil death msg --- mods/ENTITIES/mcl_falling_nodes/init.lua | 6 +++--- .../mcl_falling_nodes/locale/mcl_falling_nodes.de.tr | 4 ++-- mods/ENTITIES/mcl_falling_nodes/locale/template.txt | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mods/ENTITIES/mcl_falling_nodes/init.lua b/mods/ENTITIES/mcl_falling_nodes/init.lua index 35355c79..54074567 100644 --- a/mods/ENTITIES/mcl_falling_nodes/init.lua +++ b/mods/ENTITIES/mcl_falling_nodes/init.lua @@ -49,12 +49,12 @@ local deal_falling_damage = function(self, dtime) -- TODO: Reduce damage if wearing a helmet local msg if minetest.get_item_group(self.node.name, "anvil") ~= 0 then - msg = S("%s was smashed by a falling anvil.") + msg = S("@1 was smashed by a falling anvil.", v:get_player_name()) else - msg = S("%s was smashed by a falling block.") + msg = S("@1 was smashed by a falling block.", v:get_player_name()) end if dmes then - mcl_death_messages.player_damage(v, string.format(msg, v:get_player_name())) + mcl_death_messages.player_damage(v, msg) end end v:set_hp(hp) diff --git a/mods/ENTITIES/mcl_falling_nodes/locale/mcl_falling_nodes.de.tr b/mods/ENTITIES/mcl_falling_nodes/locale/mcl_falling_nodes.de.tr index 66cf8a2a..71dfa4be 100644 --- a/mods/ENTITIES/mcl_falling_nodes/locale/mcl_falling_nodes.de.tr +++ b/mods/ENTITIES/mcl_falling_nodes/locale/mcl_falling_nodes.de.tr @@ -1,3 +1,3 @@ # textdomain: mcl_falling_nodes -%s was smashed by a falling anvil.=%s wurde von einem fallenden Amboss zerschmettert. -%s was smashed by a falling block.=%s wurde von einem fallenden Block zerschmettert. +@1 was smashed by a falling anvil.=@1 wurde von einem fallenden Amboss zerschmettert. +@1 was smashed by a falling block.=@1 wurde von einem fallenden Block zerschmettert. diff --git a/mods/ENTITIES/mcl_falling_nodes/locale/template.txt b/mods/ENTITIES/mcl_falling_nodes/locale/template.txt index 040742c6..4adabaf0 100644 --- a/mods/ENTITIES/mcl_falling_nodes/locale/template.txt +++ b/mods/ENTITIES/mcl_falling_nodes/locale/template.txt @@ -1,3 +1,3 @@ # textdomain: mcl_falling_nodes -%s was smashed by a falling anvil.= -%s was smashed by a falling block.= +@1 was smashed by a falling anvil.= +@1 was smashed by a falling block.=