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:
committed by
Diego Martínez
parent
eaa716df76
commit
5212a756f5
@ -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),
|
||||
|
Reference in New Issue
Block a user