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) --- carrot.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'carrot.lua') diff --git a/carrot.lua b/carrot.lua index cecaae7..9cfcee0 100644 --- a/carrot.lua +++ b/carrot.lua @@ -4,9 +4,11 @@ https://forum.minetest.net/viewtopic.php?id=4990 ]] +local S = farming.intllib + -- carrot minetest.register_craftitem("farming:carrot", { - description = "Carrot", + description = S("Carrot"), inventory_image = "farming_carrot.png", on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "farming:carrot_1") @@ -16,7 +18,7 @@ minetest.register_craftitem("farming:carrot", { -- golden carrot minetest.register_craftitem("farming:carrot_gold", { - description = "Golden Carrot", + description = S("Golden Carrot"), inventory_image = "farming_carrot_gold.png", on_use = minetest.item_eat(6), }) -- cgit v1.2.3