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) --- donut.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'donut.lua') diff --git a/donut.lua b/donut.lua index 1b49848..68aeb8e 100644 --- a/donut.lua +++ b/donut.lua @@ -1,6 +1,9 @@ + +local S = farming.intllib + -- Donut (thanks to Bockwurst for making the donut images) minetest.register_craftitem("farming:donut", { - description = "Donut", + description = S("Donut"), inventory_image = "farming_donut.png", on_use = minetest.item_eat(4), }) @@ -16,7 +19,7 @@ minetest.register_craft({ -- Chocolate Donut minetest.register_craftitem("farming:donut_chocolate", { - description = "Chocolate Donut", + description = S("Chocolate Donut"), inventory_image = "farming_donut_chocolate.png", on_use = minetest.item_eat(6), }) @@ -31,7 +34,7 @@ minetest.register_craft({ -- Apple Donut minetest.register_craftitem("farming:donut_apple", { - description = "Apple Donut", + description = S("Apple Donut"), inventory_image = "farming_donut_apple.png", on_use = minetest.item_eat(6), }) @@ -42,4 +45,4 @@ minetest.register_craft({ {'default:apple'}, {'farming:donut'}, } -}) \ No newline at end of file +}) -- cgit v1.2.3