diff --git a/depends.txt b/depends.txt deleted file mode 100644 index 9c36ca4..0000000 --- a/depends.txt +++ /dev/null @@ -1,4 +0,0 @@ -3d_armor -shields -hudbars? -hbsprint? diff --git a/init.lua b/init.lua index 6b796dd..7c279f2 100644 --- a/init.lua +++ b/init.lua @@ -6,6 +6,8 @@ armor.materials.reinforcedleather = "3d_armor:reinforcedleather" armor.materials.hardenedleather = "3d_armor:hardenedleather" armor.materials.blackmithril = "3d_armor:blackmithril_ingot" +local S = minetest.get_translator("3d_armor_classes") + -- Load Configuration for name, config in pairs(armor.config) do @@ -58,7 +60,7 @@ end -- Reinforced Leather minetest.register_craftitem(":3d_armor:reinforcedleather", { - description = "Reinforced Leather", + description = S("Reinforced Leather"), inventory_image = "3d_armor_reinforcedleather.png", stack_max = 99, }) @@ -75,7 +77,7 @@ minetest.register_craft({ if armor.materials.reinforcedleather then -- Register helmets : armor:register_armor(":3d_armor:helmet_reinforcedleather", { - description = "Reinforced Leather Helmet (Hunter)", + description = S("Reinforced Leather Helmet (@1)", S("Hunter")), inventory_image = "3d_armor_inv_helmet_reinforcedleather.png", groups = {armor_head=1, armor_use=40, physics_speed=0.02, physics_gravity=-0.02}, armor_groups = {fleshy=6}, @@ -90,7 +92,7 @@ if armor.materials.reinforcedleather then -- Register chestplates : armor:register_armor(":3d_armor:chestplate_reinforcedleather", { - description = "Reinforced Leather Chestplate (Hunter)", + description = S("Reinforced Leather Chestplate (@1)", S("Hunter")), inventory_image = "3d_armor_inv_chestplate_reinforcedleather.png", groups = {armor_torso = 1, armor_use = 40, physics_speed=0.08, physics_gravity=-0.08}, armor_groups = {fleshy=11}, @@ -106,7 +108,7 @@ if armor.materials.reinforcedleather then -- Register leggings : armor:register_armor(":3d_armor:leggings_reinforcedleather", { - description = "Reinforced Leather Leggings (Hunter)", + description = S("Reinforced Leather Leggings (@1)", S("Hunter")), inventory_image = "3d_armor_inv_leggings_reinforcedleather.png", groups = {armor_legs = 1, armor_use = 40, physics_speed=0.06, physics_gravity=-0.06}, armor_groups = {fleshy=11}, @@ -121,7 +123,7 @@ if armor.materials.reinforcedleather then -- Register boots : armor:register_armor(":3d_armor:boots_reinforcedleather", { - description = "Reinforced Leather Boots (Hunter)", + description = S("Reinforced Leather Boots (@1)", S("Hunter")), inventory_image = "3d_armor_inv_boots_reinforcedleather.png", groups = {armor_feet = 1, armor_use = 40, physics_speed=0.02, physics_gravity=-0.02}, armor_groups = {fleshy=6}, @@ -138,7 +140,7 @@ end -- Hardened Leather minetest.register_craftitem(":3d_armor:hardenedleather", { - description = "Hardened Leather", + description = S("Hardened Leather"), inventory_image = "3d_armor_hardenedleather.png", stack_max = 99, }) @@ -155,7 +157,7 @@ minetest.register_craft({ if armor.materials.hardenedleather then -- Register helmets : armor:register_armor(":3d_armor:helmet_hardenedleather", { - description = "Hardened Leather Helmet (Hunter)", + description = S("Hardened Leather Helmet (@1)", S("Hunter")), inventory_image = "3d_armor_inv_helmet_hardenedleather.png", groups = {armor_head = 1, armor_use = 250, physics_speed=0.01, physics_gravity=-0.01}, armor_groups = {fleshy=5}, @@ -170,7 +172,7 @@ if armor.materials.hardenedleather then -- Register chestplates : armor:register_armor(":3d_armor:chestplate_hardenedleather", { - description = "Hardened Leather Chestplate (Hunter)", + description = S("Hardened Leather Chestplate (@1)", S("Hunter")), inventory_image = "3d_armor_inv_chestplate_hardenedleather.png", groups = {armor_torso = 1, armor_use = 250, physics_speed=0.04, physics_gravity=-0.04}, armor_groups = {fleshy=8}, @@ -185,7 +187,7 @@ if armor.materials.hardenedleather then -- Register leggings : armor:register_armor(":3d_armor:leggings_hardenedleather", { - description = "Hardened Leather Leggings (Hunter)", + description = S("Hardened Leather Leggings (@1)", S("Hunter")), inventory_image = "3d_armor_inv_leggings_hardenedleather.png", groups = {armor_legs = 1, armor_use = 250, physics_speed=0.03, physics_gravity=-0.03}, armor_groups = {fleshy=8}, @@ -200,7 +202,7 @@ if armor.materials.hardenedleather then -- Register boots : armor:register_armor(":3d_armor:boots_hardenedleather", { - description = "Hardened Leather Boots (Hunter)", + description = S("Hardened Leather Boots (@1)", S("Hunter")), inventory_image = "3d_armor_inv_boots_hardenedleather.png", groups = {armor_feet = 1, armor_use = 250, physics_speed=0.01, physics_gravity=-0.01}, armor_groups = {fleshy=5}, @@ -216,7 +218,7 @@ end -- Black Mithril minetest.register_craftitem(":3d_armor:blackmithril_ingot", { - description = "Black Mithril Ingot", + description = S("Black Mithril Ingot"), inventory_image = "3d_armor_blackmithril_ingot.png", stack_max = 99, groups = {ingot = 1} @@ -234,7 +236,7 @@ minetest.register_craft({ if armor.materials.blackmithril then -- Register helmets : armor:register_armor(":3d_armor:helmet_blackmithril", { - description = "Black Mithril Helmet (Warrior)", + description = S("Black Mithril Helmet (@1)", S("Warrior")), inventory_image = "3d_armor_inv_helmet_blackmithril.png", groups = {armor_head = 1, armor_heal = 15, armor_use = 40}, armor_groups = {fleshy=16}, @@ -249,7 +251,7 @@ if armor.materials.blackmithril then -- Register chestplates : armor:register_armor(":3d_armor:chestplate_blackmithril", { - description = "Black Mithril Chestplate (Warrior)", + description = S("Black Mithril Chestplate (@1)", S("Warrior")), inventory_image = "3d_armor_inv_chestplate_blackmithril.png", groups = {armor_torso = 1, armor_heal = 15, armor_use = 40}, armor_groups = {fleshy=22}, @@ -264,7 +266,7 @@ if armor.materials.blackmithril then -- Register leggings : armor:register_armor(":3d_armor:leggings_blackmithril", { - description = "Black Mithril Leggings (Warrior)", + description = S("Black Mithril Leggings (@1)", S("Warrior")), inventory_image = "3d_armor_inv_leggings_blackmithril.png", groups = {armor_legs = 1, armor_heal = 15, armor_use = 40}, armor_groups = {fleshy=22}, @@ -279,7 +281,7 @@ if armor.materials.blackmithril then -- Register boots : armor:register_armor(":3d_armor:boots_blackmithril", { - description = "Black Mithril Boots (Warrior)", + description = S("Black Mithril Boots (@1)", S("Warrior")), inventory_image = "3d_armor_inv_boots_blackmithril.png", groups = {armor_feet = 1, armor_heal = 15, armor_use = 40}, armor_groups = {fleshy=16}, @@ -294,7 +296,7 @@ if armor.materials.blackmithril then -- Register shield : armor:register_armor(":shields:shield_blackmithril", { - description = "Black Mithril Shield (warrior)", + description = S("Black Mithril Shield (@1)", S("Warrior")), inventory_image = "shields_inv_shield_black_mithril_warrior.png", groups = {armor_shield=15, armor_heal=0, armor_use=50}, armor_groups = {fleshy=16}, diff --git a/locale/3d_armor_classes.fr.tr b/locale/3d_armor_classes.fr.tr new file mode 100644 index 0000000..840e2dd --- /dev/null +++ b/locale/3d_armor_classes.fr.tr @@ -0,0 +1,20 @@ +# textdomain: 3d_armor_classes + +Hunter=Chasseur +Warrior=Guerrier +Reinforced Leather=Cuir renforcé +Reinforced Leather Helmet (@1)=Casque en cuir renforcé (@1) +Reinforced Leather Chestplate (@1)=Plastron en cuir renforcé (@1) +Reinforced Leather Leggings (@1)=Jambières en cuir renforcé (@1) +Reinforced Leather Boots (@1)=Bottes en cuir renforcé (@1) +Hardened Leather=Cuir durci +Hardened Leather Helmet (@1)=Casque en cuir durci (@1) +Hardened Leather Chestplate (@1)=Plastron en cuir durci (@1) +Hardened Leather Leggings (@1)=Jambières en cuir durci (@1) +Hardened Leather Boots (@1)=Bottes en cuir durci (@1) +Black Mithril Ingot=Lingot de mithril noir +Black Mithril Helmet (@1)=Casque en mithril noir (@1) +Black Mithril Chestplate (@1)=Plastron en mithril noir (@1) +Black Mithril Leggings (@1)=Jambières en mithril noir (@1) +Black Mithril Boots (@1)=Bottes en mithril noir (@1) +Black Mithril Shield (@1)=Bouclier en mithril noir (@1) diff --git a/locale/template.txt b/locale/template.txt new file mode 100644 index 0000000..7fdb9c7 --- /dev/null +++ b/locale/template.txt @@ -0,0 +1,20 @@ +# textdomain: 3d_armor_classes + +Hunter= +Warrior= +Reinforced Leather= +Reinforced Leather Helmet (@1)= +Reinforced Leather Chestplate (@1)= +Reinforced Leather Leggings (@1)= +Reinforced Leather Boots (@1)= +Hardened Leather= +Hardened Leather Helmet (@1)= +Hardened Leather Chestplate (@1)= +Hardened Leather Leggings (@1)= +Hardened Leather Boots (@1)= +Black Mithril Ingot= +Black Mithril Helmet (@1)= +Black Mithril Chestplate (@1)= +Black Mithril Leggings (@1)= +Black Mithril Boots (@1)= +Black Mithril Shield (@1)=