From cbf7bee93af73f0c5fc3098a81149fb3b884b91b Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 30 May 2016 12:30:00 +0100 Subject: Added intllib support (thanks Xanthin) --- melon.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'melon.lua') diff --git a/melon.lua b/melon.lua index a35d450..e2f6564 100644 --- a/melon.lua +++ b/melon.lua @@ -1,7 +1,9 @@ +local S = farming.intllib + -- melon minetest.register_craftitem("farming:melon_slice", { - description = "Melon Slice", + description = S("Melon Slice"), inventory_image = "farming_melon_slice.png", on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "farming:melon_1") @@ -71,7 +73,7 @@ minetest.register_node("farming:melon_7", table.copy(crop_def)) -- stage 8 (final) crop_def.drawtype = "nodebox" -crop_def.description = "Melon" +crop_def.description = S("Melon") crop_def.tiles = {"farming_melon_top.png", "farming_melon_top.png", "farming_melon_side.png"} crop_def.selection_box = {-.5, -.5, -.5, .5, .5, .5} crop_def.walkable = true -- cgit v1.2.3