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) --- wheat.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'wheat.lua') diff --git a/wheat.lua b/wheat.lua index c19ac27..65e5ce6 100644 --- a/wheat.lua +++ b/wheat.lua @@ -1,7 +1,9 @@ +local S = farming.intllib + -- wheat seeds minetest.register_node("farming:seed_wheat", { - description = "Wheat Seed", + description = S("Wheat Seed"), tiles = {"farming_wheat_seed.png"}, inventory_image = "farming_wheat_seed.png", wield_image = "farming_wheat_seed.png", @@ -19,13 +21,13 @@ minetest.register_node("farming:seed_wheat", { -- harvested wheat minetest.register_craftitem("farming:wheat", { - description = "Wheat", + description = S("Wheat"), inventory_image = "farming_wheat.png", }) -- straw minetest.register_node("farming:straw", { - description = "Straw", + description = S("Straw"), tiles = {"farming_straw.png"}, is_ground_content = false, groups = {snappy = 3, flammable = 4}, @@ -50,7 +52,7 @@ minetest.register_craft({ -- flour minetest.register_craftitem("farming:flour", { - description = "Flour", + description = S("Flour"), inventory_image = "farming_flour.png", }) @@ -62,7 +64,7 @@ minetest.register_craft({ -- bread minetest.register_craftitem("farming:bread", { - description = "Bread", + description = S("Bread"), inventory_image = "farming_bread.png", on_use = minetest.item_eat(5), }) -- cgit v1.2.3