From e6421d8d495c4415eeae80c7b1a2ce20d55e443d Mon Sep 17 00:00:00 2001 From: xisd Date: Tue, 18 Oct 2016 18:13:59 +0200 Subject: Intllib (#5) Support for translation via intllib. --- cooking.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'cooking.lua') diff --git a/cooking.lua b/cooking.lua index e9859b0..1d58bf2 100644 --- a/cooking.lua +++ b/cooking.lua @@ -16,8 +16,11 @@ of the license, or (at your option) any later version. -- ways or use other items -- +-- Intllib +local S = crops.intllib + minetest.register_craftitem("crops:unbaked_clay_bowl", { - description = "Unbaked clay bowl", + description = S("Unbaked clay bowl"), inventory_image = "crops_unbaked_clay_bowl.png", }) @@ -31,7 +34,7 @@ minetest.register_craft({ }) minetest.register_craftitem("crops:clay_bowl", { - description = "Clay bowl", + description = S("Clay bowl"), inventory_image = "crops_clay_bowl.png", groups = { food_bowl=1 } }) @@ -43,7 +46,7 @@ minetest.register_craft({ }) minetest.register_craftitem("crops:vegetable_stew", { - description = "Bowl of vegetable stew", + description = S("Bowl of vegetable stew"), inventory_image = "crops_bowl_vegetable_stew.png", groups = { eatable=1 }, on_use = minetest.item_eat(8, "crops:clay_bowl"), @@ -56,7 +59,7 @@ minetest.register_craft({ }) minetest.register_craftitem("crops:uncooked_vegetable_stew", { - description = "Bowl of uncooked vegetable stew", + description = S("Bowl of uncooked vegetable stew"), inventory_image = "crops_bowl_uncooked_vegetable_stew.png", groups = { eatable=1 }, on_use = minetest.item_eat(2, "crops:clay_bowl") -- cgit v1.2.3