mirror of
https://codeberg.org/tenplus1/bonemeal.git
synced 2025-07-12 13:20:28 +02:00
added intllib support and french translation
This commit is contained in:
14
init.lua
14
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"))
|
||||
|
Reference in New Issue
Block a user