summaryrefslogtreecommitdiff
path: root/barley.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 /barley.lua
parent3d59270aef645f2d98384609d806f591cb6086fa (diff)
Added intllib support (thanks Xanthin)
Diffstat (limited to 'barley.lua')
-rw-r--r--barley.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/barley.lua b/barley.lua
index d69b0ba..b7bf530 100644
--- a/barley.lua
+++ b/barley.lua
@@ -1,7 +1,9 @@
+local S = farming.intllib
+
-- barley seeds
minetest.register_node("farming:seed_barley", {
- description = "Barley Seed",
+ description = S("Barley Seed"),
tiles = {"farming_barley_seed.png"},
inventory_image = "farming_barley_seed.png",
wield_image = "farming_barley_seed.png",
@@ -19,7 +21,7 @@ minetest.register_node("farming:seed_barley", {
-- harvested barley
minetest.register_craftitem("farming:barley", {
- description = "barley",
+ description = S("Barley"),
inventory_image = "farming_barley.png",
})