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) --- rhubarb.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rhubarb.lua') diff --git a/rhubarb.lua b/rhubarb.lua index c93b058..30e9fba 100644 --- a/rhubarb.lua +++ b/rhubarb.lua @@ -1,7 +1,9 @@ +local S = farming.intllib + -- rhubarb minetest.register_craftitem("farming:rhubarb", { - description = "Rhubarb", + description = S("Rhubarb"), inventory_image = "farming_rhubarb.png", on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "farming:rhubarb_1") @@ -11,7 +13,7 @@ minetest.register_craftitem("farming:rhubarb", { -- rhubarb pie minetest.register_craftitem("farming:rhubarb_pie", { - description = "Rhubarb Pie", + description = S("Rhubarb Pie"), inventory_image = "farming_rhubarb_pie.png", on_use = minetest.item_eat(6), }) -- cgit v1.2.3