1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-07-27 20:20:21 +02:00

Add intllib support and spanish translation.

This commit is contained in:
Carlos Barraza
2017-04-17 21:30:39 -03:00
committed by Diego Martínez
parent eaa716df76
commit 5212a756f5
8 changed files with 95 additions and 7 deletions

View File

@ -1,4 +1,9 @@
local S = biome_lib.intllib
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
-- Basket
@ -71,7 +76,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
else
minetest.register_craftitem(":bushes:"..berry, {
description = desc,
description = S(desc),
inventory_image = "bushes_"..berry..".png",
groups = {berry = 1, [berry] = 1},
on_use = minetest.item_eat(1),