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) --- corn.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'corn.lua') diff --git a/corn.lua b/corn.lua index 4370757..f178a48 100644 --- a/corn.lua +++ b/corn.lua @@ -4,9 +4,11 @@ http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/1440575-1-2-5-generation-minecraft-beta-1-2-farming-and ]] +local S = farming.intllib + -- corn minetest.register_craftitem("farming:corn", { - description = "Corn", + description = S("Corn"), inventory_image = "farming_corn.png", on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "farming:corn_1") @@ -16,7 +18,7 @@ minetest.register_craftitem("farming:corn", { -- corn on the cob (texture by TenPlus1) minetest.register_craftitem("farming:corn_cob", { - description = "Corn on the Cob", + description = S("Corn on the Cob"), inventory_image = "farming_corn_cob.png", on_use = minetest.item_eat(5), }) @@ -30,7 +32,7 @@ minetest.register_craft({ -- ethanol (thanks to JKMurray for this idea) minetest.register_craftitem("farming:bottle_ethanol", { - description = "Bottle of Ethanol", + description = S("Bottle of Ethanol"), inventory_image = "farming_bottle_ethanol.png", }) -- cgit v1.2.3