translate many nalc_* mods
and use function to register toolranks
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user