summaryrefslogtreecommitdiff
path: root/cooking.lua
diff options
context:
space:
mode:
authorxisd <zlexis.dnl@googlemail.com>2016-10-18 18:13:59 +0200
committerAuke Kok <sofar+github@foo-projects.org>2016-10-18 09:13:59 -0700
commite6421d8d495c4415eeae80c7b1a2ce20d55e443d (patch)
tree1f2c38e7e72f7bd5dbd04888d7bc758d007326af /cooking.lua
parent65729b9d33fde507a4044b25cd29fba2d8a5eb50 (diff)
Intllib (#5)
Support for translation via intllib.
Diffstat (limited to 'cooking.lua')
-rw-r--r--cooking.lua11
1 files changed, 7 insertions, 4 deletions
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")