summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-05-19 15:05:54 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-05-19 15:05:54 +0100
commit153ef883cccadc0e164c9e5632ff7bc12e8e8876 (patch)
treef218ceaa574d13590600de37c67e7df8a7422cc9 /init.lua
parent18ec8a9bfbe40ee416c1c9f4d500a2daf541f33b (diff)
added intllib support and french translation
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index d3829e8..92c2f03 100644
--- a/init.lua
+++ b/init.lua
@@ -1,6 +1,10 @@
bonemeal = {}
+-- Load support for intllib.
+local MP = minetest.get_modpath(minetest.get_current_modname())
+local S, NS = dofile(MP .. "/intllib.lua")
+
-- default crops
local crops = {
@@ -325,7 +329,7 @@ end
-- mulch (strength 1)
minetest.register_craftitem("bonemeal:mulch", {
- description = "Mulch",
+ description = S("Mulch"),
inventory_image = "bonemeal_mulch.png",
on_use = function(itemstack, user, pointed_thing)
@@ -354,7 +358,7 @@ minetest.register_craftitem("bonemeal:mulch", {
-- bonemeal (strength 2)
minetest.register_craftitem("bonemeal:bonemeal", {
- description = "Bone Meal",
+ description = S("Bone Meal"),
inventory_image = "bonemeal_item.png",
on_use = function(itemstack, user, pointed_thing)
@@ -384,7 +388,7 @@ minetest.register_craftitem("bonemeal:bonemeal", {
-- fertiliser (strength 3)
minetest.register_craftitem("bonemeal:fertiliser", {
- description = "Fertiliser",
+ description = S("Fertiliser"),
inventory_image = "bonemeal_fertiliser.png",
on_use = function(itemstack, user, pointed_thing)
@@ -414,7 +418,7 @@ minetest.register_craftitem("bonemeal:fertiliser", {
-- bone
minetest.register_craftitem("bonemeal:bone", {
- description = "Bone",
+ description = S("Bone"),
inventory_image = "bonemeal_bone.png",
})
@@ -475,4 +479,4 @@ minetest.override_item("default:dirt", {
-- add support for other mods
dofile(minetest.get_modpath("bonemeal") .. "/mods.lua")
-print ("[MOD] Bonemeal loaded")
+print (S("[bonemeal] loaded"))