From 5b35ea553eb12d32005dc5ac8d3a4746bead0183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imre=20P=C3=A9ntek?= Date: Sat, 24 Feb 2024 15:05:59 +0100 Subject: [PATCH] as per https://github.com/minetest/minetest_game/pull/3030#pullrequestreview-1899419816 --- mods/bones/init.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mods/bones/init.lua b/mods/bones/init.lua index 7dc46bf4..623e6174 100644 --- a/mods/bones/init.lua +++ b/mods/bones/init.lua @@ -11,6 +11,10 @@ local min_inv_size = 4 * 8 -- display and provide at least this many slots bones = {} +local function TRANSLATEMEPLEASE(s) + return s +end + local function is_owner(pos, name) local owner = minetest.get_meta(pos):get_string("owner") if owner == "" or owner == name or minetest.check_player_privs(name, "protection_bypass") then @@ -323,18 +327,18 @@ minetest.register_on_dieplayer(function(player) if bones_placed then if drop_bones then log_message = "Inventory partially dropped" - chat_message = "@1 died at @2, and partially dropped their inventory." + chat_message = TRANSLATEMEPLEASE("@1 died at @2, and partially dropped their inventory.") else log_message = "Bones placed" - chat_message = "@1 died at @2, and bones were placed." + chat_message = TRANSLATEMEPLEASE("@1 died at @2, and bones were placed.") end else if drop_bones then log_message = "Inventory dropped" - chat_message = "@1 died at @2, and dropped their inventory." + chat_message = TRANSLATEMEPLEASE("@1 died at @2, and dropped their inventory.") else log_message = "No bones placed" - chat_message = "@1 died at @2." + chat_message = TRANSLATEMEPLEASE("@1 died at @2.") end end