diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-09 15:08:34 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-09 15:08:34 +0100 |
commit | 0b43f0428559cd477da796d7f27648814cc8cfe8 (patch) | |
tree | 633c6bd0beeb5c8caef32fdd96d19bb87d75438f /sapling.lua | |
parent | 306c025713487b20a20e32e33277d2f215a70832 (diff) |
Added intllib support
Diffstat (limited to 'sapling.lua')
-rw-r--r-- | sapling.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sapling.lua b/sapling.lua index f0007a5..ceee452 100644 --- a/sapling.lua +++ b/sapling.lua @@ -1,7 +1,9 @@ +local S = ethereal.intllib + -- Bamboo Sprout minetest.register_node("ethereal:bamboo_sprout", { - description = "Bamboo Sprout", + description = S("Bamboo Sprout"), drawtype = "plantlike", tiles = {"bamboo_sprout.png"}, inventory_image = "bamboo_sprout.png", @@ -25,7 +27,7 @@ minetest.register_node("ethereal:bamboo_sprout", { ethereal.register_sapling = function(name, desc, texture) minetest.register_node(name .. "_sapling", { - description = desc .. " Tree Sapling", + description = S(desc .. " Tree Sapling"), drawtype = "plantlike", visual_scale = 1.0, tiles = {texture .. ".png"}, @@ -61,7 +63,7 @@ ethereal.register_sapling("ethereal:birch", "Birch", "moretrees_birch_sapling") ethereal.add_tree = function (pos, ofx, ofy, ofz, schem) -- check for schematic if not schem then - print ("Schematic not found") + print (S("Schematic not found")) return end -- remove sapling and place schematic |