add spanish translation, add petz leather recipe (thanks NathanielFreeman)

This commit is contained in:
tenplus1 2021-03-01 19:32:49 +00:00
parent ed624cee1d
commit dfcdc24dfd
2 changed files with 21 additions and 5 deletions

View File

@ -194,7 +194,7 @@ end)
-- register bags page
sfinv.register_page("sfinv_bags:bags", {
title = "Bags",
title = S("Bags"),
get = function(self, player, context)
@ -241,25 +241,25 @@ sfinv.register_page("sfinv_bags:bags", {
-- register bags items
minetest.register_craftitem(":bags:small", {
description = "Small Bag",
description = S("Small Bag"),
inventory_image = "bags_small.png",
groups = {bagslots = 8, flammable = 2},
})
minetest.register_craftitem(":bags:medium", {
description = "Medium Bag",
description = S("Medium Bag"),
inventory_image = "bags_medium.png",
groups = {bagslots = 16, flammable = 2},
})
minetest.register_craftitem(":bags:large", {
description = "Large Bag",
description = S("Large Bag"),
inventory_image = "bags_large.png",
groups = {bagslots = 24, flammable = 2},
})
minetest.register_tool(":bags:trolley", {
description = "Trolley",
description = S("Trolley"),
inventory_image = "bags_trolley.png",
groups = {bagslots = 32, flammable = 2},
})
@ -272,6 +272,10 @@ local item2 = "group:stick"
-- use leather if mobs redo found
if minetest.get_modpath("mobs") then
item1 = "mobs:leather"
-- use leather if petz found
elseif minetest.get_modpath("petz") then
item1 = "petz:leather"
end
-- use string if farming found

12
locale/sfinv_bags.es.tr Normal file
View File

@ -0,0 +1,12 @@
# textdomain: sfinv_bags
# author: NathanielFreeman
### init.lua ###
Bag=Bolsa
Main=Bolsas
Bags=Bolsas
Small Bag=Bolsa Pequeña
Medium Bag=Bolsa Mediana
Large Bag=Bolsa Grande
Trolley=Carrito