diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-05-30 12:30:00 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-05-30 12:30:00 +0100 |
commit | cbf7bee93af73f0c5fc3098a81149fb3b884b91b (patch) | |
tree | 28bd29fe3933cf94a5d41a5a1488ddc3887d9ed4 /pumpkin.lua | |
parent | 3d59270aef645f2d98384609d806f591cb6086fa (diff) |
Added intllib support (thanks Xanthin)
Diffstat (limited to 'pumpkin.lua')
-rw-r--r-- | pumpkin.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pumpkin.lua b/pumpkin.lua index e443d66..ebbbd87 100644 --- a/pumpkin.lua +++ b/pumpkin.lua @@ -3,9 +3,11 @@ Big thanks to PainterlyPack.net for allowing me to use these textures ]] +local S = farming.intllib + -- pumpkin minetest.register_node("farming:pumpkin", { - description = "Pumpkin", + description = S("Pumpkin"), tiles = { "farming_pumpkin_top.png", "farming_pumpkin_top.png", @@ -25,7 +27,7 @@ minetest.register_node("farming:pumpkin", { -- pumpkin slice minetest.register_craftitem("farming:pumpkin_slice", { - description = "Pumpkin Slice", + description = S("Pumpkin Slice"), inventory_image = "farming_pumpkin_slice.png", on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "farming:pumpkin_1") @@ -51,7 +53,7 @@ minetest.register_craft({ -- jack 'o lantern minetest.register_node("farming:jackolantern", { - description = "Jack 'O Lantern", + description = S("Jack 'O Lantern"), tiles = { "farming_pumpkin_top.png", "farming_pumpkin_top.png", @@ -70,7 +72,6 @@ minetest.register_node("farming:jackolantern", { }) minetest.register_node("farming:jackolantern_on", { - description = "Jack 'O Lantern", tiles = { "farming_pumpkin_top.png", "farming_pumpkin_top.png", @@ -101,13 +102,13 @@ minetest.register_craft({ -- pumpkin bread minetest.register_craftitem("farming:pumpkin_bread", { - description = ("Pumpkin Bread"), + description = S("Pumpkin Bread"), inventory_image = "farming_pumpkin_bread.png", on_use = minetest.item_eat(8) }) minetest.register_craftitem("farming:pumpkin_dough", { - description = "Pumpkin Dough", + description = S("Pumpkin Dough"), inventory_image = "farming_pumpkin_dough.png", }) |