diff --git a/init.lua b/init.lua index 75c4ea8..70a7d7f 100644 --- a/init.lua +++ b/init.lua @@ -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 diff --git a/locale/sfinv_bags.es.tr b/locale/sfinv_bags.es.tr new file mode 100644 index 0000000..948f2ac --- /dev/null +++ b/locale/sfinv_bags.es.tr @@ -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