Add support for MT 5 game translation (rebasing ) (#2466)

rebased #2368
This commit is contained in:
Yves Quemener 2019-09-11 02:09:51 +09:00 committed by sfan5
parent 8b3307cc70
commit e151d018b9

@ -1,5 +1,11 @@
-- tnt/init.lua
tnt = {}
-- Load support for MT game translation.
local S = minetest.get_translator("tnt")
-- Default to enabled when in singleplayer
local enable_tnt = minetest.settings:get_bool("enable_tnt")
if enable_tnt == nil then
@ -422,7 +428,7 @@ minetest.register_node("tnt:boom", {
})
minetest.register_node("tnt:gunpowder", {
description = "Gun Powder",
description = S("Gun Powder"),
drawtype = "raillike",
paramtype = "light",
is_ground_content = false,
@ -547,7 +553,7 @@ minetest.register_craft({
})
minetest.register_craftitem("tnt:tnt_stick", {
description = "TNT Stick",
description = S("TNT Stick"),
inventory_image = "tnt_tnt_stick.png",
groups = {flammable = 5},
})
@ -675,6 +681,6 @@ end
tnt.register_tnt({
name = "tnt:tnt",
description = "TNT",
description = S("TNT"),
radius = tnt_radius,
})