diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-05-19 15:05:54 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-05-19 15:05:54 +0100 |
commit | 153ef883cccadc0e164c9e5632ff7bc12e8e8876 (patch) | |
tree | f218ceaa574d13590600de37c67e7df8a7422cc9 /init.lua | |
parent | 18ec8a9bfbe40ee416c1c9f4d500a2daf541f33b (diff) |
added intllib support and french translation
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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"))
|