summaryrefslogtreecommitdiff
path: root/donut.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-05-30 12:30:00 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-05-30 12:30:00 +0100
commitcbf7bee93af73f0c5fc3098a81149fb3b884b91b (patch)
tree28bd29fe3933cf94a5d41a5a1488ddc3887d9ed4 /donut.lua
parent3d59270aef645f2d98384609d806f591cb6086fa (diff)
Added intllib support (thanks Xanthin)
Diffstat (limited to 'donut.lua')
-rw-r--r--donut.lua11
1 files changed, 7 insertions, 4 deletions
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
+})