translate many nalc_* mods

and use function to register toolranks
This commit is contained in:
2022-07-24 03:59:18 +02:00
parent 120bcf9bd3
commit c5437a4b3d
33 changed files with 321 additions and 121 deletions

View File

@ -1,5 +1,7 @@
local S = minetest.get_translator("nalc_flowers")
local lilypad_def = table.copy(minetest.registered_nodes["flowers:waterlily"])
lilypad_def.description = "Lily Pad"
lilypad_def.description = S("Lily Pad")
lilypad_def.tiles = {"flowers_lily_pad.png"}
lilypad_def.inventory_image = "flowers_lily_pad.png"
lilypad_def.wield_image = "flowers_lily_pad.png"
@ -25,7 +27,7 @@ lilypad_def.on_place = function(itemstack, placer, pointed_thing)
itemstack:take_item()
end
else
minetest.chat_send_player(player_name, "Node is protected")
minetest.chat_send_player(player_name, S("Node is protected"))
minetest.record_protection_violation(pos, player_name)
end
end