From 28aa73357d34c7a77e3918f15cbb589fa5bd1275 Mon Sep 17 00:00:00 2001 From: Louis Royer <4259825-lroyer@users.noreply.gitlab.com> Date: Sat, 8 Feb 2020 17:02:17 +0000 Subject: [PATCH] Add french translation --- depends.txt | 2 -- electrical-electronic.lua | 13 ++++++++----- locale/basic_materials.fr.tr | 33 +++++++++++++++++++++++++++++++++ metals.lua | 33 ++++++++++++++++++--------------- misc.lua | 17 ++++++++++------- mod.conf | 3 +++ plastics.lua | 9 ++++++--- 7 files changed, 78 insertions(+), 32 deletions(-) delete mode 100644 depends.txt create mode 100644 locale/basic_materials.fr.tr create mode 100644 mod.conf diff --git a/depends.txt b/depends.txt deleted file mode 100644 index 436cd47..0000000 --- a/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -default -moreores? diff --git a/electrical-electronic.lua b/electrical-electronic.lua index 4802bbc..91fac4e 100644 --- a/electrical-electronic.lua +++ b/electrical-electronic.lua @@ -1,27 +1,30 @@ +-- Translation support +local S = minetest.get_translator("basic_materials") + -- items minetest.register_craftitem("basic_materials:silicon", { - description = "Silicon lump", + description = S("Silicon lump"), inventory_image = "basic_materials_silicon.png", }) minetest.register_craftitem("basic_materials:ic", { - description = "Simple Integrated Circuit", + description = S("Simple Integrated Circuit"), inventory_image = "basic_materials_ic.png", }) minetest.register_craftitem("basic_materials:motor", { - description = "Simple Motor", + description = S("Simple Motor"), inventory_image = "basic_materials_motor.png", }) minetest.register_craftitem("basic_materials:heating_element", { - description = "Heating element", + description = S("Heating element"), inventory_image = "basic_materials_heating_element.png", }) minetest.register_craftitem("basic_materials:energy_crystal_simple", { - description = "Simple energy crystal", + description = S("Simple energy crystal"), inventory_image = "basic_materials_energy_crystal.png", }) diff --git a/locale/basic_materials.fr.tr b/locale/basic_materials.fr.tr new file mode 100644 index 0000000..0bebf79 --- /dev/null +++ b/locale/basic_materials.fr.tr @@ -0,0 +1,33 @@ +# textdomain: basic_materials +Silicon lump=Morceau de silicium +Simple Integrated Circuit=Circuit intégré simple +Simple Motor=Moteur simple +Heating element=Élément chauffant +Simple energy crystal=Cristal d’énergie simple + +Spool of steel wire=Bobine de fil d’acier +Spool of copper wire=Bobine de fil de cuivre +Spool of silver wire=Bobine de fil d’argent +Spool of gold wire=Bobine de fil d’or +Steel Strip=Bande de acier +Copper Strip=Bande de cuivre +Steel Bar=Barre d’acier +Chainlinks (brass)=Maillon en laiton +Chainlinks (steel)=Maillon en acier +Brass Ingot=Lingot de laiton +Steel gear=Rouage en acier +Padlock=Cadenas +Chain (steel, hanging)=Chaine en acier +Chain (brass, hanging)=Chaine en laiton +Brass Block=Bloc de laiton + +Oil extract=Extrait d’huile +Unprocessed paraffin=Paraffine non transformée +Uncooked Terracotta Base=Argile crue +Wet Cement=Ciment humide +Cement=Ciment +Concrete Block=Bloc de béton + +Plastic sheet=Morceau de plastique +Plastic strips=Bande de plastique +Empty wire spool=Bobine de fil vide diff --git a/metals.lua b/metals.lua index e4af694..cae56d7 100644 --- a/metals.lua +++ b/metals.lua @@ -1,62 +1,65 @@ +-- Translation support +local S = minetest.get_translator("basic_materials") + -- items minetest.register_craftitem("basic_materials:steel_wire", { - description = "Spool of steel wire", + description = S("Spool of steel wire"), inventory_image = "basic_materials_steel_wire.png" }) minetest.register_craftitem("basic_materials:copper_wire", { - description = "Spool of copper wire", + description = S("Spool of copper wire"), inventory_image = "basic_materials_copper_wire.png" }) minetest.register_craftitem("basic_materials:silver_wire", { - description = "Spool of silver wire", + description = S("Spool of silver wire"), inventory_image = "basic_materials_silver_wire.png" }) minetest.register_craftitem("basic_materials:gold_wire", { - description = "Spool of gold wire", + description = S("Spool of gold wire"), inventory_image = "basic_materials_gold_wire.png" }) minetest.register_craftitem("basic_materials:steel_strip", { - description = "Steel Strip", + description = S("Steel Strip"), inventory_image = "basic_materials_steel_strip.png" }) minetest.register_craftitem("basic_materials:copper_strip", { - description = "Copper Strip", + description = S("Copper Strip"), inventory_image = "basic_materials_copper_strip.png" }) minetest.register_craftitem("basic_materials:steel_bar", { - description = "Steel Bar", + description = S("Steel Bar"), inventory_image = "basic_materials_steel_bar.png", }) minetest.register_craftitem("basic_materials:chainlink_brass", { - description = "Chainlinks (brass)", + description = S("Chainlinks (brass)"), inventory_image = "basic_materials_chainlink_brass.png" }) minetest.register_craftitem("basic_materials:chainlink_steel", { - description = "Chainlinks (steel)", + description = S("Chainlinks (steel)"), inventory_image = "basic_materials_chainlink_steel.png" }) minetest.register_craftitem("basic_materials:brass_ingot", { - description = "Brass Ingot", + description = S("Brass Ingot"), inventory_image = "basic_materials_brass_ingot.png", }) minetest.register_craftitem("basic_materials:gear_steel", { - description = "Steel gear", + description = S("Steel gear"), inventory_image = "basic_materials_gear_steel.png" }) minetest.register_craftitem("basic_materials:padlock", { - description = "Padlock", + description = S("Padlock"), inventory_image = "basic_materials_padlock.png" }) @@ -76,7 +79,7 @@ local topchains_sbox = { } minetest.register_node("basic_materials:chain_steel", { - description = "Chain (steel, hanging)", + description = S("Chain (steel, hanging)"), drawtype = "mesh", mesh = "basic_materials_chains.obj", tiles = {"basic_materials_chain_steel.png"}, @@ -90,7 +93,7 @@ minetest.register_node("basic_materials:chain_steel", { }) minetest.register_node("basic_materials:chain_brass", { - description = "Chain (brass, hanging)", + description = S("Chain (brass, hanging)"), drawtype = "mesh", mesh = "basic_materials_chains.obj", tiles = {"basic_materials_chain_brass.png"}, @@ -104,7 +107,7 @@ minetest.register_node("basic_materials:chain_brass", { }) minetest.register_node("basic_materials:brass_block", { - description = "Brass Block", + description = S("Brass Block"), tiles = { "basic_materials_brass_block.png" }, is_ground_content = false, groups = {cracky=1, level=2}, diff --git a/misc.lua b/misc.lua index ceafa4b..0012897 100644 --- a/misc.lua +++ b/misc.lua @@ -1,29 +1,32 @@ ---items +-- Translation support +local S = minetest.get_translator("basic_materials") + +-- items minetest.register_craftitem("basic_materials:oil_extract", { - description = "Oil extract", + description = S("Oil extract"), inventory_image = "basic_materials_oil_extract.png", }) minetest.register_craftitem("basic_materials:paraffin", { - description = "Unprocessed paraffin", + description = S("Unprocessed paraffin"), inventory_image = "basic_materials_paraffin.png", }) minetest.register_craftitem("basic_materials:terracotta_base", { - description = "Uncooked Terracotta Base", + description = S("Uncooked Terracotta Base"), inventory_image = "basic_materials_terracotta_base.png", }) minetest.register_craftitem("basic_materials:wet_cement", { - description = "Wet Cement", + description = S("Wet Cement"), inventory_image = "basic_materials_wet_cement.png", }) -- nodes minetest.register_node("basic_materials:cement_block", { - description = "Cement", + description = S("Cement"), tiles = {"basic_materials_cement_block.png"}, is_ground_content = true, groups = {cracky=2}, @@ -31,7 +34,7 @@ minetest.register_node("basic_materials:cement_block", { }) minetest.register_node("basic_materials:concrete_block", { - description = "Concrete Block", + description = S("Concrete Block"), tiles = {"basic_materials_concrete_block.png",}, groups = {cracky=1, level=2, concrete=1}, sounds = default.node_sound_stone_defaults(), diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..4b58eba --- /dev/null +++ b/mod.conf @@ -0,0 +1,3 @@ +name = basic_materials +depends = default +optional_depends = moreores diff --git a/plastics.lua b/plastics.lua index 953023e..3ac0f98 100644 --- a/plastics.lua +++ b/plastics.lua @@ -1,17 +1,20 @@ +-- Translation support +local S = minetest.get_translator("basic_materials") + -- items minetest.register_craftitem("basic_materials:plastic_sheet", { - description = "Plastic sheet", + description = S("Plastic sheet"), inventory_image = "basic_materials_plastic_sheet.png", }) minetest.register_craftitem("basic_materials:plastic_strip", { - description = "Plastic strips", + description = S("Plastic strips"), inventory_image = "basic_materials_plastic_strip.png", }) minetest.register_craftitem("basic_materials:empty_spool", { - description = "Empty wire spool", + description = S("Empty wire spool"), inventory_image = "basic_materials_empty_spool.png" })