From 49ac1bc26045fb477b484865fa343819e6054897 Mon Sep 17 00:00:00 2001 From: 3raven Date: Wed, 24 Aug 2022 03:44:05 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'mods/ITEMS/mcl=5Fr?= =?UTF-8?q?aw=5Fores/init.lua'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mods/ITEMS/mcl_raw_ores/init.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mods/ITEMS/mcl_raw_ores/init.lua b/mods/ITEMS/mcl_raw_ores/init.lua index 679425067..be570068f 100644 --- a/mods/ITEMS/mcl_raw_ores/init.lua +++ b/mods/ITEMS/mcl_raw_ores/init.lua @@ -1,3 +1,5 @@ +local S = minetest.get_translator(minetest.get_current_modname()) + local function register_raw_ore(description, n) local ore = description:lower() local n = n or "" @@ -5,15 +7,15 @@ local function register_raw_ore(description, n) local texture = "mcl_raw_ores_raw_"..ore minetest.register_craftitem(raw_ingot, { - description = ("Raw "..description), - _doc_items_longdesc = ("Raw "..ore..". Mine a"..n.." "..ore.." ore to get it."), + description = S("Raw "..description), + _doc_items_longdesc = S("Raw "..ore..". Mine a"..n.." "..ore.." ore to get it."), inventory_image = texture..".png", groups = { craftitem = 1, blast_furnace_smeltable = 1 }, }) minetest.register_node(raw_ingot.."_block", { - description = ("Block of Raw "..description), - _doc_items_longdesc = ("A block of raw "..ore.." is mostly a decorative block but also useful as a compact storage of raw "..ore.."."), + description = S("Block of Raw "..description), + _doc_items_longdesc = S("A block of raw "..ore.." is mostly a decorative block but also useful as a compact storage of raw "..ore.."."), tiles = { texture.."_block.png" }, is_ground_content = false, groups = { pickaxey = 2, building_block = 1, blast_furnace_smeltable = 1 },