diff --git a/.luacheckrc b/.luacheckrc index 96a7aac..8a34367 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -11,7 +11,7 @@ read_globals = { string = {fields = {"split", "trim"}}, table = {fields = {"copy", "getn"}}, - "intllib", "VoxelArea", + "VoxelArea", "default", "stairsplus", "PseudoRandom", "ItemStack", @@ -28,6 +28,8 @@ read_globals = { "protector", "isprotect", "homedecor_expect_infinite_stacks", + + "toolranks", } files["concrete/init.lua"].ignore = { "steel_ingot" } diff --git a/concrete/depends.txt b/concrete/depends.txt deleted file mode 100644 index 5ca909c..0000000 --- a/concrete/depends.txt +++ /dev/null @@ -1,4 +0,0 @@ -default -basic_materials -intllib? -moreblocks? diff --git a/concrete/init.lua b/concrete/init.lua index ced0471..5228e87 100644 --- a/concrete/init.lua +++ b/concrete/init.lua @@ -4,8 +4,8 @@ local technic = rawget(_G, "technic") or {} technic.concrete_posts = {} --- Boilerplate to support localized strings if intllib mod is installed. -local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end +-- Translation support +local S = minetest.get_translator("concrete") for i = 0, 31 do minetest.register_alias("technic:concrete_post"..i, @@ -63,6 +63,7 @@ minetest.register_node(":technic:blast_resistant_concrete", { if minetest.get_modpath("moreblocks") then stairsplus:register_all("technic","blast_resistant_concrete","technic:blast_resistant_concrete",{ + -- TODO: translation description = "Blast-resistant Concrete", tiles = {"technic_blast_resistant_concrete_block.png",}, groups = {cracky=1, level=3, concrete=1}, diff --git a/concrete/locale/concrete.de.tr b/concrete/locale/concrete.de.tr new file mode 100644 index 0000000..e2d857c --- /dev/null +++ b/concrete/locale/concrete.de.tr @@ -0,0 +1,12 @@ +# textdomain: concrete + +# German Translation for technic_concrete +# Deutsche Übersetzung von technic_concrete +# by Xanthin + + +### init.lua ### + +Blast-resistant Concrete Block=Explosionsbestaendiger Betonblock +Concrete Post Platform=Betonpfostenplattform +Concrete Post=Betonpfosten diff --git a/concrete/locale/concrete.es.tr b/concrete/locale/concrete.es.tr new file mode 100644 index 0000000..aef973d --- /dev/null +++ b/concrete/locale/concrete.es.tr @@ -0,0 +1,10 @@ +# textdomain: concrete + +# traducido por Carlos Barraza + + +### init.lua ### + +Blast-resistant Concrete Block=Bloque de concreto resistente a explosiones +Concrete Post Platform=Plataforma de concreto +Concrete Post=Postes de concreto diff --git a/concrete/locale/concrete.fr.tr b/concrete/locale/concrete.fr.tr new file mode 100644 index 0000000..e179687 --- /dev/null +++ b/concrete/locale/concrete.fr.tr @@ -0,0 +1,9 @@ +# textdomain: concrete + + + +### init.lua ### + +Blast-resistant Concrete Block=Bloc de béton anti explosions +Concrete Post Platform=Plateforme en béton +Concrete Post=Pilier en béton diff --git a/concrete/locale/concrete.pl.tr b/concrete/locale/concrete.pl.tr new file mode 100644 index 0000000..88cf4db --- /dev/null +++ b/concrete/locale/concrete.pl.tr @@ -0,0 +1,12 @@ +# textdomain: concrete + +# Polish Translation for technic_concrete +# Polskie tłumaczenie technic_concrete +# by mat9117 + + +### init.lua ### + +Blast-resistant Concrete Block=Przeciwwybuchowy blok betonu +Concrete Post Platform=Betonowa platforma +Concrete Post=Betonowy słup diff --git a/concrete/locale/concrete.pt_BR.tr b/concrete/locale/concrete.pt_BR.tr new file mode 100644 index 0000000..27aca6a --- /dev/null +++ b/concrete/locale/concrete.pt_BR.tr @@ -0,0 +1,12 @@ +# textdomain: concrete + +# Braziliam portuguese translation for concrete +# Tradução portuguesa brasileira para concrete +# By Sires + + +### init.lua ### + +Blast-resistant Concrete Block=Bloco de Concreto resistente-a-explosões +Concrete Post Platform=Plataforma para Poste de Concreto +Concrete Post=Poste de Concreto diff --git a/concrete/locale/concrete.tr.tr b/concrete/locale/concrete.tr.tr new file mode 100644 index 0000000..1e4c506 --- /dev/null +++ b/concrete/locale/concrete.tr.tr @@ -0,0 +1,10 @@ +# textdomain: concrete + +# turkish translation by mahmutelmas06 + + +### init.lua ### + +Blast-resistant Concrete Block=Patlamaya dayanıklı beton blok +Concrete Post Platform=Beton direk platformu +Concrete Post=Beton direk diff --git a/concrete/locale/de.txt b/concrete/locale/de.txt deleted file mode 100644 index 83fdc19..0000000 --- a/concrete/locale/de.txt +++ /dev/null @@ -1,10 +0,0 @@ -# German Translation for technic_concrete -# Deutsche Übersetzung von technic_concrete -# by Xanthin - -Rebar = Bewehrungsstab -Concrete Block = Betonblock -Blast-resistant Concrete Block = Explosionsbestaendiger Betonblock -Concrete Post Platform = Betonpfostenplattform -Concrete Post = Betonpfosten - diff --git a/concrete/locale/es.txt b/concrete/locale/es.txt deleted file mode 100644 index b7ea30a..0000000 --- a/concrete/locale/es.txt +++ /dev/null @@ -1,8 +0,0 @@ -# technic_concrete traducido por Carlos Barraza - -Rebar = Barra de refuerzo -Concrete Block = Bloque de concreto -Blast-resistant Concrete Block = Bloque de concreto resistente a explosiones -Concrete Post Platform = Plataforma de concreto -Concrete Post = Postes de concreto - diff --git a/concrete/locale/fr.txt b/concrete/locale/fr.txt deleted file mode 100644 index 4af4530..0000000 --- a/concrete/locale/fr.txt +++ /dev/null @@ -1,7 +0,0 @@ -# technic_concrete translation template - -Rebar = Armature -Concrete Block = Bloc de béton -Blast-resistant Concrete Block = Bloc de béton anti explosions -Concrete Post Platform = Plateforme en béton -Concrete Post = Pilier en béton diff --git a/concrete/locale/pl.txt b/concrete/locale/pl.txt deleted file mode 100644 index 3b2e6f5..0000000 --- a/concrete/locale/pl.txt +++ /dev/null @@ -1,10 +0,0 @@ -# Polish Translation for technic_concrete -# Polskie tłumaczenie technic_concrete -# by mat9117 - -Rebar = Pręt zbrojeniowy -Concrete Block = Blok betonu -Blast-resistant Concrete Block = Przeciwwybuchowy blok betonu -Concrete Post Platform = Betonowa platforma -Concrete Post = Betonowy słup - diff --git a/concrete/locale/pt_BR.txt b/concrete/locale/pt_BR.txt deleted file mode 100644 index 057ace5..0000000 --- a/concrete/locale/pt_BR.txt +++ /dev/null @@ -1,10 +0,0 @@ -# Braziliam portuguese translation for technic_concrete -# Tradução portuguesa brasileira para technic_concrete -# By Sires - -Rebar = Vergalhão -Concrete Block = Bloco de Concreto -Blast-resistant Concrete Block = Bloco de Concreto resistente-a-explosões -Concrete Post Platform = Plataforma para Poste de Concreto -Concrete Post = Poste de Concreto - diff --git a/concrete/locale/template.txt b/concrete/locale/template.txt index 451adaf..ad490a0 100644 --- a/concrete/locale/template.txt +++ b/concrete/locale/template.txt @@ -1,8 +1,9 @@ -# technic_concrete translation template +# textdomain: concrete -Rebar = -Concrete Block = -Blast-resistant Concrete Block = -Concrete Post Platform = -Concrete Post = + +### init.lua ### + +Blast-resistant Concrete Block= +Concrete Post Platform= +Concrete Post= diff --git a/concrete/locale/tr.txt b/concrete/locale/tr.txt deleted file mode 100644 index 179d29b..0000000 --- a/concrete/locale/tr.txt +++ /dev/null @@ -1,7 +0,0 @@ -# turkish translation by mahmutelmas06 - -Rebar = Beton demiri -Concrete Block = Beton blok -Blast-resistant Concrete Block = Patlamaya dayanıklı beton blok -Concrete Post Platform = Beton direk platformu -Concrete Post = Beton direk diff --git a/concrete/mod.conf b/concrete/mod.conf index 506f906..08e9d1b 100644 --- a/concrete/mod.conf +++ b/concrete/mod.conf @@ -1,3 +1,4 @@ name = concrete depends = default -optional_depends = basic_materials, intllib, moreblocks +optional_depends = basic_materials, moreblocks +min_minetest_version = 5.0.0 diff --git a/extranodes/depends.txt b/extranodes/depends.txt deleted file mode 100644 index 0279a18..0000000 --- a/extranodes/depends.txt +++ /dev/null @@ -1,9 +0,0 @@ -default -technic_worldgen -basic_materials -concrete -unifieddyes? -intllib? -moreblocks? -steel? -streetsmod? diff --git a/extranodes/init.lua b/extranodes/init.lua index 42c7d67..bc76632 100644 --- a/extranodes/init.lua +++ b/extranodes/init.lua @@ -1,7 +1,7 @@ -- Minetest 0.4.6 mod: extranodes -- namespace: technic --- Boilerplate to support localized strings if intllib mod is installed. -local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end +-- Translation support +local S = minetest.get_translator("extranodes") if minetest.get_modpath("moreblocks") then diff --git a/extranodes/locale/de.txt b/extranodes/locale/de.txt deleted file mode 100644 index f3c017e..0000000 --- a/extranodes/locale/de.txt +++ /dev/null @@ -1,9 +0,0 @@ -# German Translation for technic_extranodes -# Deutsche Übersetzung von technic_extranodes -# by Xanthin - -Marble = Marmor -Marble Bricks = Marmorziegel -Granite = Granit -Concrete = Beton - diff --git a/extranodes/locale/es.txt b/extranodes/locale/es.txt deleted file mode 100644 index 8b28218..0000000 --- a/extranodes/locale/es.txt +++ /dev/null @@ -1,7 +0,0 @@ -# technic_extranodes traducido por Carlos Barraza - -Marble = Mármol -Marble Bricks = Ladrillos de mármol -Granite = Granito -Concrete = Concreto - diff --git a/extranodes/locale/extranodes.de.tr b/extranodes/locale/extranodes.de.tr new file mode 100644 index 0000000..7f5e3a2 --- /dev/null +++ b/extranodes/locale/extranodes.de.tr @@ -0,0 +1,19 @@ +# textdomain: extranodes + +# German Translation for technic_extranodes +# Deutsche Übersetzung von technic_extranodes +# by Xanthin + + +### init.lua ### + +Marble=Marmor +Marble Bricks=Marmorziegel +Granite=Granit +Concrete=Beton +Zinc Block=Zinkblock +Cast Iron Block=Gusseisenblock +Carbon Steel Block=Kohlenstoffstahlblock +Stainless Steel Block=Edelstahlblock +Insulator/cable clip= +Steel strut with insulator/cable clip= diff --git a/extranodes/locale/extranodes.es.tr b/extranodes/locale/extranodes.es.tr new file mode 100644 index 0000000..cba86c9 --- /dev/null +++ b/extranodes/locale/extranodes.es.tr @@ -0,0 +1,17 @@ +# textdomain: extranodes + +# traducido por Carlos Barraza + + +### init.lua ### + +Marble=Mármol +Marble Bricks=Ladrillos de mármol +Granite=Granito +Concrete=Concreto +Zinc Block=Bloque de Zinc +Cast Iron Block=Bloque de Hierro Fundido +Carbon Steel Block=Bloque de Acero al Carbon +Stainless Steel Block=Bloque de Acero Inoxidable +Insulator/cable clip= +Steel strut with insulator/cable clip= diff --git a/extranodes/locale/extranodes.fr.tr b/extranodes/locale/extranodes.fr.tr new file mode 100644 index 0000000..9e6b326 --- /dev/null +++ b/extranodes/locale/extranodes.fr.tr @@ -0,0 +1,16 @@ +# textdomain: extranodes + + + +### init.lua ### + +Marble=Marbre +Marble Bricks=Briques en marbre +Granite=Granite +Concrete=Béton +Zinc Block=Bloc de zinc +Cast Iron Block=Bloc de fonte +Carbon Steel Block=Bloc d’acier au carbone +Stainless Steel Block=Bloc d’acier inoxydable +Insulator/cable clip=Isolateur/pince câble +Steel strut with insulator/cable clip= diff --git a/extranodes/locale/extranodes.pl.tr b/extranodes/locale/extranodes.pl.tr new file mode 100644 index 0000000..33024b7 --- /dev/null +++ b/extranodes/locale/extranodes.pl.tr @@ -0,0 +1,19 @@ +# textdomain: extranodes + +# Polish Translation for extranodes +# Polskie tłumaczenie extranodes +# by mat9117 + + +### init.lua ### + +Marble=Marmur +Marble Bricks=Marmurowe cegły +Granite=Granit +Concrete=Beton +Zinc Block=Blok cynku +Cast Iron Block=Blok żelaziwa +Carbon Steel Block=Blok stali węglowej +Stainless Steel Block=Blok stali nierdzewnej +Insulator/cable clip= +Steel strut with insulator/cable clip= diff --git a/extranodes/locale/extranodes.pt_BR.tr b/extranodes/locale/extranodes.pt_BR.tr new file mode 100644 index 0000000..640b4ff --- /dev/null +++ b/extranodes/locale/extranodes.pt_BR.tr @@ -0,0 +1,19 @@ +# textdomain: extranodes + +# Braziliam portuguese translation for extranodes +# Tradução portuguesa brasileira para extranodes +# By Sires + + +### init.lua ### + +Marble=Mármore +Marble Bricks=Tijolos de Mármore +Granite=Granito +Concrete=Concreto +Zinc Block=Bloco de Zinco +Cast Iron Block=Bloco de Ferro Fundido +Carbon Steel Block=Bloco de Aço Carbono +Stainless Steel Block=Bloco de Aço Inoxidável +Insulator/cable clip= +Steel strut with insulator/cable clip= diff --git a/extranodes/locale/extranodes.tr.tr b/extranodes/locale/extranodes.tr.tr new file mode 100644 index 0000000..855ba8d --- /dev/null +++ b/extranodes/locale/extranodes.tr.tr @@ -0,0 +1,17 @@ +# textdomain: extranodes + +# turkish translation by mahmutelmas06 + + +### init.lua ### + +Marble=Mermer +Marble Bricks=Mermer tuğla +Granite=Granit +Concrete=Beton +Zinc Block=Çinko blok +Cast Iron Block=Döküm demir blok +Carbon Steel Block= +Stainless Steel Block=Paslanmaz çelik blok +Insulator/cable clip= +Steel strut with insulator/cable clip= diff --git a/extranodes/locale/fr.txt b/extranodes/locale/fr.txt deleted file mode 100644 index 0eb8a63..0000000 --- a/extranodes/locale/fr.txt +++ /dev/null @@ -1,7 +0,0 @@ -# technic_extranodes translation template - -Marble = Marbre -Marble Bricks = Briques en marbre -Granite = Granite -Concrete = Béton - diff --git a/extranodes/locale/pl.txt b/extranodes/locale/pl.txt deleted file mode 100644 index f15bcf5..0000000 --- a/extranodes/locale/pl.txt +++ /dev/null @@ -1,9 +0,0 @@ -# Polish Translation for technic_extranodes -# Polskie tłumaczenie technic_extranodes -# by mat9117 - -Marble = Marmur -Marble Bricks = Marmurowe cegły -Granite = Granit -Concrete = Beton - diff --git a/extranodes/locale/pt_BR.txt b/extranodes/locale/pt_BR.txt deleted file mode 100644 index e19d9f2..0000000 --- a/extranodes/locale/pt_BR.txt +++ /dev/null @@ -1,9 +0,0 @@ -# Braziliam portuguese translation for technic_extranodes -# Tradução portuguesa brasileira para technic_extranodes -# By Sires - -Marble = Mármore -Marble Bricks = Tijolos de Mármore -Granite = Granito -Concrete = Concreto - diff --git a/extranodes/locale/template.txt b/extranodes/locale/template.txt index 2ffe498..9f8d3f4 100644 --- a/extranodes/locale/template.txt +++ b/extranodes/locale/template.txt @@ -1,7 +1,17 @@ -# technic_extranodes translation template +# textdomain: extranodes -Marble = -Marble Bricks = -Granite = -Concrete = +# extranodes translation template + +### init.lua ### + +Marble= +Marble Bricks= +Granite= +Concrete= +Zinc Block= +Cast Iron Block= +Carbon Steel Block= +Stainless Steel Block= +Insulator/cable clip= +Steel strut with insulator/cable clip= diff --git a/extranodes/locale/tr.txt b/extranodes/locale/tr.txt deleted file mode 100644 index 90d8154..0000000 --- a/extranodes/locale/tr.txt +++ /dev/null @@ -1,6 +0,0 @@ -# turkish translation by mahmutelmas06 - -Marble = Mermer -Marble Bricks = Mermer tuğla -Granite = Granit -Concrete = Beton diff --git a/extranodes/mod.conf b/extranodes/mod.conf index 6f02b1c..54190b5 100644 --- a/extranodes/mod.conf +++ b/extranodes/mod.conf @@ -1,3 +1,4 @@ name = extranodes depends = default, technic_worldgen, basic_materials, concrete -optional_depends = unifieddyes, intllib, moreblocks, steel, streetsmod +optional_depends = unifieddyes, moreblocks, steel, streetsmod +min_minetest_version = 5.0.0 diff --git a/technic/depends.txt b/technic/depends.txt deleted file mode 100644 index 1b76ab3..0000000 --- a/technic/depends.txt +++ /dev/null @@ -1,14 +0,0 @@ -default -pipeworks -technic_worldgen -basic_materials -bucket? -screwdriver? -mesecons? -mesecons_mvps? -digilines? -digiline_remote? -intllib? -unified_inventory? -vector_extras? -dye? diff --git a/technic/doc/api.md b/technic/doc/api.md index 3343f11..e1ff784 100644 --- a/technic/doc/api.md +++ b/technic/doc/api.md @@ -12,10 +12,9 @@ Tier are network types. List of pre-registered tiers: Available functions: -* `technic.register_tier(tier, description)` +* `technic.register_tier(tier)` * Registers a network type (tier) * `tier`: string, short name (ex. `LV`) - * `description`: string, long name (ex. `Low Voltage`) * See also `tiers` diff --git a/technic/init.lua b/technic/init.lua index 370c71b..c9f609d 100644 --- a/technic/init.lua +++ b/technic/init.lua @@ -12,14 +12,6 @@ local modpath = minetest.get_modpath("technic") technic.modpath = modpath --- Boilerplate to support intllib -if rawget(_G, "intllib") then - technic.getter = intllib.Getter() -else - technic.getter = function(s,a,...)if a==nil then return s end a={a,...}return s:gsub("(@?)@(%(?)(%d+)(%)?)",function(e,o,n,c)if e==""then return a[tonumber(n)]..(o==""and c or"")else return"@"..o..n..c end end) end -end -local S = technic.getter - -- Read configuration file dofile(modpath.."/config.lua") @@ -48,6 +40,6 @@ dofile(modpath.."/tools/init.lua") dofile(modpath.."/legacy.lua") if minetest.settings:get_bool("log_mods") then - print(S("[Technic] Loaded in %f seconds"):format(os.clock() - load_start)) + print(string.format("[Technic] Loaded in %f seconds", os.clock() - load_start)) end diff --git a/technic/items.lua b/technic/items.lua index d1565d7..eb66c26 100644 --- a/technic/items.lua +++ b/technic/items.lua @@ -1,6 +1,5 @@ -local S = technic.getter - +local S = minetest.get_translator("technic") minetest.register_craftitem("technic:silicon_wafer", { description = S("Silicon Wafer"), inventory_image = "technic_silicon_wafer.png", @@ -146,7 +145,7 @@ for p = 0, 35 do local block = "technic:uranium"..psuffix.."_block" local ov = p == 7 and minetest.override_item or nil; (ov or minetest.register_craftitem)(ingot, { - description = string.format(S("%.1f%%-Fissile Uranium Ingot"), p/10), + description = S("@1%-Fissile Uranium Ingot", string.format("%.1f", p/10)), inventory_image = "technic_uranium_ingot.png", groups = {uranium_ingot=1, not_in_creative_inventory=nici}, }); @@ -183,7 +182,7 @@ for p = 0, 35 do -- a 3.5%-fissile uranium block. local radioactivity = math.floor(math.sqrt((1+5.55*p/35) * 18 / (1+5.55*7/35)) + 0.5); (ov or minetest.register_node)(block, { - description = string.format(S("%.1f%%-Fissile Uranium Block"), p/10), + description = S("@1%-Fissile Uranium Block", string.format("%.1f", p/10)), tiles = {"technic_uranium_block.png"}, is_ground_content = true, groups = {uranium_block=1, not_in_creative_inventory=nici, diff --git a/technic/locale/de.txt b/technic/locale/de.txt deleted file mode 100644 index 45ff387..0000000 --- a/technic/locale/de.txt +++ /dev/null @@ -1,168 +0,0 @@ -# German Translation for Technic Mod -# Deutsche Uebersetzung des Technic Mods -# by Xanthin - -## Misc -[Technic] Loaded in %f seconds = [Technic] ist in %f Sekunden geladen - -## Items -Silicon Wafer = Siliziumscheibe -Doped Silicon Wafer = Dotierte Siliziumscheibe -Enriched Uranium = Angereichertes Uran -Uranium Fuel = Uranbrennstoff -Diamond Drill Head = Diamantbohrkopf -Blue Energy Crystal = Blauer Energiekristall -Green Energy Crystal = Gruener Energiekristall -Red Energy Crystal = Roter Energiekristall -Fine Copper Wire = Feinkupferdraht -Copper Coil = Kupferspule -Electric Motor = Elektromotor -Low Voltage Transformer = Niederspannungstransformator -Medium Voltage Transformer = Mittelspannungstransformator -High Voltage Transformer = Hochspannungstransformator -Control Logic Unit = Steuer- und Regelungseinheit -Mixed Metal Ingot = Mischmetallbarren -Composite Plate = Verbundplatte -Copper Plate = Kupferplatte -Carbon Plate = Kohlefaserplatte -Graphite = Graphit -Carbon Cloth = Kohlefasergewebe -Raw Latex = Rohlatex -Rubber Fiber = Gummifaser -%.1f%%-Fissile Uranium Ingot = -%.1f%%-Fissile Uranium Block = - -## Machine misc -Machine cannot be removed because it is not empty = Die Maschine kann nicht entfernt werden, weil sie noch nicht leer ist. -Inventory move disallowed due to protection = Das Inventar ist geschuetzt, Zugriff verweigert. -# $1: Machine name (Includes tier) -@1 Active (@2 EU) = @1 ist eingeschaltet (@2 EU) -%s Active = %s ist eingeschaltet -%s Disabled = %s ist ausgeschaltet -%s Enabled = -%s Idle = %s ist bereit -%s Improperly Placed = %s ist falsch plaziert -%s Unpowered = %s hat keine Stromversorgung -%s Out Of Fuel = %s hat keinen Brennstoff -%s Has Bad Cabling = %s ist falsch verkabelt -%s Has No Network = %s hat kein Netzwerk -%s Finished = %s ist fertig -Enable/Disable = Einschalten/Ausschalten -Range = Reichweite -Upgrade Slots = Verbesserungsfaecher -In: = Rein: -Out: = Raus: -Slot %d = Fach %d -Itemwise = Einzelstuecke -Stackwise = Ganzer Stapel -Owner: = -Unlocked = -Locked = -Radius: = -Enabled = -Disabled = - -## Machine names -# $1: Tier -%s Alloy Furnace = %s Legierungsofen -%s Battery Box = %s Batteriebox -%s Cable = %s Kabel -%s Compressor = %s Kompressor -%s Extractor = %s Extraktor -%s Forcefield Emitter = %s Kraftfeld-Emitter -%s Furnace = %s Ofen -%s Grinder = %s Schleifmaschine -%s Music Player = %s Musikspieler -%s Quarry = %s Steinbruch -%s Tool Workshop = %s Werkzeugwerkstatt -Arrayed Solar %s Generator = %s Solaranlage -Fuel-Fired %s Generator = %s Kohle-Generator -Geothermal %s Generator = %s Geothermie-Generator -Hydro %s Generator = %s Wassermuehle -Nuclear %s Generator Core = %s Reaktorkern -Small Solar %s Generator = %s Solarmodul -Wind %s Generator = %s Windmuehle -Self-Contained Injector = Selbstversorger-Injektor -Constructor Mk%d = Konstruktor Modell %d -Frame = Rahmen -Frame Motor = Rahmenmotor -Template = Schablone -Template (replacing) = Schablone (ersetzend) -Template motor = Schablonenmotor -Template tool = Schablonenwerkzeug -Battery Box = Batteriebox -Supply Converter = Stromumwandler -Switching Station = Schaltanlage -Fuel-Fired Alloy Furnace = Kohle-Legierungsofen -Fuel-Fired Furnace = Kohle-Ofen -Wind Mill Frame = Windmuehlengeruest -Forcefield = Kraftfeld -Nuclear Reactor Rod Compartment = Brennstabfaecher -Administrative World Anchor = - -## Machine-specific -# $1: Pruduced EU -Charge = Aufladen -Discharge = Entladen -Power level = Energiestufe -# $1: Tier $2: current_charge $3: max_charge -@1 Battery Box: @2/@3 = @1 Batteriebox: @2/@3 -# $1: Machine name $2: Supply $3: Demand -@1. Supply: @2 Demand: @3 = @1. Versorgung: @2 Bedarf: @3 -Production at %d%% = Produktion bei %d%% -Choose Milling Program: = Waehle ein Fraesprogramm: -Slim Elements half / normal height: = Schmale Elemente von halber / normaler Hoehe: -Current track %s = Aktueller Titel %s -Stopped = -Keeping %d/%d map blocks loaded = -Digging not started = -Digging finished = -Digging %d m above machine = -Digging %d m below machine = - -## Grinder Recipes -# $1: Name -%s Dust = %sstaub -Akalin = Akalin -Alatro = Alatro -Arol = Arol -Brass = Messing -Bronze = Bronze -Carbon Steel = Kohlenstoffstahl -Cast Iron = Gusseisen -Chromium = Chrom -Coal = Kohle -Copper = Kupfer -Gold = Gold -Mithril = Mithril -Silver = Silber -Stainless Steel = Edelstahl -Talinite = Talinite -Tin = Zinn -Wrought Iron = Schmiedeeisen -Zinc = Zink -%.1f%%-Fissile Uranium = - -## Tools -RE Battery = Akkubatterie -Water Can = Wasserkanister -Lava Can = Lavakanister -Chainsaw = Kettensaege -Flashlight = Taschenlampe -3 nodes deep. = 3 Bloecke tief. -3 nodes tall. = 3 Bloecke hoch. -3 nodes wide. = 3 Bloecke breit. -3x3 nodes. = 3x3 Bloecke. -Use while sneaking to change Mining Drill Mk%d modes. = Halte die Shift-Taste beim Benutzen gedrueckt, um die Funktion des Bergbaubohrers Modell %d zu aendern. -Mining Drill Mk%d Mode %d = Bergbaubohrer Modell %d Funktion %d -Mining Drill Mk%d = Bergbaubohrer Modell %d -Mining Laser Mk%d = Bergbaulaser Modell %d -Single node. = Einzelblock -Sonic Screwdriver = Schallschraubendreher -Tree Tap = Baumzapfhahn - -## Craft descriptions -Alloy cooking = -Grinding = -Compressing = -Extracting = diff --git a/technic/locale/es.txt b/technic/locale/es.txt deleted file mode 100644 index fa66988..0000000 --- a/technic/locale/es.txt +++ /dev/null @@ -1,162 +0,0 @@ -# Spanish Translation for Technic Mod -# Traduccion al Español del Mod Technic -# Autor: Diego Martínez - -## Misc -[Technic] Loaded in %f seconds = [Technic] Cargado en %f segundos - -## Items -Silicon Wafer = Oblea de Silicio -Doped Silicon Wafer = Oblea de Silicio Dopada -Enriched Uranium = Uranio Enriquecido -Uranium Fuel = Combustible de Uranio -Diamond Drill Head = Mecha de Taladro de Diamante -Blue Energy Crystal = Cristal de Energia Azul -Green Energy Crystal = Cristal de Energia Verde -Red Energy Crystal = Cristal de Energia Rojo -Fine Copper Wire = Cable Fino de Cobre -Copper Coil = Resorte de Cobre -Electric Motor = Motor Electrico -Low Voltage Transformer = Transformador de Bajo Voltaje -Medium Voltage Transformer = Transformador de Voltaje Medio -High Voltage Transformer = Transformador de Alto Voltaje -Control Logic Unit = Unidad Logica de Control -Mixed Metal Ingot = Lingote de Metal Mezclado -Composite Plate = Placa de Compuestos -Copper Plate = Placa de Cobre -Carbon Plate = Placa de Carbon -Graphite = Grafito -Carbon Cloth = Tela de Carbon -Raw Latex = Latex Crudo -Rubber Fiber = Fibra de Hule -%.1f%%-Fissile Uranium Ingot = -%.1f%%-Fissile Uranium Block = - -## Machine misc -Machine cannot be removed because it is not empty = La maquina no puede removerse porque no esta vacia -Inventory move disallowed due to protection = -# $1: Machine name (Includes tier) -@1 Active (@2 EU) = @1 Activo (@2 EU) -%s Active = %s Activo -%s Enabled = -%s Idle = %s Quieto -%s Unpowered = %s Sin Energia -%s Out Of Fuel = %s Sin Combustible -%s Has Bad Cabling = %s Tiene Mal Cableado -%s Has No Network = %s No Tiene Una Red -%s Finished = %s Terminado -%s Disabled = %s Deshabilitado -%s Improperly Placed = %s No Colocado Apropiadamente -Range = Alcance -Enable/Disable = Habilitar/Deshabilitar -Itemwise = -Stackwise = -Owner: = -Unlocked = -Locked = -Radius: = -Enabled = -Disabled = - -## Machine names -# $1: Tier -%s Alloy Furnace = Horno de Aleacion %s -%s Battery Box = Caja de Bateria %s -%s Cable = Cable %s -%s Compressor = Compresor %s -%s Extractor = Extractor %s -%s Forcefield Emitter = Emisor de Campo de Fuerza %s -%s Furnace = Horno %s -%s Grinder = Amoladora %s -%s Music Player = Reproductor de Musica %s -%s Quarry = Cantera %s -%s Tool Workshop = Taller de Herramientas %s -Arrayed Solar %s Generator = Panel Solar %s -Fuel-Fired %s Generator = Generador a Carbon %s -Geothermal %s Generator = Generador Geotermico %s -Hydro %s Generator = Molino de Agua %s -Nuclear %s Generator Core = Nucleo de Reactor Nuclear %s -Small Solar %s Generator = Panel Solar %s -Wind %s Generator = Molino de Viento %s -Self-Contained Injector = -Constructor Mk%d = -Frame = -Frame Motor = -Template = -Template (replacing) = -Template Motor = -Template Tool = -Supply Converter = Convertidor de Alimentacion -Switching Station = Estacion de Conmutacion -Battery Box = Caja de Baterias -Fuel-Fired Alloy Furnace = Horno de Aleacion a Carbon -Fuel-Fired Furnace = Horno a Carbon -Forcefield = Campo de Fuerza -Nuclear Reactor Rod Compartment = Compartimiento para Vara de Reactor Nuclear -Wind Mill Frame = Armazon de Molino de Viento -Administrative World Anchor = - -## Machine-specific -# $1: Pruduced EU -Charge = Cargar -Discharge = Descargar -Power level = Nivel de Poder -# $1: Tier $2: current_charge $3: max_charge -@1 Battery Box: @2/@3 = Caja de Bateria @1: @2/@3 -# $1: Machine name $2: Supply $3: Demand -@1. Supply: @2 Demand: @3 = @1. Alimentacion: @2 Demanda: @3 -# $1: Production percent -Production at %d%% = Produccion en %d%% -Stopped = -Keeping %d/%d map blocks loaded = -Digging not started = -Digging finished = -Digging %d m above machine = -Digging %d m below machine = - -## Grinder Recipes -# $1: Name -%s Dust = Polvo de %s -Akalin = Akalina -Alatro = Alatro -Arol = Arol -Brass = Laton -Bronze = Bronce -Carbon Steel = Acero al Carbono -Cast Iron = Hierro Fundido -Chromium = Cromo -Coal = Carbon -Copper = Cobre -Gold = Oro -Mithril = Mitrilo -Silver = Plata -Stainless Steel = Acero Inoxidable -Talinite = Talinita -Tin = Estanio -Wrought Iron = Hierro Forjado -Zinc = Zinc -%.1f%%-Fissile Uranium = - -## Tools -RE Battery = -Water Can = Bidon de Agua -Lava Can = Bidon de Lava -Chainsaw = Motosierra -Flashlight = Linterna -3 nodes deep. = 3 nodos de profundo. -3 nodes tall. = 3 nodos de alto. -3 nodes wide. = 3 nodos de ancho. -3x3 nodes. = 3x3 nodos. -Use while sneaking to change Mining Drill Mk%d modes. = Manten pulsado Mayus y Usar para cambiar el modo del Taladro de Mineria Mk%d. -Mining Drill Mk%d Mode %d = Taladro de Mineria Mk%d Modo %d -Mining Drill Mk%d = Taladro de Mineria Mk%d -Mining Laser Mk%d = Laser de Mineria Mk%d -Single node. = Nodo simple. -Sonic Screwdriver = Destonillador Sonico -Tree Tap = Grifo de Arbol - -## Craft descriptions -Alloy cooking = -Grinding = -Compressing = -Extracting = diff --git a/technic/locale/fr.txt b/technic/locale/fr.txt deleted file mode 100644 index 6fc8dd4..0000000 --- a/technic/locale/fr.txt +++ /dev/null @@ -1,215 +0,0 @@ -# template.txt -# Template for translations of Technic - -## Misc -[Technic] Loaded in %f seconds = [Technic] Chargement en %f secondes - -## Items -Silicon Wafer = Tranche de silicium -Doped Silicon Wafer = Tranche de silicium doppée -Enriched Uranium = Uranium enrichi -Uranium Fuel = Uranium 235 -Diamond Drill Head = Tête de forage en diamant -Blue Energy Crystal = Cristal d'énergie bleu -Green Energy Crystal = Cristal d'énergie vert -Red Energy Crystal = Cristal d'énergie rouge -Fine Copper Wire = Fil en cuivre fin -Fine Gold Wire = Fil en or fin -Fine Silver Wire = Fil en argent fin -Copper Coil = Bobine de cuivre -Electric Motor = Moteur électrique -Low Voltage Transformer = Transformateur basse tension -Medium Voltage Transformer = Transformateur moyenne tension -High Voltage Transformer = Transformateur haute tension -Control Logic Unit = Unité de contrôle logique -Mixed Metal Ingot = Lingot de métal allié -Composite Plate = Plaque composite -Copper Plate = Plaque de cuivre -Carbon Plate = Plaque de carbone -Graphite = Graphite -Carbon Cloth = Fibre de carbone -Raw Latex = Latex brut -Rubber Fiber = Fibre de caoutchouc -%.1f%%-Fissile Uranium Ingot = Lingot d'uranium fissile (%.1f%%) -%.1f%%-Fissile Uranium Block = Bloc d'uranium fissile (%.1f%%) - -## Machine misc -Machine cannot be removed because it is not empty = La machine ne peut pas être retirée car elle n'est pas vide -Inventory move disallowed due to protection = Le mouvement d'inventaire n'est pas autorisé en raison de la protection - -# $1: Machine name (Includes tier) -@1 Active (@2 EU) = @1 Active (@2 EU) -%s Active = %s actif -%s Disabled = %s désactivé -%s Enabled = %s activé -%s Idle = %s au repos -%s Improperly Placed = %s est mal placé -%s is empty = %s est vide -%s Unpowered = %s non alimenté en énergie -%s Out Of Fuel = %s plus de carburant -%s Has Bad Cabling = %s est mal cablé -%s (Slave) = %s (esclave) -%s Has No Network = %s n'a pas de réseau -%s Finished = %s a fini -Enable/Disable = Activer/Désactiver -Range = Plage -Upgrade Slots = Emplacement d'amélioration -In: = Entrée : -Out: = Sortie : -Slot %d = Emplacement %d -Itemwise = Item par Item -Stackwise = Stack par Stack -Ignoring Mesecon Signal = Ignorer le signal Mesecon -Controlled by Mesecon Signal = Contrôlé par signal Mesecon -Owner: = Propriétaire : -Unlocked = Déverrouillé -Locked = Verrouillé -Radius: = Rayon : -Enabled = Activé -Disabled = Désactivé - -## Machine names -# $1: Tier -%s Alloy Furnace = Four à alliage %s -%s Battery Box = Batterie %s -%s Cable = Câble %s -%s CNC Machine = Machine-outils %s -%s Centrifuge = Centrifugeuse %s -%s Compressor = Compresseur %s -%s Extractor = Extracteur %s -%s Forcefield Emitter = Emetteur de champ de force %s -%s Furnace = Four %s -%s Grinder = Broyeur %s -%s Music Player = Grammophone %s -%s Quarry = Carrière %s -%s Tool Workshop = Atelier d'outillage %s -Arrayed Solar %s Generator = Générateur solaire %s -Fuel-Fired %s Generator = Générateur thermique %s -Geothermal %s Generator = Géénarteur géothermique %s -Hydro %s Generator = Générateur hydroélectrique %s -Nuclear %s Generator Core = Générateur nucléaire % -Small Solar %s Generator = Petit générateur solaire %s -Wind %s Generator = Générateur éolien %s -Self-Contained Injector = Injecteur autonome -Constructor Mk%d = Constructeur Mk%d -Frame = Cadre -Frame Motor = Cadre de moteur -Template = Modèle -Template (replacing) = -Template Motor = -Template Tool = -Battery Box = Compartiment à batterie -Supply Converter = Convertisseur de tension -Switching Station = Station de commutation -Fuel-Fired Alloy Furnace = Four à alliage à carburant -Fuel-Fired Furnace = Four à carburant -Wind Mill Frame = Cadre d'éolienne -Forcefield = Champ de force -Nuclear Reactor Rod Compartment = Compartiment à barres du réacteur nucléaire -Administrative World Anchor = - -## Machine-specific -# $1: Pruduced EU -Charge = Charger -Discharge = Décharger -Power level = Niveau d'énergie - -# $1: Tier $2: current_charge $3: max_charge -@1 Battery Box: @2/@3 = @1 batterie : @2/@3 - -# $1: Machine name $2: Supply $3: Demand -@1. Supply: @2 Demand: @3 = @1. fournit : @2 demande : @3 -Production at %d%% = Production à %d%% -Choose Milling Program: = Choisissez le programme de fraisage : -Slim Elements half / normal height: = -Current track %s = Morceau actuel %s -Stopped = Arrêté -Keeping %d/%d map blocks loaded = -Digging not started = Creusement non démarré -Digging finished = Creusement terminé -Digging %d m above machine = Creusement à %dm au dessus de la machine -Digging %d m below machine = Creusement à %dm en dessous de la machine -@1 (@2 @3 -> @4 @5) = @1 (@2 @3 -> @4 @5) - -## CNC -Cylinder = -Element Cross = Elément croisé -Element Cross Double = Elément croisé (double) -Element Edge = Elément de bordure -Element Edge Double = Elément de bordure (double) -Element End = Elément de fin -Element End Double = Elément de fin (double) -Element Straight = Elément droit -Element Straight Double = Elément droit (double) -Element T = Elément en T -Element T Double = Elément en T (double) -Horizontal Cylinder = Cylindre horizontal -One Curved Edge Block = Bloc à un bord incurvé -Pyramid = Pyramide -Slope = Pente -Slope Edge = -Slope Inner Edge = -Slope Lying = -Slope Upside Down = -Slope Upside Down Edge = -Slope Upside Down Inner Edge = -Sphere = Sphère -Spike = Pointe -Stick = Bâton -Two Curved Edge Block = Bloc à deux bords incurvés -Brick = Brique -Cobble = Pierre taillée -Dirt = Terre -Leaves = Feuilles -Sandstone = Grès -Stone = Pierre -Tree = Arbre -Wooden = Bois - -## Grinder Recipes -# $1: Name -%s Dust = Poudre de %s -Akalin = -Alatro = -Arol = -Brass = Laiton -Bronze = Bronze -Carbon Steel = Acier au carbone -Cast Iron = Fonte -Chromium = Chrome -Coal = Charbon -Copper = Cuivre -Gold = Or -Mithril = Mithril -Silver = Argent -Stainless Steel = Acier inoxydable -Talinite = Talanite -Tin = Etain -Wrought Iron = Fer -Zinc = Zinc -%.1f%%-Fissile Uranium = Uranium fissile (%.1f%%) - -## Tools -RE Battery = Batterie RE -Water Can = Jerrycan d'eau -Lava Can = Jerrycan de lave -Chainsaw = Tronçonneuse -Flashlight = Lampe-torche -3 nodes deep. = -3 nodes tall. = -3 nodes wide. = -3x3 nodes. = -Use while sneaking to change Mining Drill Mk%d modes. = -Mining Drill Mk%d Mode %d = Foreuse Mk%d Mode %d -Mining Drill Mk%d = Foreuse Mk%d -Mining Laser Mk%d = Foreuse laser Mk%d -Single node. = Mode simple. -Sonic Screwdriver = Tournevis supersonique -Tree Tap = Robinet à sève - -## Craft descriptions -Alloy cooking = Fonderie d'alliage -Grinding = Broyage -Compressing = Compression -Extracting = Extraction -Separating = Séparation diff --git a/technic/locale/it.txt b/technic/locale/it.txt deleted file mode 100644 index 18b0e4f..0000000 --- a/technic/locale/it.txt +++ /dev/null @@ -1,165 +0,0 @@ - -## Misc -[Technic] Loaded in %f seconds = [Technic] caricato in %f secondi - -## Items -Silicon Wafer = Wafer di silicone -Doped Silicon Wafer = Wafer di silicone dopato -Enriched Uranium = Uranio arricchito -Uranium Fuel = Uranio Combustibile -Diamond Drill Head = Trivella diamantata -Blue Energy Crystal = Cristallo energetico blu -Green Energy Crystal = Cristallo energetico verde -Red Energy Crystal = Cristallo energetico rosso -Fine Copper Wire = Filo di rame fine -Copper Coil = Bobina di rame -Electric Motor = Motore elettrico -Low Voltage Transformer = Trasformatore in bassa tensione -Medium Voltage Transformer = Trasformatore in media tensione -High Voltage Transformer = Trasformatore in alta tensione -Control Logic Unit = Unità di controllo logica -Mixed Metal Ingot = Lingotto in lega ibrida -Composite Plate = Lastra composita -Copper Plate = Lastra di rame -Carbon Plate = Lastra in carbonio -Graphite = Lastra in graffite -Carbon Cloth = Fibra di carbonio -Raw Latex = Latex grezzo -Rubber Fiber = Fibra di gomma -%.1f%%-Fissile Uranium Ingot = %.1f%%-Lingotto di uranio fissile -%.1f%%-Fissile Uranium Block = %.1f%%-Blocco di uranio fissile - -## Machine misc -Machine cannot be removed because it is not empty = La macchina non può essere rimossa perchè non è vuota -Inventory move disallowed due to protection = Impossibile muovere l'inventario a causa della protezione -# $1: Machine name (Includes tier) -@1 Active (@2 EU) = @1 Attivo (@2 EU) -%s Active = %s Attivo -%s Disabled = %s Disabilitato -%s Enabled = %s Abilitato -%s Idle = %s Inattivo -%s Improperly Placed = %s Piazzato impropiamente -%s Unpowered = %s Non alimentato -%s Out Of Fuel = %s senza carburante -%s Has Bad Cabling = %s ha un cablaggio scorretto -%s Has No Network = %s non è collegata -%s Finished = %s Finito -Enable/Disable = Abilita/Disabilita -Range = Raggio -Upgrade Slots = Alloggi di aggiornamento -In: = Ingresso: -Out: = Uscita: -Slot %d = Alloggio %d -Itemwise = Singolo elemento -Stackwise = pila completa -Owner: = Proprietario: -Unlocked = Non chiuso a chiave -Locked = Chiuso a chiave -Radius: = Raggio: -Enabled = Abilitato -Disabled = Disabilitato - -## Machine names -# $1: Tier -%s Alloy Furnace = %s Fornace per leghe -%s Battery Box = %s Box batterie -%s Cable = Cavo %s -%s Compressor = Compressore %s -%s Extractor = Estrattore %s -%s Forcefield Emitter = Emettitore di campo di forza %s -%s Furnace = %s Fornace -%s Grinder = %s Tritatutto -%s Music Player = Music Player %s -%s Quarry = Cava %s -%s Tool Workshop = Officina per attrezzi %s -Arrayed Solar %s Generator = %s Pannello Solare -Fuel-Fired %s Generator = %s Generatore a carbone -Geothermal %s Generator = %s Generatore Geotermico -Hydro %s Generator = Turbina Elettrica %s -Nuclear %s Generator Core = Reattore nucleare %s -Small Solar %s Generator = %s Pannello solare -Wind %s Generator = %s Generatore eolico -Self-Contained Injector = Ignettore -Constructor Mk%d = Costruttore Mk%d -Frame = Cornice -Frame Motor = Cornice del motore -Template = Sagoma -Template (replacing) = Sagoma (di rimpiazzo) -Template Motor = Motore per sagome -Template Tool = Strumento per sagome -Battery Box = Box batterie -Supply Converter = Trasformatore -Switching Station = Stazione di controllo -Fuel-Fired Alloy Furnace = Fornace per leghe a carbone -Fuel-Fired Furnace = Fornace a carbone -Wind Mill Frame = Pala eolica -Forcefield = Campo di forza -Nuclear Reactor Rod Compartment = Compartimento combustibile nucleare -Administrative World Anchor = Ancora-mondo amministrativa - -## Machine-specific -# $1: Pruduced EU -Charge = Carica -Discharge = Scarica -Power level = Livello di potenza -# $1: Tier $2: current_charge $3: max_charge -@1 Battery Box: @2/@3 = @1 Box Batterie: @2/@3 -# $1: Machine name $2: Supply $3: Demand -@1. Supply: @2 Demand: @3 = @1. Prodotto: @2 Consumato: @3 -Production at %d%% = Produzione a %d%% -Choose Milling Program: = Scegliere un programma di Fresatura -Slim Elements half / normal height: = Metà elementi sottili / altezza normale: -Current track %s = Traccia corrente %s -Stopped = Fermato -Keeping %d/%d map blocks loaded = Mantenimento di %d/%d blocchi mappa caricati -Digging not started = Scavo non iniziato -Digging finished = Scavo finito -Digging %d m above machine = Scavo di %d m sopra la macchina -Digging %d m below machine = Scavo di %d m sotto la macchina - -## Grinder Recipes -# $1: Name -%s Dust = Polvere di %s -Akalin = Alcalino -Alatro = Alatro -Arol = Arol -Brass = Ottone -Bronze = Bronzo -Carbon Steel = Acciaio al Carbonio -Cast Iron = Ghisa -Chromium = Cromo -Coal = Carbone -Copper = Rame -Gold = Oro -Mithril = Mithril -Silver = Argento -Stainless Steel = Acciaio Inossidabile -Talinite = Talinite -Tin = Stagno -Wrought Iron = Ferro Battuto -Zinc = Zinco -%.1f%%-Fissile Uranium = %.1f%%-Uranio fissile - -## Tools -RE Battery = Batteria RE -Water Can = Serbatoio d'acqua -Lava Can = Serbatoio di lava -Chainsaw = Motosega -Flashlight = Torcia -3 nodes deep. = 3 nodi in profondità. -3 nodes tall. = 3 nodi in altezza. -3 nodes wide. = 3 nodi in larghezza. -3x3 nodes. = 3x3 nodi. -Use while sneaking to change Mining Drill Mk%d modes. = Premi shift (freccia grossa) e usa per cambiare modalità nella trivella da miniera Mk%d. -Mining Drill Mk%d Mode %d = Trivella mk%d in modalità %d -Mining Drill Mk%d = Trivella da miniera mk%d -Mining Laser Mk%d = Laser da miniera mk%d -Single node. = Nodo singolo. -Sonic Screwdriver = Cacciavite sonico -Tree Tap = Batti albero - -## Craft descriptions -Alloy cooking = Cottura lege -Grinding = Macinazione -Compressing = Compressione -Extracting = Estrazione diff --git a/technic/locale/pl.txt b/technic/locale/pl.txt deleted file mode 100644 index 663f807..0000000 --- a/technic/locale/pl.txt +++ /dev/null @@ -1,175 +0,0 @@ -# Polish Translation for Technic mod -# Polskie tłumaczenie Technic mod -# by mat9117 - -## Misc -[Technic] Loaded in %f seconds = [Technic] Wczytany w %f sekund - -## Items -Silicon Wafer = Płytka krzemowa -Doped Silicon Wafer = Domieszkowana płytka krzemowa -Enriched Uranium = Wzbogacony uran -Uranium Fuel = Paliwo uranowe -Diamond Drill Head = Diamentowa głowica wiertła -Blue Energy Crystal = Niebieski kryształ energii -Green Energy Crystal = Zielony kryształ energii -Red Energy Crystal = Czerwony kryształ energii -Fine Copper Wire = Cienki miedziany drut -Copper Coil = Miedziana cewka -Electric Motor = Silnik elektryczny -Low Voltage Transformer = Transformator niskiego napięcia -Medium Voltage Transformer = Transformator średniego napięcia -High Voltage Transformer = Transformator wysokiego napięcia -Control Logic Unit = Jednostka sterująca -Mixed Metal Ingot = Sztabka zmieszanych metali -Composite Plate = Płytka kompozytowa -Copper Plate = Płytka miedziana -Carbon Plate = Płytka węglowa -Graphite = Grafit -Carbon Cloth = Włókno węglowe -Raw Latex = Lateks naturalny -Rubber Fiber = Włókno gumowe -%.1f%%-Fissile Uranium Ingot = %.1f%% Sztabka uranu -%.1f%%-Fissile Uranium Block = %.1f%% Blok uranu - -## Machine misc -Machine cannot be removed because it is not empty = Nie można usunąć maszyny, ponieważ nie jest pusta -Inventory move disallowed due to protection = Przenoszenie rzeczy z ekwipunku niemożliwe z powodu ochrony -# $1: Machine name (Includes tier) -@1 Active (@2 EU) = @1 Aktywny (@2 EU) -%s Active = %s Aktywny/a -%s Disabled = %s Wyłączony/a -%s Enabled = %s Włączony/a -%s Idle = %s Bezczynny/a -%s Improperly Placed = %s Ustawiony/a nieprawidłowo -%s is empty = %s jest pusty/a -%s Unpowered = %s brak zasilania -%s Out Of Fuel = %s brak paliwa -%s Has Bad Cabling = %s Źle podłączono kable -%s (Slave) = -%s Has No Network = %s Nie podłączony/a do sieci -%s Finished = %s Ukończony -Enable/Disable = Włącz/Wyłącz -Range = Zasięg -Upgrade Slots = Miejsca na ulepszenia -In: = Wejście -Out: = Wyjście -Slot %d = Otwór %d -Itemwise = Jeden przedmiot -Stackwise = Cały stack -Ignoring Mesecon Signal = Ignoruj sygnał Mesecon -Controlled by Mesecon Signal = Sterowany sygnałem Mesecon -Owner: = Właściciel: -Unlocked = Odblokowany/a -Locked = Zablokowany/a -Radius: = Promień: -Enabled = Włączony/a -Disabled = Wyłączony/a - -## Machine names -# $1: Tier -%s Alloy Furnace = %s Piec stopowy -%s Battery Box = %s Skrzynka baterii -%s Cable = %s Przewód -%s Centrifuge = %s Centryfuga -%s Compressor = %s Kompresor -%s Extractor = %s Ekstraktor -%s Forcefield Emitter = %s Emiter pola siłowego -%s Furnace = %s Piec -%s Grinder = %s Młynek -%s Music Player = %s Odtwarzacz muzyki -%s Quarry = %s Kamieniołom -%s Tool Workshop = %s Warsztat narzędzi -Arrayed Solar %s Generator = %s Szeregowy generator słoneczny -Fuel-Fired %s Generator = %s Generator zasilany paliwem -Geothermal %s Generator = %s Generator geotermalny -Hydro %s Generator = %s Hydrogenerator -Nuclear %s Generator Core = %s Reaktor atomowy -Small Solar %s Generator = %s Mały generator słoneczny -Wind %s Generator = %s Generator wiatrowy -Self-Contained Injector = Samowystarczalny wtryskiwacz -Constructor Mk%d = Konstruktor Mk%d -Frame = Klatka -Frame Motor = Silnik klatkowy -Template = Szablon -Template (replacing) = Szablon (zastępczy) -Template Motor =Szablon silnika -Template Tool = Szablon narzędzia -Battery Box = Skrzynka baterii -Supply Converter = Konwerter zasilania -Switching Station = Rozdzielnia -Fuel-Fired Alloy Furnace = Piec stopowy zasilany paliwem -Fuel-Fired Furnace = Piec zasilany paliwem -Wind Mill Frame = Klatka wiatraka -Forcefield = Pole siłowe -Nuclear Reactor Rod Compartment = Komora rdzenia reaktora atomowego -Administrative World Anchor = Administracyjna kotwica świata - -## Machine-specific -# $1: Pruduced EU -Charge = Ładuj -Discharge = Rozładuj -Power level = Poziom zasilania -# $1: Tier $2: current_charge $3: max_charge -@1 Battery Box: @2/@3 = @1 Skrzynka baterii: @2/@3 -# $1: Machine name $2: Supply $3: Demand -@1. Supply: @2 Demand: @3 = @1. Zapas: @2 Pobór: @3 -Production at %d%% = Produkowanie w %d%% -Choose Milling Program: = Wybierz program mielenia: -Slim Elements half / normal height: = Małe elementy połowa / normalna wysokość: -Current track %s = -Stopped = Zatrzymany/a -Keeping %d/%d map blocks loaded = Ciągle ładuję %d/%d bloki mapy -Digging not started = Nie rozpoczęto kopania -Digging finished = Kopanie skończone -Digging %d m above machine = Kopię %d m nad maszyną -Digging %d m below machine = Kopię %d m pod maszyną -@1 (@2 @3 -> @4 @5) = @1 (@2 @3 -> @4 @5) - -## Grinder Recipes -# $1: Name -%s Dust = %s Pył -Akalin = Akalinowy -Alatro = Alatrowy -Arol = Arolowy -Brass = Mosiądzu -Bronze = Brązu -Carbon Steel = Stali węglowej -Cast Iron = Żeliwa -Chromium = Chromu -Coal = Węglowy -Copper = Miedzi -Gold = Złoty -Mithril = Mithrilu -Silver = Srebrny -Stainless Steel = Stali nierdzewnej -Talinite = Talinitu -Tin = Cyny -Wrought Iron = Kutego żelaza -Zinc = Cynku -%.1f%%-Fissile Uranium = %.1f%% Uranu - -## Tools -RE Battery = Bateria ładowalna -Water Can = Kanister wody -Lava Can = Kanister lawy -Chainsaw = Piła łańcuchowa -Flashlight = Latarka -3 nodes deep. = Głęboki na 3 bloki. -3 nodes tall. = Wysoki na 3 bloki. -3 nodes wide. = Szeroki na 3 bloki. -3x3 nodes. = 3x3 bloki. -Use while sneaking to change Mining Drill Mk%d modes. = Użyj podczas skradania, aby zmienić tryby wiertła górniczego Mk%d -Mining Drill Mk%d Mode %d = Tryb wiertła górniczego Mk%d -Mining Drill Mk%d = Wiertło górnicze Mk%d -Mining Laser Mk%d = Laser górniczy Mk%d -Single node. = Pojedynczy blok. -Sonic Screwdriver = Dźwiękowy śrubokręt -Tree Tap = Nacinak drzewny - -## Craft descriptions -Alloy cooking = Stapianie -Grinding = Mielenie -Compressing = Kompresowanie -Extracting = Ekstrakcja -Separating = Oddzielanie diff --git a/technic/locale/pt_BR.txt b/technic/locale/pt_BR.txt deleted file mode 100644 index 7baa4a5..0000000 --- a/technic/locale/pt_BR.txt +++ /dev/null @@ -1,211 +0,0 @@ -# Braziliam portuguese translation for technic -# Tradução portuguesa brasileira para technic -# By Sires - -## Misc -[Technic] Loaded in %f seconds = [Technic] Carregado em %f segundos - -## Items -Silicon Wafer = Pastilha de Silício -Doped Silicon Wafer = Pastilha de Silício Dopada -Enriched Uranium = Urânio Enriquecido -Uranium Fuel = Combustivel de Urânio -Diamond Drill Head = Cabeça de Broca de Diamante -Blue Energy Crystal = Cristal de Energia Azul -Green Energy Crystal = Cristal de Energia Verde -Red Energy Crystal = Cristal de Energia Vermelho -Fine Copper Wire = Fio Fino de Cobre -Copper Coil = Bobina de Cobre -Electric Motor = Motor Elétrico -Low Voltage Transformer = Transformador de Baixa Voltagem -Medium Voltage Transformer = Transformador de Média Voltagem -High Voltage Transformer = Transformador de Alta Voltagem -Control Logic Unit = Unidade de Controle Lógico -Mixed Metal Ingot = Lingote de Metal Misturado -Composite Plate = Placa Composta -Copper Plate = Placa de Cobre -Carbon Plate = Placa de Carbono -Graphite = Grafite -Carbon Cloth = Recido de Carbono -Raw Latex = Latex bruto -Rubber Fiber = Fibra de Borracha -%.1f%%-Fissile Uranium Ingot = Lingote de Urânio %.1f%%-Físsil -%.1f%%-Fissile Uranium Block = Bloco de Urânio %.1f%%-Físsil - -## Machine Misc -Machine cannot be removed because it is not empty = A máquina não pode ser removida porque ela não está vazia -Inventory move disallowed due to protection = Movimento de inventário não permitido pela proteção -# $1: Machine name (includes tier) -@1 Active (@2 EU) = @1 Ativo (@2 EU) -%s Active = %s Ativo -%s Disabled = %s Ativado -%s Enabled = %s Desativado -%s Idle = Ócio -%s Improperly Placed = %s Colocado Inapropriadamente -%s is empty = %s está vazio -%s Unpowered = %s Sem energia -%s Out Of Fuel = %s Sem Combustível -%s Has Bad Cabling = %s Tem Cabeamento Ruim -%s (Slave) = %s (Servo) -%s Has No Network = %s Não Tem Rede -%s Finished = %s Acabou -Enable/Disable = Ativar/Desativar -Range = Alcance -Upgrade Slots = Lugares para Melhoria -In: = Entrada: -Out: = Saída: -Slot %d = Lugar %d -Itemwise = Por item -Stackwise = Por pilha -Ignoring Mesecon Signal = Ignorar Sinaal de Mesecon -Controlled by Mesecon Signal = Controlado por Sinal de Mesecon -Owner: = Dono: -Unlocked = Destravado -Locked = Travado -Radius: = Raio: -Enabled = Ativado -Disabled = Desativado - -## Machine names -# $1: Tier -%s Alloy Furnace = Fornalha de Liga %s -%s Battery Box = Caixa de Bateria %s -%s Cable = Cabo %s -%s CNC Machine = Máquina CNC %s -%s Centrifuge = Centrifuga %s -%s Compressor = Compresso %s -%s Extractor = Extrator %s -%s Forcefield Emitter = Emissor de Campo de Força %s -%s Furnace = Fornalha %s -%s Grinder = Triturador %s -%s Music Player = Tocador de Música %s -%s Quarry = Pedreira %s -%s Tool Workshop = Oficina de Ferramentas %s -Arrayed Solar %s Generator = Gerador Solar Equipado %s -Fuel-Fired %s Generator = Gerador Alimentado-por-Combustível %s -Geothermal %s Generator = Gerador Geotermal %s -Hydro %s Generator = Gerador Hidráulico %s -Nuclear %s Generator Core = Núcleo de Gerador Nuclear %s -Small Solar %s Generator = Gerador Solar Pequeno %s -Wind %s Generator = Gerador de Energia Eólica %s -Self-Contained Injector = Injetor Auto-Contido -Constructor Mk%d = Construtor Nv%d -Frame = Armação -Frame Motor = Motor de Armação -Template = Modelo -Template (replacing) = Modelo (recolocando) -Template Motor = Modelo de Motor -Template Tool = Modelo de Ferramenta -Battery Box = Caixa de Bateria -Supply Converter = Conversor de Energia -Switching Station = Estação de Comutação -Fuel-Fired Alloy Furnace = Fornalha de Liga Alimentada-por-Combustível -Fuel-Fired Furnace = Fornalha Alimentada-por-Combustível -Wind Mill Frame = Armação de Moinho de Vento -Forcefield = Campo de Força -Nuclear Reactor Rod Compartment = Compartimento de Barra do Reator Nuclear -Administrative World Anchor = Âncora de Mundo Administrativa - -## Machine-specific -# $1: Pruduced EU -Charge = Carregar -Discharge = Descarregar -Power level = Nível de Energia -# $1: Tier $2: current_charge $3: max_charge -@1 Battery Box: @2/@3 = Caixa de Baterias @1: @2/@3 -# $1: Machine name $2: Supply $3: Demand -@1. Supply: @2 Demand: @3 = @1. Suprimento: @2 Demanda: @3 -Production at %d%% = Produção em %d%% -Choose Milling Program: = Escolha o Programa de Serragem: -Slim Elements half / normal height: = Metade de Elementos Finos / altura normal: -Current track %s = Música Atual %s -Stopped = Parado -Keeping %d/%d map blocks loaded = Mantendo %d/%d blocos de mapa carregados -Digging not started = Escavação não começada -Digging finished = Escavação terminada -Digging %d m above machine = Escavando %d m acima da máquina -Digging %d m below machine = Escavando %d m abaixo da máquina -@1 (@2 @3 -> @4 @5) = @1 (@2 @3 -> @4 @5) - -## CNC -Cylinder = Cilindro -Element Cross = Cruz do Elemento -Element Cross Double = Cruz Dupla do Elemento -Element Edge = Borda do Elemento -Element Edge Double = Borda Dupla do Elemento -Element End = Final do Elemento -Element End Double = Final Duplo do Elemento -Element Straight = Elemento Contínuo -Element Straight Double = Elemento Contínuo duplo -Element T = Elemento em T -Element T Double = Elemento em T Duplo -Horizontal Cylinder = Cilindro Horizontal -One Curved Edge Block = Uma Borda de Bloco Curvada -Pyramid = Pirâmide -Slope = Ladeira -Slope Edge = Canto de Ladeira -Slope Inner Edge = Canto de Dentro de Ladeira -Slope Lying = Ladeira Deitada -Slope Upside Down = Ladeira de Cabeça para Baixo -Slope Upside Down Edge = Cande de Ladeira de Cabeça para Baixo -Slope Upside Down Inner Edge = Canto de Dentro de Ladeira de Cabeça para Baixo -Sphere = Esfera -Spike = Espinho -Stick = Graveto -Two Curved Edge Block = Bloco de Duas Bordas Curvadas -Brick = Tijolo -Cobble = Pedregulho -Dirt = Terra -Leaves = Folhas -Sandstone = Arenito -Stone = Pedra -Tree = Árvore -Wooden = de Madeira - -## Grinder Recipes -# $1: Name -%s Dust = Pó de %s -Akalin = Akalin -Alatro = Alatro -Arol = Arol -Brass = Latão -Bronze = Bronze -Carbon Steel = Aço Carbono -Cast Iron = Ferro Fundido -Chromium = Crômio -Coal = Carvão -Copper = Cobre -Gold = Ouro -Mithril = Mithril -Silver = Prata -Stainless Steel = Aço Inoxidável -Talinite = Talinite -Tin = Estanho -Wrought Iron = Ferro Forjado -Zinc = Zinco -%.1f%%-Fissile Uranium = Urânio %.1f%%-Físsil - -## Tools -RE Battery = Bateria RE -Water Can = Lata de Água -Lava Can = Lata de Lava -Chainsaw = Motosserra -Flashlight = Lanterna -3 nodes deep. = 3 nodes de profundidade. -3 nodes tall. = 3 nodes de altura. -3 nodes wide. = 3 nodes de largura. -3x3 nodes. = 3x3 nodes. -Use while sneaking to change Mining Drill Mk%d modes. = Use enquanto esgueirando para mudar os modos da Broca de Mineração Nv%d. -Mining Drill Mk%d Mode %d = Broca de Mineração Nv%d Modo %d -Mining Drill Mk%d = Broca de Mineração Nv%d -Mining Laser Mk%d = Laser de Mineração Nv%d -Single node. = Unico node. -Sonic Screwdriver = Chave de Fenda Sônica. -Tree Tap = Torneira de Árvore - -## Craft descriptions -Alloy cooking = Cozinhando em liga -Grinding = Triturando -Compressing = Comprimindo -Extracting = Extraindo -Separating = Separando diff --git a/technic/locale/technic.de.tr b/technic/locale/technic.de.tr new file mode 100644 index 0000000..8cce2ac --- /dev/null +++ b/technic/locale/technic.de.tr @@ -0,0 +1,477 @@ +# textdomain: technic + + + +### alloy_furnace.lua ### + +@1 Alloy Furnace=@1 Legierungsofen + +### alloy_recipes.lua ### + +## Craft descriptions +Alloying= + +### anchor.lua ### + +Administrative World Anchor= +Owner: @1= +Unlocked= +Locked= +Keeping @1/@2 map blocks loaded= + +### battery_box.lua ### + +## Tools +RE Battery=Akkubatterie +Allow splitting incoming 'charge' stacks from tubes= +Allow splitting incoming 'discharge' stacks= +@1 Battery Box=@1 Batteriebox +Charge=Aufladen +Discharge=Entladen +Power level=Energiestufe +edit Channel= +@1 Battery Box: @2 / @3= + +### cables.lua ### + +@1 Cable=@1 Kabel +@1 Cable Plate= + +### cans.lua ### + +Water Can=Wasserkanister +Lava Can=Lavakanister +River Water Can= + +### centrifuge.lua ### + +@1 Centrifuge= + +### centrifuge_recipes.lua ### + +Separating= + +### chainsaw.lua ### + +Chainsaw=Kettensaege + +### coal_alloy_furnace.lua ### + +Fuel-Fired Alloy Furnace=Kohle-Legierungsofen +Machines: run coal alloy furnace= +@1 Active (@2%)=@1 ist eingeschaltet (@2 %) +@1 is empty= + +### coal_alloy_furnace.lua ### +### generator.lua ### + +@1 Out Of Fuel=@1 hat keinen Brennstoff + +### coal_furnace.lua ### + +Fuel-Fired Furnace=Kohle-Ofen + +### common.lua ### + +## Machine misc +Machine cannot be removed because it is not empty=Die Maschine kann nicht entfernt werden, weil sie noch nicht leer ist. +Inventory move disallowed due to protection=Das Inventar ist geschuetzt, Zugriff verweigert. + +### compressor.lua ### + +@1 Compressor=@1 Kompressor + +### compressor_recipes.lua ### + +Compressing= + +### constructor.lua ### + +Constructor Mk@1=Konstruktor Modell @1 +Slot @1=Fach @1 + +### electric_furnace.lua ### + +@1 Furnace=@1 Ofen + +### extractor.lua ### + +@1 Extractor=@1 Extraktor + +### extractor_recipes.lua ### + +Extracting= + +### flashlight.lua ### + +Flashlight=Taschenlampe + +### forcefield.lua ### + +Range=Reichweite +Sphere= +Cube= +@1 Forcefield Emitter=@1 Kraftfeld-Emitter +@1 Forcefield=@1 Kraftfeld + +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Enabled= + +### forcefield.lua ### +### battery_box.lua ### +### supply_converter.lua ### + +Digiline Channel= + +### forcefield.lua ### +### generator.lua ### +### quarry.lua ### +### cables.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +HV= + +### forcefield.lua ### +### machine_base.lua ### +### tool_workshop.lua ### +### quarry.lua ### +### music_player.lua ### + +@1 Unpowered=@1 hat keine Stromversorgung +@1 Active=@1 ist eingeschaltet + +### forcefield.lua ### +### supply_converter.lua ### + +Ignoring Mesecon Signal= +Controlled by Mesecon Signal= + +### frames.lua ### + +Frame=Rahmen +Frame Motor=Rahmenmotor +Template=Schablone +Template (replacing)=Schablone (ersetzend) +Template Tool=Schablonenwerkzeug +Template Motor=Schablonenmotor + +### freezer.lua ### + +@1 Freezer= + +### freezer_recipes.lua ### + +Freezing= + +### generator.lua ### + +Fuel-Fired @1 Generator=@1 Kohle-Generator + +### generator.lua ### +### water_mill.lua ### +### hydro_turbine.lua ### +### geothermal.lua ### +### nuclear_reactor.lua ### + +@1 (@2%)= + +### geothermal.lua ### + +Geothermal @1 Generator=@1 Geothermie-Generator + +### grinder.lua ### + +@1 Grinder=@1 Schleifmaschine + +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### water_mill.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### cables.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### compressor.lua ### +### geothermal.lua ### +### alloy_furnace.lua ### + +LV= + +### grinder_recipes.lua ### + +Grinding= +@1 Dust=@1staub +@1%-Fissile Uranium= + +### grindings.lua ### + +## Grinder Recipes +Sawdust= +@1 Grinding= + +### injector.lua ### + +Self-Contained Injector=Selbstversorger-Injektor +Stackwise=Ganzer Stapel +Itemwise=Einzelstuecke +Public= +Private= +Machines: run injector= + +### items.lua ### + +# textdomain: technic +# German Translation for Technic Mod +# Deutsche Uebersetzung des Technic Mods +# by Xanthin +## Items +Silicon Wafer=Siliziumscheibe +Doped Silicon Wafer=Dotierte Siliziumscheibe +Uranium Fuel=Uranbrennstoff +Diamond Drill Head=Diamantbohrkopf +Blue Energy Crystal=Blauer Energiekristall +Green Energy Crystal=Gruener Energiekristall +Red Energy Crystal=Roter Energiekristall +Copper Coil=Kupferspule +Low Voltage Transformer=Niederspannungstransformator +Medium Voltage Transformer=Mittelspannungstransformator +High Voltage Transformer=Hochspannungstransformator +Control Logic Unit=Steuer- und Regelungseinheit +Mixed Metal Ingot=Mischmetallbarren +Composite Plate=Verbundplatte +Copper Plate=Kupferplatte +Carbon Plate=Kohlefaserplatte +Graphite=Graphit +Carbon Cloth=Kohlefasergewebe +Machine Casing= +Rubber Goo= +@1%-Fissile Uranium Ingot= +@1%-Fissile Uranium Block= + +### lighting.lua ### + +someone= +Sorry, @1 owns that spot.= +Yellow Glowlight (thick)= +Yellow Glowlight (thin)= +White Glowlight (thick)= +White Glowlight (thin)= +Yellow Glowlight (small cube)= +White Glowlight (small cube)= + +### machine_base.lua ### +### battery_box.lua ### +### tool_workshop.lua ### + +Upgrade Slots=Verbesserungsfaecher + +### machine_base.lua ### +### tool_workshop.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +@1 Idle=@1 ist bereit + +### mining_drill.lua ### + +Single node.=Einzelblock +3 nodes deep.=3 Bloecke tief. +3 nodes wide.=3 Bloecke breit. +3 nodes tall.=3 Bloecke hoch. +3x3 nodes.=3x3 Bloecke. +Use while sneaking to change Mining Drill Mk@1 modes.=Halte die Shift-Taste beim Benutzen gedrueckt, um die Funktion des Bergbaubohrers Modell @1 zu aendern. +Mining Drill Mk@1 Mode @2: = +Mining Drill Mk@1=Bergbaubohrer Modell @1 +Mining Drill Mk@1 Mode @2=Bergbaubohrer Modell @1 Funktion @2 + +### mining_lasers.lua ### + +Mining Laser Mk@1=Bergbaulaser Modell @1 + +### music_player.lua ### + +@1 Music Player=@1 Musikspieler +Stop= +Stopped= +Current track @1= + +### nuclear_reactor.lua ### + +@1 Nuclear Reactor Core= +Nuclear Reactor Rod Compartment=Brennstabfaecher +Start= +automatic Start= +Enable Digiline= +Save= +Digiline Remote Channel= +Error: You need to insert @1 pieces of Uranium Fuel.= +Error: The power plant seems to be built incorrectly.= +Machines: reactor melt-down check= +Start successful= + +### power_monitor.lua ### + +## Machine names +Power Monitor= +Machines: run power monitor= +# $1: Machine name $2: Supply $3: Demand +@1. Supply: @2 Demand: @3=@1. Versorgung: @2 Bedarf: @3 + +### power_monitor.lua ### +### switching_station.lua ### +### battery_box.lua ### + +@1 Has No Network=@1 hat kein Netzwerk + +### power_radiator.lua ### + +@1 Power Radiator= +Machines: run power radiator= +@1 is unpowered= +@1 is powered (@2% of maximum power)= + +### power_radiator.lua ### +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### freezer.lua ### +### tool_workshop.lua ### +### hydro_turbine.lua ### +### cables.lua ### +### wind_mill.lua ### +### battery_box.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### centrifuge.lua ### +### compressor.lua ### +### alloy_furnace.lua ### + +MV= + +### prospector.lua ### + +Prospector= +Right-click to set target block type= +Current target:= +No target set= +May set new target:= +Set target= +No new target available= +Region cross section:= +Set region cross section:= +Region depth:= +Set region depth:= +Accuracy:= + +### quarry.lua ### + +@1 Quarry=@1 Steinbruch +Digging not started= +Digging finished= +Purging cache= +Digging @1 m @2 machine= +above= +below= +Restart= +@1 purging cache= +@1 Finished=@1 ist fertig +Manually taking/removing from cache by hand is not possible. If you can't wait, restart or disable the quarry to start automatic purge.= + +### quarry.lua ### +### anchor.lua ### + +Radius:= +Disabled= +Enabled= + +### quarry.lua ### +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Disabled= + +### quarry.lua ### +### forcefield.lua ### +### nuclear_reactor.lua ### + +You are not allowed to edit this!= + +### radiation.lua ### + +## Radiation +Radiation damage= +Corium Source= +Flowing Corium= +Corium Bucket= +Chernobylite Block= +Corium: griefing= + +### solar_array.lua ### + +Arrayed Solar @1 Generator=@1 Solaranlage +@1 Active (@2)= + +### solar_panel.lua ### + +Small Solar @1 Generator=@1 Solarmodul +# $1: Machine name (Includes tier) +@1 Active (@2 EU)=@1 ist eingeschaltet (@2 EU) + +### sonic_screwdriver.lua ### + +Sonic Screwdriver (left-click rotates face, right-click rotates axis)=Schallschraubendreher + +### supply_converter.lua ### + +## Machine-specific +Input Power= +Supply Converter=Stromumwandler +@1 (@2 @3 -> @4 @5)= +@1 Has Bad Cabling=@1 ist falsch verkabelt + +### switching_station.lua ### + +Switching Station=Schaltanlage +Channel= +Enables or disables technic's switching station ABM= +@1 Already Present= +@1. Supply: @2 Demand: @3= +Machines: timeout check= + +### tool_workshop.lua ### + +@1 Tool Workshop=@1 Werkzeugwerkstatt + +### tree_tap.lua ### + +Tree Tap=Baumzapfhahn +Raw Latex=Rohlatex +Rubber Fiber=Gummifaser +Tools: tree tap= + +### vacuum.lua ### + +Vacuum Cleaner= + +### water_mill.lua ### +### hydro_turbine.lua ### + +Hydro @1 Generator=@1 Wassermuehle + +### wind_mill.lua ### + +Wind Mill Frame=Windmuehlengeruest +Wind @1 Generator=@1 Windmuehle +@1 Improperly Placed=@1 ist falsch plaziert +Active @1 (@2 EU)= diff --git a/technic/locale/technic.es.tr b/technic/locale/technic.es.tr new file mode 100644 index 0000000..2471ed1 --- /dev/null +++ b/technic/locale/technic.es.tr @@ -0,0 +1,475 @@ +# textdomain: technic + + + +### alloy_furnace.lua ### + +@1 Alloy Furnace=Horno de Aleacion @1 + +### alloy_recipes.lua ### + +## Craft descriptions +Alloying= + +### anchor.lua ### + +Administrative World Anchor= +Owner: @1= +Unlocked= +Locked= +Keeping @1/@2 map blocks loaded= + +### battery_box.lua ### + +RE Battery= +Allow splitting incoming 'charge' stacks from tubes= +Allow splitting incoming 'discharge' stacks= +@1 Battery Box=Caja de Bateria @1 +Charge=Cargar +Discharge=Descargar +Power level=Nivel de Poder +edit Channel= +@1 Battery Box: @2 / @3= + +### cables.lua ### + +@1 Cable=Cable @1 +@1 Cable Plate= + +### cans.lua ### + +Water Can=Bidon de Agua +Lava Can=Bidon de Lava +River Water Can= + +### centrifuge.lua ### + +@1 Centrifuge= + +### centrifuge_recipes.lua ### + +Separating= + +### chainsaw.lua ### + +Chainsaw=Motosierra + +### coal_alloy_furnace.lua ### + +Fuel-Fired Alloy Furnace=Horno de Aleacion a Carbon +Machines: run coal alloy furnace= +@1 Active (@2%)=@1 Activo (@2%) +@1 is empty= + +### coal_alloy_furnace.lua ### +### generator.lua ### + +@1 Out Of Fuel=@1 Sin Combustible + +### coal_furnace.lua ### + +Fuel-Fired Furnace=Horno a Carbon + +### common.lua ### + +## Machine misc +Machine cannot be removed because it is not empty=La maquina no puede removerse porque no esta vacia +Inventory move disallowed due to protection= + +### compressor.lua ### + +@1 Compressor=Compresor @1 + +### compressor_recipes.lua ### + +Compressing= + +### constructor.lua ### + +Constructor Mk@1= +Slot @1= + +### electric_furnace.lua ### + +@1 Furnace=Horno @1 + +### extractor.lua ### + +@1 Extractor=Extractor @1 + +### extractor_recipes.lua ### + +Extracting= + +### flashlight.lua ### + +Flashlight=Linterna + +### forcefield.lua ### + +Range=Alcance +Sphere= +Cube= +@1 Forcefield Emitter=Emisor de Campo de Fuerza @1 +@1 Forcefield=Campo de Fuerza @1 + +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Enabled= + +### forcefield.lua ### +### battery_box.lua ### +### supply_converter.lua ### + +Digiline Channel= + +### forcefield.lua ### +### generator.lua ### +### quarry.lua ### +### cables.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +HV= + +### forcefield.lua ### +### machine_base.lua ### +### tool_workshop.lua ### +### quarry.lua ### +### music_player.lua ### + +@1 Unpowered=@1 Sin Energia +@1 Active=@1 Activo + +### forcefield.lua ### +### supply_converter.lua ### + +Ignoring Mesecon Signal= +Controlled by Mesecon Signal= + +### frames.lua ### + +Frame= +Frame Motor= +Template= +Template (replacing)= +Template Tool= +Template Motor= + +### freezer.lua ### + +@1 Freezer= + +### freezer_recipes.lua ### + +Freezing= + +### generator.lua ### + +Fuel-Fired @1 Generator=Generador a Carbon @1 + +### generator.lua ### +### water_mill.lua ### +### hydro_turbine.lua ### +### geothermal.lua ### +### nuclear_reactor.lua ### + +@1 (@2%)= + +### geothermal.lua ### + +Geothermal @1 Generator=Generador Geotermico @1 + +### grinder.lua ### + +@1 Grinder=Amoladora @1 + +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### water_mill.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### cables.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### compressor.lua ### +### geothermal.lua ### +### alloy_furnace.lua ### + +LV= + +### grinder_recipes.lua ### + +Grinding= +@1 Dust= +@1%-Fissile Uranium= + +### grindings.lua ### + +## Grinder Recipes +Sawdust= +@1 Grinding= + +### injector.lua ### + +Self-Contained Injector= +Stackwise= +Itemwise= +Public= +Private= +Machines: run injector= + +### items.lua ### + +# textdomain: technic +# Spanish Translation for Technic Mod +# Traduccion al Español del Mod Technic +# Autor: Diego Martínez +## Items +Silicon Wafer=Oblea de Silicio +Doped Silicon Wafer=Oblea de Silicio Dopada +Uranium Fuel=Combustible de Uranio +Diamond Drill Head=Mecha de Taladro de Diamante +Blue Energy Crystal=Cristal de Energia Azul +Green Energy Crystal=Cristal de Energia Verde +Red Energy Crystal=Cristal de Energia Rojo +Copper Coil=Resorte de Cobre +Low Voltage Transformer=Transformador de Bajo Voltaje +Medium Voltage Transformer=Transformador de Voltaje Medio +High Voltage Transformer=Transformador de Alto Voltaje +Control Logic Unit=Unidad Logica de Control +Mixed Metal Ingot=Lingote de Metal Mezclado +Composite Plate=Placa de Compuestos +Copper Plate=Placa de Cobre +Carbon Plate=Placa de Carbon +Graphite=Grafito +Carbon Cloth=Tela de Carbon +Machine Casing= +Rubber Goo= +@1%-Fissile Uranium Ingot= +@1%-Fissile Uranium Block= + +### lighting.lua ### + +someone= +Sorry, @1 owns that spot.= +Yellow Glowlight (thick)= +Yellow Glowlight (thin)= +White Glowlight (thick)= +White Glowlight (thin)= +Yellow Glowlight (small cube)= +White Glowlight (small cube)= + +### machine_base.lua ### +### battery_box.lua ### +### tool_workshop.lua ### + +Upgrade Slots= + +### machine_base.lua ### +### tool_workshop.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +@1 Idle=@1 Quieto + +### mining_drill.lua ### + +Single node.=Nodo simple. +3 nodes deep.=3 nodos de profundo. +3 nodes wide.=3 nodos de ancho. +3 nodes tall.=3 nodos de alto. +3x3 nodes.=3x3 nodos. +Use while sneaking to change Mining Drill Mk@1 modes.=Manten pulsado Mayus y Usar para cambiar el modo del Taladro de Mineria Mk@1. +Mining Drill Mk@1 Mode @2: = +Mining Drill Mk@1=Taladro de Mineria Mk@1 +Mining Drill Mk@1 Mode @2=Taladro de Mineria Mk@1 Modo @2 + +### mining_lasers.lua ### + +Mining Laser Mk@1=Laser de Mineria Mk@1 + +### music_player.lua ### + +@1 Music Player=Reproductor de Musica @1 +Stop= +Stopped= +Current track @1= + +### nuclear_reactor.lua ### + +@1 Nuclear Reactor Core= +Nuclear Reactor Rod Compartment=Compartimiento para Vara de Reactor Nuclear +Start= +automatic Start= +Enable Digiline= +Save= +Digiline Remote Channel= +Error: You need to insert @1 pieces of Uranium Fuel.= +Error: The power plant seems to be built incorrectly.= +Machines: reactor melt-down check= +Start successful= + +### power_monitor.lua ### + +## Machine names +Power Monitor= +Machines: run power monitor= +# $1: Machine name $2: Supply $3: Demand +@1. Supply: @2 Demand: @3=@1. Alimentacion: @2 Demanda: @3 + +### power_monitor.lua ### +### switching_station.lua ### +### battery_box.lua ### + +@1 Has No Network=@1 No Tiene Una Red + +### power_radiator.lua ### + +@1 Power Radiator= +Machines: run power radiator= +@1 is unpowered= +@1 is powered (@2% of maximum power)= + +### power_radiator.lua ### +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### freezer.lua ### +### tool_workshop.lua ### +### hydro_turbine.lua ### +### cables.lua ### +### wind_mill.lua ### +### battery_box.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### centrifuge.lua ### +### compressor.lua ### +### alloy_furnace.lua ### + +MV= + +### prospector.lua ### + +Prospector= +Right-click to set target block type= +Current target:= +No target set= +May set new target:= +Set target= +No new target available= +Region cross section:= +Set region cross section:= +Region depth:= +Set region depth:= +Accuracy:= + +### quarry.lua ### + +@1 Quarry=Cantera @1 +Digging not started= +Digging finished= +Purging cache= +Digging @1 m @2 machine= +above= +below= +Restart= +@1 purging cache= +@1 Finished=@1 Terminado +Manually taking/removing from cache by hand is not possible. If you can't wait, restart or disable the quarry to start automatic purge.= + +### quarry.lua ### +### anchor.lua ### + +Radius:= +Disabled= +Enabled= + +### quarry.lua ### +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Disabled= + +### quarry.lua ### +### forcefield.lua ### +### nuclear_reactor.lua ### + +You are not allowed to edit this!= + +### radiation.lua ### + +## Radiation +Radiation damage= +Corium Source= +Flowing Corium= +Corium Bucket= +Chernobylite Block= +Corium: griefing= + +### solar_array.lua ### + +Arrayed Solar @1 Generator=Panel Solar @1 +@1 Active (@2)= + +### solar_panel.lua ### + +Small Solar @1 Generator=Panel Solar @1 +@1 Active (@2 EU)=@1 Activo (@2 EU) + +### sonic_screwdriver.lua ### + +Sonic Screwdriver (left-click rotates face, right-click rotates axis)=Destonillador Sonico + +### supply_converter.lua ### + +## Machine-specific +Input Power= +Supply Converter=Convertidor de Alimentacion +@1 (@2 @3 -> @4 @5)= +@1 Has Bad Cabling=@1 Tiene Mal Cableado + +### switching_station.lua ### + +Switching Station=Estacion de Conmutacion +Channel= +Enables or disables technic's switching station ABM= +@1 Already Present= +@1. Supply: @2 Demand: @3= +Machines: timeout check= + +### tool_workshop.lua ### + +@1 Tool Workshop=Taller de Herramientas @1 + +### tree_tap.lua ### + +Tree Tap=Grifo de Arbol +Raw Latex=Latex Crudo +Rubber Fiber=Fibra de Hule +Tools: tree tap= + +### vacuum.lua ### + +Vacuum Cleaner= + +### water_mill.lua ### +### hydro_turbine.lua ### + +Hydro @1 Generator=Molino de Agua @1 + +### wind_mill.lua ### + +Wind Mill Frame=Armazon de Molino de Viento +Wind @1 Generator=Molino de Viento @1 +@1 Improperly Placed=@1 No Colocado Apropiadamente +Active @1 (@2 EU)= diff --git a/technic/locale/technic.fr.tr b/technic/locale/technic.fr.tr new file mode 100644 index 0000000..704f123 --- /dev/null +++ b/technic/locale/technic.fr.tr @@ -0,0 +1,475 @@ +# textdomain: technic + + + +### alloy_furnace.lua ### + +@1 Alloy Furnace=Four à alliages @1 + +### alloy_recipes.lua ### + +## Craft descriptions +Alloying=Fonderie d’alliage + +### anchor.lua ### + +Administrative World Anchor=Ancre pour les administrateurs du monde +Owner: @1=Propriétaire : @1 +Unlocked=Déverrouillé +Locked=Verrouillé +Keeping @1/@2 map blocks loaded=Garde @1/@2 blocs du monde chargés + +### battery_box.lua ### + +## Tools +RE Battery=Batterie RE +Allow splitting incoming 'charge' stacks from tubes=Autoriser à séparer les piles de 'charges' entrantes venant des tuyaux +Allow splitting incoming 'discharge' stacks=Autoriser à séparer les piles de 'décharges' +@1 Battery Box=Batterie @1 +Charge=Charger +Discharge=Décharger +Power level=Niveau d'énergie +edit Channel=choisir le cannal +@1 Battery Box: @2 / @3=@Batterie @1 : @2/@3 + +### cables.lua ### + +@1 Cable=Câble @1 +@1 Cable Plate=Plaque de câble @1 + +### cans.lua ### + +Water Can=Jerrican d’eau +Lava Can=Jerrican de lave +River Water Can=Jerrican d’eau de rivière + +### centrifuge.lua ### + +@1 Centrifuge=Centrifugeuse @1 + +### centrifuge_recipes.lua ### + +Separating=Séparation + +### chainsaw.lua ### + +Chainsaw=Tronçonneuse + +### coal_alloy_furnace.lua ### + +Fuel-Fired Alloy Furnace=Four à alliage à carburant +Machines: run coal alloy furnace=Machines : fonctionnement du four à alliages au charbon +@1 Active (@2%)=@1 actif (@2 %) +@1 is empty=@1 est vide + +### coal_alloy_furnace.lua ### +### generator.lua ### + +@1 Out Of Fuel=@1 n’a plus de carburant + +### coal_furnace.lua ### + +Fuel-Fired Furnace=Four à carburant + +### common.lua ### + +## Machine misc +Machine cannot be removed because it is not empty=La machine ne peut pas être retirée car elle n’est pas vide +Inventory move disallowed due to protection=Le déplacement d’inventaire n’est pas autorisé en raison de la protection + +### compressor.lua ### + +@1 Compressor=Compresseur @1 + +### compressor_recipes.lua ### + +Compressing=Compression + +### constructor.lua ### + +Constructor Mk@1=Constructeur Mk@1 +Slot @1=Emplacement @1 + +### electric_furnace.lua ### + +@1 Furnace=Four @1 + +### extractor.lua ### + +@1 Extractor=Extracteur @1 + +### extractor_recipes.lua ### + +Extracting=Extraction + +### flashlight.lua ### + +Flashlight=Lampe-torche + +### forcefield.lua ### + +Range=Plage +Sphere=Sphère +Cube=Cube +@1 Forcefield Emitter=Émetteur de champ de force @1 +@1 Forcefield=Champ de force @1 + +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Enabled=@1 activé + +### forcefield.lua ### +### battery_box.lua ### +### supply_converter.lua ### + +Digiline Channel=Cannal Digiline + +### forcefield.lua ### +### generator.lua ### +### quarry.lua ### +### cables.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +HV=haute tension + +### forcefield.lua ### +### machine_base.lua ### +### tool_workshop.lua ### +### quarry.lua ### +### music_player.lua ### + +@1 Unpowered=@1 non alimenté en énergie +@1 Active=@1 actif + +### forcefield.lua ### +### supply_converter.lua ### + +Ignoring Mesecon Signal=Ignorer le signal Mesecon +Controlled by Mesecon Signal=Contrôlé par signal Mesecon + +### frames.lua ### + +Frame=Cadre +Frame Motor=Cadre de moteur +Template=Modèle +Template (replacing)=Modèle (remplacement) +Template Tool=Modèle d’outil +Template Motor=Modèle de moteur + +### freezer.lua ### + +@1 Freezer=Congélateur @1 + +### freezer_recipes.lua ### + +Freezing=Congélation + +### generator.lua ### + +Fuel-Fired @1 Generator=Générateur thermique @1 + +### generator.lua ### +### water_mill.lua ### +### hydro_turbine.lua ### +### geothermal.lua ### +### nuclear_reactor.lua ### + +@1 (@2%)=@1 (@2 %) + +### geothermal.lua ### + +Geothermal @1 Generator=Générateur géothermique @1 + +### grinder.lua ### + +@1 Grinder=Broyeur @1 + +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### water_mill.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### cables.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### compressor.lua ### +### geothermal.lua ### +### alloy_furnace.lua ### + +LV=faible tension + +### grinder_recipes.lua ### + +Grinding=Broyage +@1 Dust=Poudre @1 +@1%-Fissile Uranium=d’uranium fissile (@1 %) + +### grindings.lua ### + +## Grinder Recipes +Sawdust=sciures de bois +@1 Grinding=Broyage d’@1 + +### injector.lua ### + +Self-Contained Injector=Injecteur autonome +Stackwise=Stack par stack +Itemwise=Item par item +Public=Public +Private=Privé +Machines: run injector= fonctionnement de l’injecteur + +### items.lua ### + +# textdomain: technic +# template.txt +# Template for translations of Technic +## Items +Silicon Wafer=Tranche de silicium +Doped Silicon Wafer=Tranche de silicium doppé +Uranium Fuel=Uranium 235 +Diamond Drill Head=Tête de forage en diamant +Blue Energy Crystal=Cristal d'énergie bleu +Green Energy Crystal=Cristal d'énergie vert +Red Energy Crystal=Cristal d'énergie rouge +Copper Coil=Bobine de cuivre +Low Voltage Transformer=Transformateur basse tension +Medium Voltage Transformer=Transformateur moyenne tension +High Voltage Transformer=Transformateur haute tension +Control Logic Unit=Unité de contrôle logique +Mixed Metal Ingot=Lingot de métal allié +Composite Plate=Plaque composite +Copper Plate=Plaque de cuivre +Carbon Plate=Plaque de carbone +Graphite=Graphite +Carbon Cloth=Fibre de carbone +Machine Casing=Boîtier de machine +Rubber Goo= +@1%-Fissile Uranium Ingot=Lingot d'uranium fissile (@1 %) +@1%-Fissile Uranium Block=Bloc d'uranium fissile (@1 %) + +### lighting.lua ### + +someone=quelqu’un +Sorry, @1 owns that spot.=Désolé, cet endroit est la propriété de @1. +Yellow Glowlight (thick)=Lumière jaune (forte) +Yellow Glowlight (thin)=Lumière jaune (faible) +White Glowlight (thick)=Lumière blanche (faible) +White Glowlight (thin)=Lumière blanche (forte) +Yellow Glowlight (small cube)=Lumière jaune (petit cube) +White Glowlight (small cube)=Lumière blanche (petit cube) + +### machine_base.lua ### +### battery_box.lua ### +### tool_workshop.lua ### + +Upgrade Slots=Emplacements d'amélioration + +### machine_base.lua ### +### tool_workshop.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +@1 Idle=@1 au repos + +### mining_drill.lua ### + +Single node.=Mode simple. +3 nodes deep.=3 blocs de profondeur. +3 nodes wide.=3 blocs de large. +3 nodes tall.=3 blocs de long. +3x3 nodes.=3×3 blocs. +Use while sneaking to change Mining Drill Mk@1 modes.=À utiliser acroupis pour changer le mode de la foreuse Mk@1. +Mining Drill Mk@1 Mode @2: =Foreuse Mk@1 Mode @2 : +Mining Drill Mk@1=Foreuse Mk@1 +Mining Drill Mk@1 Mode @2=Foreuse Mk@1 Mode @2 + +### mining_lasers.lua ### + +Mining Laser Mk@1=Foreuse laser Mk@1 + +### music_player.lua ### + +@1 Music Player=Grammophone @1 +Stop=Stop +Stopped=Arrêté +Current track @1=Morceau actuel @1 + +### nuclear_reactor.lua ### + +@1 Nuclear Reactor Core=Cœur de réacteur nucléaire @1 +Nuclear Reactor Rod Compartment=Compartiment à barres du réacteur nucléaire +Start=Démarrer +automatic Start=démarrage automatique +Enable Digiline=Activer Digiline +Save=Sauvegarder +Digiline Remote Channel=Cannal Digiline distant +Error: You need to insert @1 pieces of Uranium Fuel.=Erreur : vous devez insérer @1 morceaux d’Uranium 235. +Error: The power plant seems to be built incorrectly.=Erreur : la centrale électrique est construite de manière incorrecte. +Machines: reactor melt-down check=Machines : vérification de la fusion des réacteurs +Start successful=Démarrage réussit + +### power_monitor.lua ### + +## Machine names +Power Monitor=Contrôleur de puissance +Machines: run power monitor=Machines : fonctionnement du contrôleur de puissance +# @1: Machine name @2: Supply @3: Demand +@1. Supply: @2 Demand: @3=@1. fournit : @2 demande : @3 + +### power_monitor.lua ### +### switching_station.lua ### +### battery_box.lua ### + +@1 Has No Network=@1 n’a pas de réseau + +### power_radiator.lua ### + +@1 Power Radiator=Radiateur de puissance @1 +Machines: run power radiator=Machines : fonctionnement du radiateur de puissance +@1 is unpowered=@1 est hors tension +@1 is powered (@2% of maximum power)=@1 est alimenté (@2 % de la puissance maximale) + +### power_radiator.lua ### +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### freezer.lua ### +### tool_workshop.lua ### +### hydro_turbine.lua ### +### cables.lua ### +### wind_mill.lua ### +### battery_box.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### centrifuge.lua ### +### compressor.lua ### +### alloy_furnace.lua ### + +MV=moyenne tension + +### prospector.lua ### + +Prospector=Prospecteur +Right-click to set target block type=Clic droit pour définir un type de bloc cible +Current target:=Cible actuelle : +No target set=Pas de cible définie +May set new target:=Peut définir une nouvelle cible : +Set target=Définir une cible +No new target available=Pas de cible disponible +Region cross section:=Section de la zone en commun : +Set region cross section:=Définir une section en commun : +Region depth:=Profondeur de la zone : +Set region depth:=Définir la profondeur de la zone : +Accuracy:=Précision : + +### quarry.lua ### + +@1 Quarry=Carrière @1 +Digging not started=Creusage non démarré +Digging finished=Creusage terminé +Purging cache=Purge du cache +Digging @1 m @2 machine=Creusage de @1 m @2 de la machine +above=au dessus +below=en dessous +Restart=Redémarrer +@1 purging cache=@1 purge le cache +@1 Finished=@1 a fini +Manually taking/removing from cache by hand is not possible. If you can't wait, restart or disable the quarry to start automatic purge.=Intéragir avec le cache manuellement n’est pas possible. Si vous ne pouvez pas attendre, redémarrez ou désactivez la carrière pour commencer la purge automatique. + +### quarry.lua ### +### anchor.lua ### + +Radius:=Rayon : +Disabled=Désactivé +Enabled=Activé + +### quarry.lua ### +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Disabled=@1 désactivé + +### quarry.lua ### +### forcefield.lua ### +### nuclear_reactor.lua ### + +You are not allowed to edit this!=Vous n’êtes pas autorisé à modifier cela ! + +### radiation.lua ### + +## Radiation +Radiation damage=Dommages dus aux radiations +Corium Source=Source de corium +Flowing Corium=Corium liquide +Corium Bucket=Seau de corium +Chernobylite Block=Bloc de Chernobylite +Corium: griefing=Corium : griefing + +### solar_array.lua ### + +Arrayed Solar @1 Generator=Générateur solaire @1 +@1 Active (@2)=@1 actif (@2) + +### solar_panel.lua ### + +Small Solar @1 Generator=Petit générateur solaire @1 +@1 Active (@2 EU)=@1 actif (@2 EU) + +### sonic_screwdriver.lua ### + +Sonic Screwdriver (left-click rotates face, right-click rotates axis)=Tournevis supersonique (clic gauche pour tourner l’avant, clic droit pour tourner l’axe) + +### supply_converter.lua ### + +## Machine-specific +Input Power=Puissance d’entrée +Supply Converter=Convertisseur de tension +@1 (@2 @3 -> @4 @5)=@1 (@2 @3 -> @4 @5) +@1 Has Bad Cabling=@1 est mal cablé + +### switching_station.lua ### + +Switching Station=Station de commutation +Channel=Cannal +Enables or disables technic's switching station ABM=Active ou desactive la station de commutation de technic +@1 Already Present=@1 déja présent +@1. Supply: @2 Demand: @3=@1. Alimentation : @2 Consommation : @3 +Machines: timeout check=Machines : vérification de timeout + +### tool_workshop.lua ### + +@1 Tool Workshop=Atelier d’outillage @1 + +### tree_tap.lua ### + +Tree Tap=Robinet à sève +Raw Latex=Latex brut +Rubber Fiber=Fibre de caoutchouc +Tools: tree tap=Outils : Robinet à sève + +### vacuum.lua ### + +Vacuum Cleaner=Aspirateur + +### water_mill.lua ### +### hydro_turbine.lua ### + +Hydro @1 Generator=Générateur hydroélectrique @1 + +### wind_mill.lua ### + +Wind Mill Frame=Cadre d’éolienne +Wind @1 Generator=Générateur éolien @1 +@1 Improperly Placed=@1 est mal placé +Active @1 (@2 EU)=Active @1 (@2 EU) diff --git a/technic/locale/technic.it.tr b/technic/locale/technic.it.tr new file mode 100644 index 0000000..9d31079 --- /dev/null +++ b/technic/locale/technic.it.tr @@ -0,0 +1,473 @@ +# textdomain: technic + + + +### alloy_furnace.lua ### + +@1 Alloy Furnace=@1 Fornace per leghe + +### alloy_recipes.lua ### + +## Craft descriptions +Alloying=Cottura lege + +### anchor.lua ### + +Administrative World Anchor=Ancora-mondo amministrativa +Owner: @1= +Unlocked=Non chiuso a chiave +Locked=Chiuso a chiave +Keeping @1/@2 map blocks loaded=Mantenimento di @1/@2 blocchi mappa caricati + +### battery_box.lua ### + +## Tools +RE Battery=Batteria RE +Allow splitting incoming 'charge' stacks from tubes= +Allow splitting incoming 'discharge' stacks= +@1 Battery Box= @1 Box batterie +Charge=Carica +Discharge=Scarica +Power level=Livello di potenza +edit Channel= +@1 Battery Box: @2 / @3= + +### cables.lua ### + +@1 Cable=Cavo @1 +@1 Cable Plate= + +### cans.lua ### + +Water Can=Serbatoio d'acqua +Lava Can=Serbatoio di lava +River Water Can= + +### centrifuge.lua ### + +@1 Centrifuge= + +### centrifuge_recipes.lua ### + +Separating= + +### chainsaw.lua ### + +Chainsaw=Motosega + +### coal_alloy_furnace.lua ### + +Fuel-Fired Alloy Furnace=Fornace per leghe a carbone +Machines: run coal alloy furnace= +@1 Active (@2%)=@1 Attivo (@2%) +@1 is empty= + +### coal_alloy_furnace.lua ### +### generator.lua ### + +@1 Out Of Fuel=@1 senza carburante + +### coal_furnace.lua ### + +Fuel-Fired Furnace=Fornace a carbone + +### common.lua ### + +## Machine misc +Machine cannot be removed because it is not empty=La macchina non può essere rimossa perchè non è vuota +Inventory move disallowed due to protection=Impossibile muovere l'inventario a causa della protezione + +### compressor.lua ### + +@1 Compressor=Compressore @1 + +### compressor_recipes.lua ### + +Compressing=Compressione + +### constructor.lua ### + +Constructor Mk@1=Costruttore Mk@1 +Slot @1=Alloggio @1 + +### electric_furnace.lua ### + +@1 Furnace=@1 Fornace + +### extractor.lua ### + +@1 Extractor=Estrattore @1 + +### extractor_recipes.lua ### + +Extracting=Estrazione + +### flashlight.lua ### + +Flashlight=Torcia + +### forcefield.lua ### + +Range=Raggio +Sphere= +Cube= +@1 Forcefield Emitter=Emettitore di campo di forza @1 +@1 Forcefield=Campo di forza @1 + +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Enabled=@1 Abilitato + +### forcefield.lua ### +### battery_box.lua ### +### supply_converter.lua ### + +Digiline Channel= + +### forcefield.lua ### +### generator.lua ### +### quarry.lua ### +### cables.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +HV= + +### forcefield.lua ### +### machine_base.lua ### +### tool_workshop.lua ### +### quarry.lua ### +### music_player.lua ### + +@1 Unpowered=@1 Non alimentato +@1 Active=@1 Attivo + +### forcefield.lua ### +### supply_converter.lua ### + +Ignoring Mesecon Signal= +Controlled by Mesecon Signal= + +### frames.lua ### + +Frame=Cornice +Frame Motor=Cornice del motore +Template=Sagoma +Template (replacing)=Sagoma (di rimpiazzo) +Template Tool=Strumento per sagome +Template Motor=Motore per sagome + +### freezer.lua ### + +@1 Freezer= + +### freezer_recipes.lua ### + +Freezing= + +### generator.lua ### + +Fuel-Fired @1 Generator=@1 Generatore a carbone + +### generator.lua ### +### water_mill.lua ### +### hydro_turbine.lua ### +### geothermal.lua ### +### nuclear_reactor.lua ### + +@1 (@2%)= + +### geothermal.lua ### + +Geothermal @1 Generator=@1 Generatore Geotermico + +### grinder.lua ### + +@1 Grinder=@1 Tritatutto + +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### water_mill.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### cables.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### compressor.lua ### +### geothermal.lua ### +### alloy_furnace.lua ### + +LV= + +### grinder_recipes.lua ### + +Grinding=Macinazione +@1 Dust=Polvere di @1 +@1%-Fissile Uranium=@1%-Uranio fissile + +### grindings.lua ### + +## Grinder Recipes +Sawdust= +@1 Grinding=Macinazione @1 + +### injector.lua ### + +Self-Contained Injector=Ignettore +Stackwise=pila completa +Itemwise=Singolo elemento +Public= +Private= +Machines: run injector= + +### items.lua ### + +# textdomain: technic +## Items +Silicon Wafer=Wafer di silicone +Doped Silicon Wafer=Wafer di silicone dopato +Uranium Fuel=Uranio Combustibile +Diamond Drill Head=Trivella diamantata +Blue Energy Crystal=Cristallo energetico blu +Green Energy Crystal=Cristallo energetico verde +Red Energy Crystal=Cristallo energetico rosso +Copper Coil=Bobina di rame +Low Voltage Transformer=Trasformatore in bassa tensione +Medium Voltage Transformer=Trasformatore in media tensione +High Voltage Transformer=Trasformatore in alta tensione +Control Logic Unit=Unità di controllo logica +Mixed Metal Ingot=Lingotto in lega ibrida +Composite Plate=Lastra composita +Copper Plate=Lastra di rame +Carbon Plate=Lastra in carbonio +Graphite=Lastra in graffite +Carbon Cloth=Fibra di carbonio +Machine Casing= +Rubber Goo= +@1%-Fissile Uranium Ingot=@1%-Lingotto di uranio fissile +@1%-Fissile Uranium Block=@1%-Blocco di uranio fissile + +### lighting.lua ### + +someone= +Sorry, @1 owns that spot.= +Yellow Glowlight (thick)= +Yellow Glowlight (thin)= +White Glowlight (thick)= +White Glowlight (thin)= +Yellow Glowlight (small cube)= +White Glowlight (small cube)= + +### machine_base.lua ### +### battery_box.lua ### +### tool_workshop.lua ### + +Upgrade Slots=Alloggi di aggiornamento + +### machine_base.lua ### +### tool_workshop.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +@1 Idle=@1 Inattivo + +### mining_drill.lua ### + +Single node.= +3 nodes deep.=3 nodi in profondità. +3 nodes wide.=3 nodi in larghezza. +3 nodes tall.=3 nodi in altezza. +3x3 nodes.=3x3 nodi. +Use while sneaking to change Mining Drill Mk@1 modes.=Premi shift (freccia grossa) e usa per cambiare modalità nella trivella da miniera Mk@1. +Mining Drill Mk@1 Mode @2: = +Mining Drill Mk@1=Trivella da miniera mk@1 +Mining Drill Mk@1 Mode @2=Trivella mk@1 in modalità @2 + +### mining_lasers.lua ### + +Mining Laser Mk@1=Laser da miniera mk@1 + +### music_player.lua ### + +@1 Music Player=Music Player @1 +Stop= +Stopped=Fermato +Current track @1=Traccia corrente @1 + +### nuclear_reactor.lua ### + +@1 Nuclear Reactor Core= +Nuclear Reactor Rod Compartment=Compartimento combustibile nucleare +Start= +automatic Start= +Enable Digiline= +Save= +Digiline Remote Channel= +Error: You need to insert @1 pieces of Uranium Fuel.= +Error: The power plant seems to be built incorrectly.= +Machines: reactor melt-down check= +Start successful= + +### power_monitor.lua ### + +## Machine names +Power Monitor= +Machines: run power monitor= +# $1: Machine name $2: Supply $3: Demand +@1. Supply: @2 Demand: @3=@1. Prodotto: @2 Consumato: @3 + +### power_monitor.lua ### +### switching_station.lua ### +### battery_box.lua ### + +@1 Has No Network=@1 non è collegata + +### power_radiator.lua ### + +@1 Power Radiator= +Machines: run power radiator= +@1 is unpowered= +@1 is powered (@2% of maximum power)= + +### power_radiator.lua ### +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### freezer.lua ### +### tool_workshop.lua ### +### hydro_turbine.lua ### +### cables.lua ### +### wind_mill.lua ### +### battery_box.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### centrifuge.lua ### +### compressor.lua ### +### alloy_furnace.lua ### + +MV= + +### prospector.lua ### + +Prospector= +Right-click to set target block type= +Current target:= +No target set= +May set new target:= +Set target= +No new target available= +Region cross section:= +Set region cross section:= +Region depth:= +Set region depth:= +Accuracy:= + +### quarry.lua ### + +@1 Quarry=Cava @1 +Digging not started=Scavo non iniziato +Digging finished=Scavo finito +Purging cache= +Digging @1 m @2 machine=Scavo di @1 m @2 la macchina +above=sopra +below=sotto +Restart= +@1 purging cache= +@1 Finished=@1 Finito +Manually taking/removing from cache by hand is not possible. If you can't wait, restart or disable the quarry to start automatic purge.= + +### quarry.lua ### +### anchor.lua ### + +Radius:=Raggio: +Disabled=Disabilitato +Enabled=Abilitato + +### quarry.lua ### +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Disabled= + +### quarry.lua ### +### forcefield.lua ### +### nuclear_reactor.lua ### + +You are not allowed to edit this!= + +### radiation.lua ### + +## Radiation +Radiation damage= +Corium Source= +Flowing Corium= +Corium Bucket= +Chernobylite Block= +Corium: griefing= + +### solar_array.lua ### + +Arrayed Solar @1 Generator=@1 Pannello Solare +@1 Active (@2)= + +### solar_panel.lua ### + +Small Solar @1 Generator=@1 Pannello solare +@1 Active (@2 EU)=@1 Attivo (@2 EU) + +### sonic_screwdriver.lua ### + +Sonic Screwdriver (left-click rotates face, right-click rotates axis)=Cacciavite sonico + +### supply_converter.lua ### + +## Machine-specific +Input Power= +Supply Converter=Trasformatore +@1 (@2 @3 -> @4 @5)= +@1 Has Bad Cabling=@1 ha un cablaggio scorretto + +### switching_station.lua ### + +Switching Station=Stazione di controllo +Channel= +Enables or disables technic's switching station ABM= +@1 Already Present= +@1. Supply: @2 Demand: @3= +Machines: timeout check= + +### tool_workshop.lua ### + +@1 Tool Workshop=Officina per attrezzi @1 + +### tree_tap.lua ### + +Tree Tap=Batti albero +Raw Latex=Latex grezzo +Rubber Fiber=Fibra di gomma +Tools: tree tap= + +### vacuum.lua ### + +Vacuum Cleaner= + +### water_mill.lua ### +### hydro_turbine.lua ### + +Hydro @1 Generator=Turbina Elettrica @1 + +### wind_mill.lua ### + +Wind Mill Frame=Pala eolica +Wind @1 Generator=@1 Generatore eolico +@1 Improperly Placed=@1 Piazzato impropiamente +Active @1 (@2 EU)= diff --git a/technic/locale/technic.pl.tr b/technic/locale/technic.pl.tr new file mode 100644 index 0000000..c38ad8f --- /dev/null +++ b/technic/locale/technic.pl.tr @@ -0,0 +1,477 @@ +# textdomain: technic + + + +### alloy_furnace.lua ### + +## Machine names +@1 Alloy Furnace=@1 Piec stopowy + +### alloy_recipes.lua ### + +## Craft descriptions +Alloying=Stapianie + +### anchor.lua ### + +Administrative World Anchor=Administracyjna kotwica świata +Owner: @1= +Unlocked=Odblokowany/a +Locked=Zablokowany/a +Keeping @1/@2 map blocks loaded=Ciągle ładuję @1/@2 bloki mapy + +### battery_box.lua ### + +## Tools +RE Battery=Bateria ładowalna +Allow splitting incoming 'charge' stacks from tubes= +Allow splitting incoming 'discharge' stacks= +@1 Battery Box=@1 Skrzynka baterii +Charge=Ładuj +Discharge=Rozładuj +Power level=Poziom zasilania +edit Channel= +@1 Battery Box: @2 / @3= + +### cables.lua ### + +@1 Cable=@1 Przewód +@1 Cable Plate= + +### cans.lua ### + +Water Can=Kanister wody +Lava Can=Kanister lawy +River Water Can= + +### centrifuge.lua ### + +@1 Centrifuge=@1 Centryfuga + +### centrifuge_recipes.lua ### + +Separating=Oddzielanie + +### chainsaw.lua ### + +Chainsaw=Piła łańcuchowa + +### coal_alloy_furnace.lua ### + +Fuel-Fired Alloy Furnace=Piec stopowy zasilany paliwem +Machines: run coal alloy furnace= +@1 Active (@2%)= +@1 is empty=@1 jest pusty/a + +### coal_alloy_furnace.lua ### +### generator.lua ### + +@1 Out Of Fuel=@1 brak paliwa + +### coal_furnace.lua ### + +Fuel-Fired Furnace=Piec zasilany paliwem + +### common.lua ### + +## Machine misc +Machine cannot be removed because it is not empty=Nie można usunąć maszyny, ponieważ nie jest pusta +Inventory move disallowed due to protection=Przenoszenie rzeczy z ekwipunku niemożliwe z powodu ochrony + +### compressor.lua ### + +@1 Compressor=@1 Kompresor + +### compressor_recipes.lua ### + +Compressing=Kompresowanie + +### constructor.lua ### + +Constructor Mk@1=Konstruktor Mk@1 +Slot @1=Otwór @1 + +### electric_furnace.lua ### + +@1 Furnace=@1 Piec + +### extractor.lua ### + +@1 Extractor=@1 Ekstraktor + +### extractor_recipes.lua ### + +Extracting=Ekstrakcja + +### flashlight.lua ### + +Flashlight=Latarka + +### forcefield.lua ### + +Range=Zasięg +Sphere= +Cube= +@1 Forcefield Emitter=@1 Emiter pola siłowego +@1 Forcefield=@1 Pole siłowe + +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Enabled=@1 Włączony/a + +### forcefield.lua ### +### battery_box.lua ### +### supply_converter.lua ### + +Digiline Channel= + +### forcefield.lua ### +### generator.lua ### +### quarry.lua ### +### cables.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +HV= + +### forcefield.lua ### +### machine_base.lua ### +### tool_workshop.lua ### +### quarry.lua ### +### music_player.lua ### + +@1 Unpowered=@1 brak zasilania +@1 Active=@1 Aktywny/a + +### forcefield.lua ### +### supply_converter.lua ### + +Ignoring Mesecon Signal=Ignoruj sygnał Mesecon +Controlled by Mesecon Signal=Sterowany sygnałem Mesecon + +### frames.lua ### + +Frame=Klatka +Frame Motor=Silnik klatkowy +Template=Szablon +Template (replacing)=Szablon (zastępczy) +Template Tool=Szablon narzędzia +Template Motor= + +### freezer.lua ### + +@1 Freezer= + +### freezer_recipes.lua ### + +Freezing= + +### generator.lua ### + +Fuel-Fired @1 Generator=@1 Generator zasilany paliwem + +### generator.lua ### +### water_mill.lua ### +### hydro_turbine.lua ### +### geothermal.lua ### +### nuclear_reactor.lua ### + +@1 (@2%)= + +### geothermal.lua ### + +Geothermal @1 Generator=@1 Generator geotermalny + +### grinder.lua ### + +@1 Grinder=@1 Młynek + +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### water_mill.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### cables.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### compressor.lua ### +### geothermal.lua ### +### alloy_furnace.lua ### + +LV= + +### grinder_recipes.lua ### + +Grinding=Mielenie +@1 Dust=@1 Pył +@1%-Fissile Uranium=@1% Uranu + +### grindings.lua ### + +## Grinder Recipes +# $1: Name +Sawdust= +@1 Grinding=@1 Mielenie + +### injector.lua ### + +Self-Contained Injector=Samowystarczalny wtryskiwacz +Stackwise=Cały stack +Itemwise=Jeden przedmiot +Public= +Private= +Machines: run injector= + +### items.lua ### + +# textdomain: technic +# Polish Translation for Technic mod +# Polskie tłumaczenie Technic mod +# by mat9117 +## Items +Silicon Wafer=Płytka krzemowa +Doped Silicon Wafer=Domieszkowana płytka krzemowa +Uranium Fuel=Paliwo uranowe +Diamond Drill Head=Diamentowa głowica wiertła +Blue Energy Crystal=Niebieski kryształ energii +Green Energy Crystal=Zielony kryształ energii +Red Energy Crystal=Czerwony kryształ energii +Copper Coil=Miedziana cewka +Low Voltage Transformer=Transformator niskiego napięcia +Medium Voltage Transformer=Transformator średniego napięcia +High Voltage Transformer=Transformator wysokiego napięcia +Control Logic Unit=Jednostka sterująca +Mixed Metal Ingot=Sztabka zmieszanych metali +Composite Plate=Płytka kompozytowa +Copper Plate=Płytka miedziana +Carbon Plate=Płytka węglowa +Graphite=Grafit +Carbon Cloth=Włókno węglowe +Machine Casing= +Rubber Goo= +@1%-Fissile Uranium Ingot=@1% Sztabka uranu +@1%-Fissile Uranium Block=@1% Blok uranu + +### lighting.lua ### + +someone= +Sorry, @1 owns that spot.= +Yellow Glowlight (thick)= +Yellow Glowlight (thin)= +White Glowlight (thick)= +White Glowlight (thin)= +Yellow Glowlight (small cube)= +White Glowlight (small cube)= + +### machine_base.lua ### +### battery_box.lua ### +### tool_workshop.lua ### + +Upgrade Slots=Miejsca na ulepszenia + +### machine_base.lua ### +### tool_workshop.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +@1 Idle=@1 Bezczynny/a + +### mining_drill.lua ### + +Single node.=Pojedynczy blok. +3 nodes deep.=Głęboki na 3 bloki. +3 nodes wide.=Szeroki na 3 bloki. +3 nodes tall.=Wysoki na 3 bloki. +3x3 nodes.=3x3 bloki. +Use while sneaking to change Mining Drill Mk@1 modes.=Użyj podczas skradania, aby zmienić tryby wiertła górniczego Mk@1 +Mining Drill Mk@1 Mode @2: = +Mining Drill Mk@1=Wiertło górnicze Mk@1 +Mining Drill Mk@1 Mode @2=Tryb wiertła górniczego Mk@1 + +### mining_lasers.lua ### + +Mining Laser Mk@1=Laser górniczy Mk@1 + +### music_player.lua ### + +@1 Music Player=@1 Odtwarzacz muzyki +Stop= +Stopped=Zatrzymany/a +Current track @1= + +### nuclear_reactor.lua ### + +@1 Nuclear Reactor Core= +Nuclear Reactor Rod Compartment=Komora rdzenia reaktora atomowego +Start= +automatic Start= +Enable Digiline= +Save= +Digiline Remote Channel= +Error: You need to insert @1 pieces of Uranium Fuel.= +Error: The power plant seems to be built incorrectly.= +Machines: reactor melt-down check= +Start successful= + +### power_monitor.lua ### + +Power Monitor= +Machines: run power monitor= +# $1: Machine name $2: Supply $3: Demand +@1. Supply: @2 Demand: @3=@1. Zapas: @2 Pobór: @3 + +### power_monitor.lua ### +### switching_station.lua ### +### battery_box.lua ### + +@1 Has No Network=@1 Nie podłączony/a do sieci + +### power_radiator.lua ### + +@1 Power Radiator= +Machines: run power radiator= +@1 is unpowered= +@1 is powered (@2% of maximum power)= + +### power_radiator.lua ### +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### freezer.lua ### +### tool_workshop.lua ### +### hydro_turbine.lua ### +### cables.lua ### +### wind_mill.lua ### +### battery_box.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### centrifuge.lua ### +### compressor.lua ### +### alloy_furnace.lua ### + +MV= + +### prospector.lua ### + +Prospector= +Right-click to set target block type= +Current target:= +No target set= +May set new target:= +Set target= +No new target available= +Region cross section:= +Set region cross section:= +Region depth:= +Set region depth:= +Accuracy:= + +### quarry.lua ### + +@1 Quarry=@1 Kamieniołom +Digging not started=Nie rozpoczęto kopania +Digging finished=Kopanie skończone +Purging cache= +Digging @1 m @2 machine=Kopię @1 m @2 maszyną +above=nad +below=pod +Restart= +@1 purging cache= +@1 Finished=@1 Ukończony +Manually taking/removing from cache by hand is not possible. If you can't wait, restart or disable the quarry to start automatic purge.= + +### quarry.lua ### +### anchor.lua ### + +Radius:=Promień: +Disabled=Wyłączony/a +Enabled=Włączony/a + +### quarry.lua ### +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Disabled= + +### quarry.lua ### +### forcefield.lua ### +### nuclear_reactor.lua ### + +You are not allowed to edit this!= + +### radiation.lua ### + +## Radiation +Radiation damage= +Corium Source= +Flowing Corium= +Corium Bucket= +Chernobylite Block= +Corium: griefing= + +### solar_array.lua ### + +Arrayed Solar @1 Generator=@1 Szeregowy generator słoneczny +@1 Active (@2)= + +### solar_panel.lua ### + +Small Solar @1 Generator=@1 Mały generator słoneczny +@1 Active (@2 EU)= + +### sonic_screwdriver.lua ### + +Sonic Screwdriver (left-click rotates face, right-click rotates axis)=Dźwiękowy śrubokręt + +### supply_converter.lua ### + +## Machine-specific +Input Power= +Supply Converter=Konwerter zasilania +@1 (@2 @3 -> @4 @5)=@1 (@2 @3 -> @4 @5) +@1 Has Bad Cabling=@1 Źle podłączono kable + +### switching_station.lua ### + +Switching Station=Rozdzielnia +Channel= +Enables or disables technic's switching station ABM= +@1 Already Present= +@1. Supply: @2 Demand: @3= +Machines: timeout check= + +### tool_workshop.lua ### + +@1 Tool Workshop=@1 Warsztat narzędzi + +### tree_tap.lua ### + +Tree Tap=Nacinak drzewny +Raw Latex=Lateks naturalny +Rubber Fiber=Włókno gumowe +Tools: tree tap= + +### vacuum.lua ### + +Vacuum Cleaner= + +### water_mill.lua ### +### hydro_turbine.lua ### + +Hydro @1 Generator=@1 Hydrogenerator + +### wind_mill.lua ### + +Wind Mill Frame=Klatka wiatraka +Wind @1 Generator=@1 Generator wiatrowy +@1 Improperly Placed=@1 Ustawiony/a nieprawidłowo +Active @1 (@2 EU)= diff --git a/technic/locale/technic.pt_BR.tr b/technic/locale/technic.pt_BR.tr new file mode 100644 index 0000000..a004c07 --- /dev/null +++ b/technic/locale/technic.pt_BR.tr @@ -0,0 +1,476 @@ +# textdomain: technic + + + +### alloy_furnace.lua ### + +@1 Alloy Furnace=Fornalha de Liga @1 + +### alloy_recipes.lua ### + +## Craft descriptions +Alloying=Cozinhando em liga + +### anchor.lua ### + +Administrative World Anchor=Âncora de Mundo Administrativa +Owner: @1= +Unlocked=Destravado +Locked=Travado +Keeping @1/@2 map blocks loaded=Mantendo @1/@2 blocos de mapa carregados + +### battery_box.lua ### + +## Tools +RE Battery=Bateria RE +Allow splitting incoming 'charge' stacks from tubes= +Allow splitting incoming 'discharge' stacks= +@1 Battery Box=Caixa de Bateria @1 +Charge=Carregar +Discharge=Descarregar +Power level=Nível de Energia +edit Channel= +@1 Battery Box: @2 / @3= + +### cables.lua ### + +@1 Cable=Cabo @1 +@1 Cable Plate= + +### cans.lua ### + +Water Can=Lata de Água +Lava Can=Lata de Lava +River Water Can= + +### centrifuge.lua ### + +@1 Centrifuge=Centrifuga @1 + +### centrifuge_recipes.lua ### + +Separating=Separando + +### chainsaw.lua ### + +Chainsaw=Motosserra + +### coal_alloy_furnace.lua ### + +Fuel-Fired Alloy Furnace=Fornalha de Liga Alimentada-por-Combustível +Machines: run coal alloy furnace= +@1 Active (@2%)=@1 Ativo (@2%) +@1 is empty=@1 está vazio + +### coal_alloy_furnace.lua ### +### generator.lua ### + +@1 Out Of Fuel=@1 Sem Combustível + +### coal_furnace.lua ### + +Fuel-Fired Furnace=Fornalha Alimentada-por-Combustível + +### common.lua ### + +## Machine Misc +Machine cannot be removed because it is not empty=A máquina não pode ser removida porque ela não está vazia +Inventory move disallowed due to protection=Movimento de inventário não permitido pela proteção + +### compressor.lua ### + +@1 Compressor=Compresso @1 + +### compressor_recipes.lua ### + +Compressing=Comprimindo + +### constructor.lua ### + +Constructor Mk@1=Construtor Nv@1 +Slot @1=Lugar @1 + +### electric_furnace.lua ### + +@1 Furnace=Fornalha @1 + +### extractor.lua ### + +@1 Extractor=Extrator @1 + +### extractor_recipes.lua ### + +Extracting=Extraindo + +### flashlight.lua ### + +Flashlight=Lanterna + +### forcefield.lua ### + +Range= +Sphere= +Cube= +@1 Forcefield Emitter=Emissor de Campo de Força @1 +@1 Forcefield=Campo de Força @1 + +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Enabled=@1 Desativado + +### forcefield.lua ### +### battery_box.lua ### +### supply_converter.lua ### + +Digiline Channel= + +### forcefield.lua ### +### generator.lua ### +### quarry.lua ### +### cables.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +HV= + +### forcefield.lua ### +### machine_base.lua ### +### tool_workshop.lua ### +### quarry.lua ### +### music_player.lua ### + +@1 Unpowered=@1 Sem energia +@1 Active=@1 Ativo + +### forcefield.lua ### +### supply_converter.lua ### + +Ignoring Mesecon Signal=Ignorar Sinaal de Mesecon +Controlled by Mesecon Signal=Controlado por Sinal de Mesecon + +### frames.lua ### + +Frame=Armação +Frame Motor=Motor de Armação +Template=Modelo +Template (replacing)=Modelo (recolocando) +Template Tool=Modelo de Ferramenta +Template Motor=Modelo de Motor + +### freezer.lua ### + +@1 Freezer= + +### freezer_recipes.lua ### + +Freezing= + +### generator.lua ### + +Fuel-Fired @1 Generator=Gerador Alimentado-por-Combustível @1 + +### generator.lua ### +### water_mill.lua ### +### hydro_turbine.lua ### +### geothermal.lua ### +### nuclear_reactor.lua ### + +@1 (@2%)= + +### geothermal.lua ### + +Geothermal @1 Generator=Gerador Geotermal @1 + +### grinder.lua ### + +@1 Grinder=Triturador @1 + +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### water_mill.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### cables.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### compressor.lua ### +### geothermal.lua ### +### alloy_furnace.lua ### + +LV= + +### grinder_recipes.lua ### + +Grinding=Triturando +@1 Dust=Pó de @1 +@1%-Fissile Uranium=Urânio @1%-Físsil + +### grindings.lua ### + +## Grinder Recipes +Sawdust= +@1 Grinding=@1 Triturando + +### injector.lua ### + +Self-Contained Injector=Injetor Auto-Contido +Stackwise=Por pilha +Itemwise=Por item +Public= +Private= +Machines: run injector= + +### items.lua ### + +# textdomain: technic +# Braziliam portuguese translation for technic +# Tradução portuguesa brasileira para technic +# By Sires +## Items +Silicon Wafer=Pastilha de Silício +Doped Silicon Wafer=Pastilha de Silício Dopada +Uranium Fuel=Combustivel de Urânio +Diamond Drill Head=Cabeça de Broca de Diamante +Blue Energy Crystal=Cristal de Energia Azul +Green Energy Crystal=Cristal de Energia Verde +Red Energy Crystal=Cristal de Energia Vermelho +Copper Coil=Bobina de Cobre +Low Voltage Transformer=Transformador de Baixa Voltagem +Medium Voltage Transformer=Transformador de Média Voltagem +High Voltage Transformer=Transformador de Alta Voltagem +Control Logic Unit=Unidade de Controle Lógico +Mixed Metal Ingot=Lingote de Metal Misturado +Composite Plate=Placa Composta +Copper Plate=Placa de Cobre +Carbon Plate=Placa de Carbono +Graphite=Grafite +Carbon Cloth=Recido de Carbono +Machine Casing= +Rubber Goo= +@1%-Fissile Uranium Ingot=Lingote de Urânio @1%-Físsil +@1%-Fissile Uranium Block=Bloco de Urânio @1%-Físsil + +### lighting.lua ### + +someone= +Sorry, @1 owns that spot.= +Yellow Glowlight (thick)= +Yellow Glowlight (thin)= +White Glowlight (thick)= +White Glowlight (thin)= +Yellow Glowlight (small cube)= +White Glowlight (small cube)= + +### machine_base.lua ### +### battery_box.lua ### +### tool_workshop.lua ### + +Upgrade Slots=Lugares para Melhoria + +### machine_base.lua ### +### tool_workshop.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +@1 Idle=Ócio + +### mining_drill.lua ### + +Single node.=Unico node. +3 nodes deep.=3 nodes de profundidade. +3 nodes wide.=3 nodes de largura. +3 nodes tall.=3 nodes de altura. +3x3 nodes.=3x3 nodes. +Use while sneaking to change Mining Drill Mk@1 modes.=Use enquanto esgueirando para mudar os modos da Broca de Mineração Nv@1. +Mining Drill Mk@1 Mode @2: = +Mining Drill Mk@1=Broca de Mineração Nv@1 +Mining Drill Mk@1 Mode @2=Broca de Mineração Nv@1 Modo @2 + +### mining_lasers.lua ### + +Mining Laser Mk@1=Laser de Mineração Nv@1 + +### music_player.lua ### + +@1 Music Player=Tocador de Música @1 +Stop= +Stopped=Parado +Current track @1=Música Atual @1 + +### nuclear_reactor.lua ### + +@1 Nuclear Reactor Core= +Nuclear Reactor Rod Compartment=Compartimento de Barra do Reator Nuclear +Start= +automatic Start= +Enable Digiline= +Save= +Digiline Remote Channel= +Error: You need to insert @1 pieces of Uranium Fuel.= +Error: The power plant seems to be built incorrectly.= +Machines: reactor melt-down check= +Start successful= + +### power_monitor.lua ### + +## Machine names +Power Monitor= +Machines: run power monitor= +# $1: Machine name $2: Supply $3: Demand +@1. Supply: @2 Demand: @3=@1. Suprimento: @2 Demanda: @3 + +### power_monitor.lua ### +### switching_station.lua ### +### battery_box.lua ### + +@1 Has No Network=@1 Não Tem Rede + +### power_radiator.lua ### + +@1 Power Radiator= +Machines: run power radiator= +@1 is unpowered= +@1 is powered (@2% of maximum power)= + +### power_radiator.lua ### +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### freezer.lua ### +### tool_workshop.lua ### +### hydro_turbine.lua ### +### cables.lua ### +### wind_mill.lua ### +### battery_box.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### centrifuge.lua ### +### compressor.lua ### +### alloy_furnace.lua ### + +MV= + +### prospector.lua ### + +Prospector= +Right-click to set target block type= +Current target:= +No target set= +May set new target:= +Set target= +No new target available= +Region cross section:= +Set region cross section:= +Region depth:= +Set region depth:= +Accuracy:= + +### quarry.lua ### + +@1 Quarry=Pedreira @1 +Digging not started=Escavação não começada +Digging finished=Escavação terminada +Purging cache= +Digging @1 m @2 machine=Escavando @1 m @2 da máquina +above=acima +below=abaixo +Restart= +@1 purging cache= +@1 Finished=@1 Acabou +Manually taking/removing from cache by hand is not possible. If you can't wait, restart or disable the quarry to start automatic purge.= + +### quarry.lua ### +### anchor.lua ### + +Radius:=Raio: +Disabled=Desativado +Enabled=Ativado + +### quarry.lua ### +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Disabled= + +### quarry.lua ### +### forcefield.lua ### +### nuclear_reactor.lua ### + +You are not allowed to edit this!= + +### radiation.lua ### + +## Radiation +Radiation damage= +Corium Source= +Flowing Corium= +Corium Bucket= +Chernobylite Block= +Corium: griefing= + +### solar_array.lua ### + +Arrayed Solar @1 Generator=Gerador Solar Equipado @1 +@1 Active (@2)= + +### solar_panel.lua ### + +Small Solar @1 Generator=Gerador Solar Pequeno @1 +@1 Active (@2 EU)=@1 Ativo (@2 EU) + +### sonic_screwdriver.lua ### + +Sonic Screwdriver (left-click rotates face, right-click rotates axis)=Chave de Fenda Sônica. + +### supply_converter.lua ### + +## Machine-specific +Input Power= +Supply Converter=Conversor de Energia +@1 (@2 @3 -> @4 @5)=@1 (@2 @3 -> @4 @5) +@1 Has Bad Cabling=@1 Tem Cabeamento Ruim + +### switching_station.lua ### + +Switching Station=Estação de Comutação +Channel= +Enables or disables technic's switching station ABM= +@1 Already Present= +@1. Supply: @2 Demand: @3= +Machines: timeout check= + +### tool_workshop.lua ### + +@1 Tool Workshop=Oficina de Ferramentas @1 + +### tree_tap.lua ### + +Tree Tap=Torneira de Árvore +Raw Latex=Latex bruto +Rubber Fiber=Fibra de Borracha +Tools: tree tap= + +### vacuum.lua ### + +Vacuum Cleaner= + +### water_mill.lua ### +### hydro_turbine.lua ### + +Hydro @1 Generator=Gerador Hidráulico @1 + +### wind_mill.lua ### + +Wind Mill Frame=Armação de Moinho de Vento +Wind @1 Generator=Gerador de Energia Eólica @1 +@1 Improperly Placed=@1 Colocado Inapropriadamente +Active @1 (@2 EU)= diff --git a/technic/locale/template.txt b/technic/locale/template.txt index 796b2d2..1dbaa1f 100644 --- a/technic/locale/template.txt +++ b/technic/locale/template.txt @@ -1,178 +1,475 @@ -# template.txt -# Template for translations of Technic +# textdomain: technic -## Misc -[Technic] Loaded in %f seconds = -## Items -Silicon Wafer = -Doped Silicon Wafer = -Enriched Uranium = -Uranium Fuel = -Diamond Drill Head = -Blue Energy Crystal = -Green Energy Crystal = -Red Energy Crystal = -Fine Copper Wire = -Fine Gold Wire = -Fine Silver Wire = -Copper Coil = -Electric Motor = -Low Voltage Transformer = -Medium Voltage Transformer = -High Voltage Transformer = -Control Logic Unit = -Mixed Metal Ingot = -Composite Plate = -Copper Plate = -Carbon Plate = -Graphite = -Carbon Cloth = -Raw Latex = -Rubber Fiber = -%.1f%%-Fissile Uranium Ingot = -%.1f%%-Fissile Uranium Block = +### alloy_furnace.lua ### -## Machine misc -Machine cannot be removed because it is not empty = -Inventory move disallowed due to protection = -# $1: Machine name (Includes tier) -@1 Active (@2 EU) = -%s Active = -%s Disabled = -%s Enabled = -%s Idle = -%s Improperly Placed = -%s is empty = -%s Unpowered = -%s Out Of Fuel = -%s Has Bad Cabling = -%s (Slave) = -%s Has No Network = -%s Finished = -Enable/Disable = -Range = -Upgrade Slots = -In: = -Out: = -Slot %d = -Itemwise = -Stackwise = -Ignoring Mesecon Signal = -Controlled by Mesecon Signal = -Owner: = -Unlocked = -Locked = -Radius: = -Enabled = -Disabled = +@1 Alloy Furnace= -## Machine names -# $1: Tier -%s Alloy Furnace = -%s Battery Box = -%s Cable = -%s Centrifuge = -%s Compressor = -%s Extractor = -%s Forcefield Emitter = -%s Furnace = -%s Grinder = -%s Music Player = -%s Quarry = -%s Tool Workshop = -Arrayed Solar %s Generator = -Fuel-Fired %s Generator = -Geothermal %s Generator = -Hydro %s Generator = -Nuclear %s Generator Core = -Small Solar %s Generator = -Wind %s Generator = -Self-Contained Injector = -Constructor Mk%d = -Frame = -Frame Motor = -Template = -Template (replacing) = -Template Motor = -Template Tool = -Battery Box = -Supply Converter = -Switching Station = -Fuel-Fired Alloy Furnace = -Fuel-Fired Furnace = -Wind Mill Frame = -Forcefield = -Nuclear Reactor Rod Compartment = -Administrative World Anchor = - -## Machine-specific -# $1: Pruduced EU -Charge = -Discharge = -Power level = -# $1: Tier $2: current_charge $3: max_charge -@1 Battery Box: @2/@3 = -# $1: Machine name $2: Supply $3: Demand -@1. Supply: @2 Demand: @3 = -Production at %d%% = -Choose Milling Program: = -Slim Elements half / normal height: = -Current track %s = -Stopped = -Keeping %d/%d map blocks loaded = -Digging not started = -Digging finished = -Digging %d m above machine = -Digging %d m below machine = -@1 (@2 @3 -> @4 @5) = - - -## Grinder Recipes -# $1: Name -%s Dust = -Akalin = -Alatro = -Arol = -Brass = -Bronze = -Carbon Steel = -Cast Iron = -Chromium = -Coal = -Copper = -Gold = -Mithril = -Silver = -Stainless Steel = -Talinite = -Tin = -Wrought Iron = -Zinc = -%.1f%%-Fissile Uranium = - -## Tools -RE Battery = -Water Can = -Lava Can = -Chainsaw = -Flashlight = -3 nodes deep. = -3 nodes tall. = -3 nodes wide. = -3x3 nodes. = -Use while sneaking to change Mining Drill Mk%d modes. = -Mining Drill Mk%d Mode %d = -Mining Drill Mk%d = -Mining Laser Mk%d = -Single node. = -Sonic Screwdriver = -Tree Tap = +### alloy_recipes.lua ### ## Craft descriptions -Alloy cooking = -Grinding = -Compressing = -Extracting = -Separating = +Alloying= + +### anchor.lua ### + +Administrative World Anchor= +Owner: @1= +Unlocked= +Locked= +Keeping @1/@2 map blocks loaded= + +### battery_box.lua ### + +## Tools +RE Battery= +Allow splitting incoming 'charge' stacks from tubes= +Allow splitting incoming 'discharge' stacks= +@1 Battery Box= +Charge= +Discharge= +Power level= +edit Channel= +@1 Battery Box: @2 / @3= + +### cables.lua ### + +@1 Cable= +@1 Cable Plate= + +### cans.lua ### + +Water Can= +Lava Can= +River Water Can= + +### centrifuge.lua ### + +@1 Centrifuge= + +### centrifuge_recipes.lua ### + +Separating= + +### chainsaw.lua ### + +Chainsaw= + +### coal_alloy_furnace.lua ### + +Fuel-Fired Alloy Furnace= +Machines: run coal alloy furnace= +@1 Active (@2%)= +@1 is empty= + +### coal_alloy_furnace.lua ### +### generator.lua ### + +@1 Out Of Fuel= + +### coal_furnace.lua ### + +Fuel-Fired Furnace= + +### common.lua ### + +## Machine misc +Machine cannot be removed because it is not empty= +Inventory move disallowed due to protection= + +### compressor.lua ### + +@1 Compressor= + +### compressor_recipes.lua ### + +Compressing= + +### constructor.lua ### + +Constructor Mk@1= +Slot @1= + +### electric_furnace.lua ### + +@1 Furnace= + +### extractor.lua ### + +@1 Extractor= + +### extractor_recipes.lua ### + +Extracting= + +### flashlight.lua ### + +Flashlight= + +### forcefield.lua ### + +Range= +Sphere= +Cube= +@1 Forcefield Emitter= +@1 Forcefield= + +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Enabled= + +### forcefield.lua ### +### battery_box.lua ### +### supply_converter.lua ### + +Digiline Channel= + +### forcefield.lua ### +### generator.lua ### +### quarry.lua ### +### cables.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +HV= + +### forcefield.lua ### +### machine_base.lua ### +### tool_workshop.lua ### +### quarry.lua ### +### music_player.lua ### + +@1 Unpowered= +@1 Active= + +### forcefield.lua ### +### supply_converter.lua ### + +Ignoring Mesecon Signal= +Controlled by Mesecon Signal= + +### frames.lua ### + +Frame= +Frame Motor= +Template= +Template (replacing)= +Template Tool= +Template Motor= + +### freezer.lua ### + +@1 Freezer= + +### freezer_recipes.lua ### + +Freezing= + +### generator.lua ### + +Fuel-Fired @1 Generator= + +### generator.lua ### +### water_mill.lua ### +### hydro_turbine.lua ### +### geothermal.lua ### +### nuclear_reactor.lua ### + +@1 (@2%)= + +### geothermal.lua ### + +Geothermal @1 Generator= + +### grinder.lua ### + +@1 Grinder= + +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### water_mill.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### cables.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### compressor.lua ### +### geothermal.lua ### +### alloy_furnace.lua ### + +LV= + +### grinder_recipes.lua ### + +Grinding= +@1 Dust= +@1%-Fissile Uranium= + +### grindings.lua ### + +## Grinder Recipes +Sawdust= +@1 Grinding= + +### injector.lua ### + +Self-Contained Injector= +Stackwise= +Itemwise= +Public= +Private= +Machines: run injector= + +### items.lua ### + +# textdomain: technic +# template.txt +# Template for translations of Technic +## Items +Silicon Wafer= +Doped Silicon Wafer= +Uranium Fuel= +Diamond Drill Head= +Blue Energy Crystal= +Green Energy Crystal= +Red Energy Crystal= +Copper Coil= +Low Voltage Transformer= +Medium Voltage Transformer= +High Voltage Transformer= +Control Logic Unit= +Mixed Metal Ingot= +Composite Plate= +Copper Plate= +Carbon Plate= +Graphite= +Carbon Cloth= +Machine Casing= +Rubber Goo= +@1%-Fissile Uranium Ingot= +@1%-Fissile Uranium Block= + +### lighting.lua ### + +someone= +Sorry, @1 owns that spot.= +Yellow Glowlight (thick)= +Yellow Glowlight (thin)= +White Glowlight (thick)= +White Glowlight (thin)= +Yellow Glowlight (small cube)= +White Glowlight (small cube)= + +### machine_base.lua ### +### battery_box.lua ### +### tool_workshop.lua ### + +Upgrade Slots= + +### machine_base.lua ### +### tool_workshop.lua ### +### music_player.lua ### +### solar_panel.lua ### +### battery_box.lua ### +### solar_array.lua ### +### nuclear_reactor.lua ### + +@1 Idle= + +### mining_drill.lua ### + +Single node.= +3 nodes deep.= +3 nodes wide.= +3 nodes tall.= +3x3 nodes.= +Use while sneaking to change Mining Drill Mk@1 modes.= +Mining Drill Mk@1 Mode @2: = +Mining Drill Mk@1= +Mining Drill Mk@1 Mode @2= + +### mining_lasers.lua ### + +Mining Laser Mk@1= + +### music_player.lua ### + +@1 Music Player= +Stop= +Stopped= +Current track @1= + +### nuclear_reactor.lua ### + +@1 Nuclear Reactor Core= +Nuclear Reactor Rod Compartment= +Start= +automatic Start= +Enable Digiline= +Save= +Digiline Remote Channel= +Error: You need to insert @1 pieces of Uranium Fuel.= +Error: The power plant seems to be built incorrectly.= +Machines: reactor melt-down check= +Start successful= + +### power_monitor.lua ### + +## Machine names +Power Monitor= +Machines: run power monitor= +#@1: Machine name @2: Supply @3: Demand +@1. Supply: @2 Demand: @3= + +### power_monitor.lua ### +### switching_station.lua ### +### battery_box.lua ### + +@1 Has No Network= + +### power_radiator.lua ### + +@1 Power Radiator= +Machines: run power radiator= +@1 is unpowered= +@1 is powered (@2% of maximum power)= + +### power_radiator.lua ### +### grinder.lua ### +### generator.lua ### +### extractor.lua ### +### freezer.lua ### +### tool_workshop.lua ### +### hydro_turbine.lua ### +### cables.lua ### +### wind_mill.lua ### +### battery_box.lua ### +### electric_furnace.lua ### +### solar_array.lua ### +### centrifuge.lua ### +### compressor.lua ### +### alloy_furnace.lua ### + +MV= + +### prospector.lua ### + +Prospector= +Right-click to set target block type= +Current target:= +No target set= +May set new target:= +Set target= +No new target available= +Region cross section:= +Set region cross section:= +Region depth:= +Set region depth:= +Accuracy:= + +### quarry.lua ### + +@1 Quarry= +Digging not started= +Digging finished= +Purging cache= +Digging @1 m @2 machine= +above= +below= +Restart= +@1 purging cache= +@1 Finished= +Manually taking/removing from cache by hand is not possible. If you can't wait, restart or disable the quarry to start automatic purge.= + +### quarry.lua ### +### anchor.lua ### + +Radius:= +Disabled= +Enabled= + +### quarry.lua ### +### forcefield.lua ### +### anchor.lua ### +### supply_converter.lua ### + +@1 Disabled= + +### quarry.lua ### +### forcefield.lua ### +### nuclear_reactor.lua ### + +You are not allowed to edit this!= + +### radiation.lua ### + +## Radiation +Radiation damage= +Corium Source= +Flowing Corium= +Corium Bucket= +Chernobylite Block= +Corium: griefing= + +### solar_array.lua ### + +Arrayed Solar @1 Generator= +@1 Active (@2)= + +### solar_panel.lua ### + +Small Solar @1 Generator= +@1 Active (@2 EU)= + +### sonic_screwdriver.lua ### + +Sonic Screwdriver (left-click rotates face, right-click rotates axis)= + +### supply_converter.lua ### + +## Machine-specific +Input Power= +Supply Converter= +@1 (@2 @3 -> @4 @5)= +@1 Has Bad Cabling= + +### switching_station.lua ### + +Switching Station= +Channel= +Enables or disables technic's switching station ABM= +@1 Already Present= +@1. Supply: @2 Demand: @3= +Machines: timeout check= + +### tool_workshop.lua ### + +@1 Tool Workshop= + +### tree_tap.lua ### + +Tree Tap= +Raw Latex= +Rubber Fiber= +Tools: tree tap= + +### vacuum.lua ### + +Vacuum Cleaner= + +### water_mill.lua ### +### hydro_turbine.lua ### + +Hydro @1 Generator= + +### wind_mill.lua ### + +Wind Mill Frame= +Wind @1 Generator= +@1 Improperly Placed= +Active @1 (@2 EU)= diff --git a/technic/machines/HV/battery_box.lua b/technic/machines/HV/battery_box.lua index 89c65da..b1f76d5 100644 --- a/technic/machines/HV/battery_box.lua +++ b/technic/machines/HV/battery_box.lua @@ -1,5 +1,5 @@ -- HV battery box - +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:hv_battery_box0', recipe = { @@ -18,5 +18,6 @@ technic.register_battery_box({ discharge_step = 40000, upgrade = 1, tube = 1, + tier_localized = S("HV") }) diff --git a/technic/machines/HV/cables.lua b/technic/machines/HV/cables.lua index e084cf0..00cb89f 100644 --- a/technic/machines/HV/cables.lua +++ b/technic/machines/HV/cables.lua @@ -1,4 +1,4 @@ - +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:hv_cable 3', recipe = { @@ -8,5 +8,5 @@ minetest.register_craft({ } }) -technic.register_cable("HV", 3/16) +technic.register_cable(S("HV"), 3/16, "HV") diff --git a/technic/machines/HV/forcefield.lua b/technic/machines/HV/forcefield.lua index 29c023d..e0590ea 100644 --- a/technic/machines/HV/forcefield.lua +++ b/technic/machines/HV/forcefield.lua @@ -10,14 +10,14 @@ local digilines_path = minetest.get_modpath("digilines") local forcefield_power_drain = 10 -local S = technic.getter +local S = minetest.get_translator("technic") local cable_entry = "^technic_cable_connection_overlay.png" minetest.register_craft({ output = "technic:forcefield_emitter_off", recipe = { - {"default:mese", "basic_materials:motor", "default:mese" }, + {"default:mese", "basic_materials:motor", "default:mese" }, {"technic:deployer_off", "technic:machine_casing", "technic:deployer_off"}, {"default:mese", "technic:hv_cable", "default:mese" }, } @@ -92,7 +92,7 @@ local function set_forcefield_formspec(meta) local formspec if digilines_path then formspec = "size[5,3.25]".. - "field[0.3,3;5,1;channel;Digiline Channel;"..meta:get_string("channel").."]" + "field[0.3,3;5,1;channel;"..S("Digiline Channel")..";"..meta:get_string("channel").."]" else formspec = "size[5,2.25]" end @@ -113,9 +113,9 @@ local function set_forcefield_formspec(meta) formspec = formspec.."button[0,1;5,1;mesecon_mode_0;"..S("Controlled by Mesecon Signal").."]" end if meta:get_int("enabled") == 0 then - formspec = formspec.."button[0,1.75;5,1;enable;"..S("%s Disabled"):format(S("%s Forcefield Emitter"):format("HV")).."]" + formspec = formspec.."button[0,1.75;5,1;enable;"..S("@1 Disabled", S("@1 Forcefield Emitter", S("HV"))).."]" else - formspec = formspec.."button[0,1.75;5,1;disable;"..S("%s Enabled"):format(S("%s Forcefield Emitter"):format("HV")).."]" + formspec = formspec.."button[0,1.75;5,1;disable;"..S("@1 Enabled", S("@1 Forcefield Emitter", S("HV"))).."]" end meta:set_string("formspec", formspec) end @@ -123,7 +123,7 @@ end local forcefield_receive_fields = function(pos, formname, fields, sender) local player_name = sender:get_player_name() if minetest.is_protected(pos, player_name) then - minetest.chat_send_player(player_name, "You are not allowed to edit this!") + minetest.chat_send_player(player_name, S("You are not allowed to edit this!")) minetest.record_protection_violation(pos, player_name) return end @@ -246,7 +246,7 @@ local function run(pos, node) local eu_input = meta:get_int("HV_EU_input") local enabled = meta:get_int("enabled") ~= 0 and (meta:get_int("mesecon_mode") == 0 or meta:get_int("mesecon_effect") ~= 0) - local machine_name = S("%s Forcefield Emitter"):format("HV") + local machine_name = S("@1 Forcefield Emitter", S("HV")) local range = meta:get_int("range") local power_requirement @@ -261,14 +261,14 @@ local function run(pos, node) if node.name == "technic:forcefield_emitter_on" then update_forcefield(pos, meta, false) technic.swap_node(pos, "technic:forcefield_emitter_off") - meta:set_string("infotext", S("%s Disabled"):format(machine_name)) + meta:set_string("infotext", S("@1 Disabled", machine_name)) end meta:set_int("HV_EU_demand", 0) return end meta:set_int("HV_EU_demand", power_requirement) if eu_input < power_requirement then - meta:set_string("infotext", S("%s Unpowered"):format(machine_name)) + meta:set_string("infotext", S("@1 Unpowered", machine_name)) if node.name == "technic:forcefield_emitter_on" then update_forcefield(pos, meta, false) technic.swap_node(pos, "technic:forcefield_emitter_off") @@ -276,14 +276,14 @@ local function run(pos, node) elseif eu_input >= power_requirement then if node.name == "technic:forcefield_emitter_off" then technic.swap_node(pos, "technic:forcefield_emitter_on") - meta:set_string("infotext", S("%s Active"):format(machine_name)) + meta:set_string("infotext", S("@1 Active", machine_name)) end update_forcefield(pos, meta, true) end end minetest.register_node("technic:forcefield_emitter_off", { - description = S("%s Forcefield Emitter"):format("HV"), + description = S("@1 Forcefield Emitter", S("HV")), tiles = { "technic_forcefield_emitter_off.png", "technic_machine_bottom.png"..cable_entry, @@ -305,7 +305,7 @@ minetest.register_node("technic:forcefield_emitter_off", { if digilines_path then meta:set_string("channel", "forcefield"..minetest.pos_to_string(pos)) end - meta:set_string("infotext", S("%s Forcefield Emitter"):format("HV")) + meta:set_string("infotext", S("@1 Forcefield Emitter", S("HV"))) set_forcefield_formspec(meta) end, mesecons = mesecons, @@ -314,7 +314,7 @@ minetest.register_node("technic:forcefield_emitter_off", { }) minetest.register_node("technic:forcefield_emitter_on", { - description = S("%s Forcefield Emitter"):format("HV"), + description = S("@1 Forcefield Emitter", S("HV")), tiles = { "technic_forcefield_emitter_on.png", "technic_machine_bottom.png"..cable_entry, @@ -346,7 +346,7 @@ minetest.register_node("technic:forcefield_emitter_on", { }) minetest.register_node("technic:forcefield", { - description = S("%s Forcefield"):format("HV"), + description = S("@1 Forcefield", S("HV")), sunlight_propagates = true, drawtype = "glasslike", groups = {not_in_creative_inventory=1}, diff --git a/technic/machines/HV/generator.lua b/technic/machines/HV/generator.lua index 3fb494b..e14382f 100644 --- a/technic/machines/HV/generator.lua +++ b/technic/machines/HV/generator.lua @@ -1,3 +1,4 @@ +local S = minetest.get_translator("technic") minetest.register_alias("hv_generator", "technic:hv_generator") minetest.register_craft({ @@ -9,5 +10,5 @@ minetest.register_craft({ } }) -technic.register_generator({tier="HV", tube=1, supply=1200}) +technic.register_generator({tier="HV", tube=1, supply=1200, tier_localized=S("HV")}) diff --git a/technic/machines/HV/init.lua b/technic/machines/HV/init.lua index d7136b4..edf0a4f 100644 --- a/technic/machines/HV/init.lua +++ b/technic/machines/HV/init.lua @@ -1,5 +1,5 @@ -technic.register_tier("HV", "High Voltage") +technic.register_tier("HV") local path = technic.modpath.."/machines/HV" diff --git a/technic/machines/HV/nuclear_reactor.lua b/technic/machines/HV/nuclear_reactor.lua index abaeb74..731f05a 100644 --- a/technic/machines/HV/nuclear_reactor.lua +++ b/technic/machines/HV/nuclear_reactor.lua @@ -15,7 +15,7 @@ local fuel_type = "technic:uranium_fuel" -- The reactor burns this local digiline_meltdown = technic.config:get_bool("enable_nuclear_reactor_digiline_selfdestruct") local digiline_remote_path = minetest.get_modpath("digiline_remote") -local S = technic.getter +local S = minetest.get_translator("technic") local reactor_desc = S("@1 Nuclear Reactor Core", S("HV")) local cable_entry = "^technic_cable_connection_overlay.png" @@ -36,19 +36,19 @@ local function make_reactor_formspec(meta) "list[current_name;src;2,1;3,2;]".. "list[current_player;main;0,5;8,4;]".. "listring[]".. - "button[5.5,1.5;2,1;start;Start]".. - "checkbox[5.5,2.5;autostart;automatic Start;"..meta:get_string("autostart").."]" + "button[5.5,1.5;2,1;start;"..S("Start").."]".. + "checkbox[5.5,2.5;autostart;"..S("automatic Start")..";"..meta:get_string("autostart").."]" if not digiline_remote_path then return f end local digiline_enabled = meta:get_string("enable_digiline") - f = f.."checkbox[0.5,2.8;enable_digiline;Enable Digiline;"..digiline_enabled.."]" + f = f.."checkbox[0.5,2.8;enable_digiline;"..S("Enable Digiline")..";"..digiline_enabled.."]" if digiline_enabled ~= "true" then return f end return f.. - "button_exit[4.6,3.69;2,1;save;Save]".. - "field[1,4;4,1;remote_channel;Digiline Remote Channel;${remote_channel}]" + "button_exit[4.6,3.69;2,1;save;"..S("Save").."]".. + "field[1,4;4,1;remote_channel;"..S("Digiline Remote Channel")..";${remote_channel}]" end local SS_OFF = 0 @@ -218,7 +218,7 @@ end local function start_reactor(pos, meta) local correct_fuel_count = 6 - local msg_fuel_missing = "Error: You need to insert " .. correct_fuel_count .. " pieces of Uranium Fuel." + local msg_fuel_missing = S("Error: You need to insert @1 pieces of Uranium Fuel.", correct_fuel_count) if minetest.get_node(pos).name ~= "technic:hv_nuclear_reactor_core" then return msg_fuel_missing @@ -241,7 +241,7 @@ local function start_reactor(pos, meta) -- Check that the reactor is complete if reactor_structure_badness(pos) ~= 0 then - return "Error: The power plant seems to be built incorrectly." + return S("Error: The power plant seems to be built incorrectly.") end meta:set_int("burn_time", 1) @@ -257,7 +257,7 @@ end minetest.register_abm({ - label = "Machines: reactor melt-down check", + label = S("Machines: reactor melt-down check"), nodenames = {"technic:hv_nuclear_reactor_core_active"}, interval = 4, chance = 1, @@ -297,7 +297,7 @@ local function run(pos, node) end meta:set_int("HV_EU_supply", 0) meta:set_int("burn_time", 0) - meta:set_string("infotext", S("%s Idle"):format(reactor_desc)) + meta:set_string("infotext", S("@1 Idle", reactor_desc)) technic.swap_node(pos, "technic:hv_nuclear_reactor_core") meta:set_int("structure_accumulated_badness", 0) siren_clear(pos, meta) @@ -305,7 +305,7 @@ local function run(pos, node) burn_time = burn_time + 1 meta:set_int("burn_time", burn_time) local percent = math.floor(burn_time / burn_ticks * 100) - meta:set_string("infotext", reactor_desc.." ("..percent.."%)") + meta:set_string("infotext", S("@1 (@2%)", reactor_desc, percent)) meta:set_int("HV_EU_supply", power_supply) end end @@ -313,7 +313,7 @@ end local nuclear_reactor_receive_fields = function(pos, formname, fields, sender) local player_name = sender:get_player_name() if minetest.is_protected(pos, player_name) then - minetest.chat_send_player(player_name, "You are not allowed to edit this!") + minetest.chat_send_player(player_name, S("You are not allowed to edit this!")) minetest.record_protection_violation(pos, player_name) return end @@ -325,7 +325,7 @@ local nuclear_reactor_receive_fields = function(pos, formname, fields, sender) if fields.start then local start_error_msg = start_reactor(pos, meta) if not start_error_msg then - minetest.chat_send_player(player_name, "Start successful") + minetest.chat_send_player(player_name, S("Start successful")) else minetest.chat_send_player(player_name, start_error_msg) end diff --git a/technic/machines/HV/quarry.lua b/technic/machines/HV/quarry.lua index 9cf378f..31541b0 100644 --- a/technic/machines/HV/quarry.lua +++ b/technic/machines/HV/quarry.lua @@ -1,5 +1,5 @@ -local S = technic.getter +local S = minetest.get_translator("technic") local tube_entry = "^pipeworks_tube_connection_metallic.png" local cable_entry = "^technic_cable_connection_overlay.png" @@ -22,7 +22,7 @@ local function set_quarry_formspec(meta) local formspec = "size[6,4.3]".. "list[context;cache;0,1;4,3;]".. "item_image[4.8,0;1,1;technic:quarry]".. - "label[0,0.2;"..S("%s Quarry"):format("HV").."]".. + "label[0,0.2;"..S("@1 Quarry", S("HV")).."]".. "field[4.3,3.5;2,1;size;"..S("Radius:")..";"..radius.."]" if meta:get_int("enabled") == 0 then formspec = formspec.."button[4,1;2,1;enable;"..S("Disabled").."]" @@ -36,8 +36,8 @@ local function set_quarry_formspec(meta) nd == 0 and S("Digging not started") or (rel_y < -quarry_max_depth and S("Digging finished") or (meta:get_int("purge_on") == 1 and S("Purging cache") or - S("Digging %d m "..(rel_y > 0 and "above" or "below").." machine") - :format(math.abs(rel_y)))) + S("Digging @1 m @2 machine", string.format("%d", math.abs(rel_y)), + (rel_y > 0) and S("above") or S("below")))) ).."]" formspec = formspec.."button[4,2;2,1;restart;"..S("Restart").."]" meta:set_string("formspec", formspec) @@ -46,15 +46,17 @@ end local function set_quarry_demand(meta) local radius = meta:get_int("size") local diameter = radius*2 + 1 - local machine_name = S("%s Quarry"):format("HV") + local machine_name = S("@1 Quarry", S("HV")) if meta:get_int("enabled") == 0 or meta:get_int("purge_on") == 1 then - meta:set_string("infotext", S(meta:get_int("purge_on") == 1 and "%s purging cache" or "%s Disabled"):format(machine_name)) + meta:set_string("infotext", meta:get_int("purge_on") == 1 and S("@1 purging cache", machine_name) + or S("@1 Disabled", machine_name)) meta:set_int("HV_EU_demand", 0) elseif meta:get_int("dug") == diameter*diameter * (quarry_dig_above_nodes+1+quarry_max_depth) then - meta:set_string("infotext", S("%s Finished"):format(machine_name)) + meta:set_string("infotext", S("@1 Finished", machine_name)) meta:set_int("HV_EU_demand", 0) else - meta:set_string("infotext", S(meta:get_int("HV_EU_input") >= quarry_demand and "%s Active" or "%s Unpowered"):format(machine_name)) + meta:set_string("infotext", meta:get_int("HV_EU_input") >= quarry_demand and S("@1 Active", machine_name) + or S("@1 Unpowered", machine_name)) meta:set_int("HV_EU_demand", quarry_demand) end end @@ -62,7 +64,7 @@ end local function quarry_receive_fields(pos, formname, fields, sender) local player_name = sender:get_player_name() if minetest.is_protected(pos, player_name) then - minetest.chat_send_player(player_name, "You are not allowed to edit this!") + minetest.chat_send_player(player_name, S("You are not allowed to edit this!")) minetest.record_protection_violation(pos, player_name) return end @@ -215,7 +217,7 @@ local function send_move_error(player) end minetest.register_node("technic:quarry", { - description = S("%s Quarry"):format("HV"), + description = S("@1 Quarry", S("HV")), tiles = { "technic_carbon_steel_block.png"..tube_entry, "technic_carbon_steel_block.png"..cable_entry, @@ -242,7 +244,7 @@ minetest.register_node("technic:quarry", { }, on_construct = function(pos) local meta = minetest.get_meta(pos) - meta:set_string("infotext", S("%s Quarry"):format("HV")) + meta:set_string("infotext", S("@1 Quarry", S("HV"))) meta:set_int("size", 4) set_quarry_formspec(meta) set_quarry_demand(meta) diff --git a/technic/machines/HV/solar_array.lua b/technic/machines/HV/solar_array.lua index c7de7c8..6bcaed3 100644 --- a/technic/machines/HV/solar_array.lua +++ b/technic/machines/HV/solar_array.lua @@ -1,6 +1,8 @@ -- The high voltage solar array is an assembly of medium voltage arrays. -- Solar arrays are not able to store large amounts of energy. +local S = minetest.get_translator("technic") + minetest.register_craft({ output = 'technic:solar_array_hv 1', recipe = { @@ -10,5 +12,5 @@ minetest.register_craft({ } }) -technic.register_solar_array({tier="HV", power=100}) +technic.register_solar_array({tier="HV", power=100, tier_localized=S("HV")}) diff --git a/technic/machines/LV/alloy_furnace.lua b/technic/machines/LV/alloy_furnace.lua index 5e4f7c4..a644147 100644 --- a/technic/machines/LV/alloy_furnace.lua +++ b/technic/machines/LV/alloy_furnace.lua @@ -1,4 +1,5 @@ -- LV Alloy furnace +local S = minetest.get_translator("technic") -- FIXME: kpoppel: I'd like to introduce an induction heating element here... minetest.register_craft({ @@ -10,5 +11,5 @@ minetest.register_craft({ } }) -technic.register_alloy_furnace({tier = "LV", speed = 1, demand = {300}}) +technic.register_alloy_furnace({tier = "LV", speed = 1, demand = {300}, tier_localized=S("LV")}) diff --git a/technic/machines/LV/battery_box.lua b/technic/machines/LV/battery_box.lua index bf7f846..2f62349 100644 --- a/technic/machines/LV/battery_box.lua +++ b/technic/machines/LV/battery_box.lua @@ -1,4 +1,5 @@ -- LV Battery box +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:lv_battery_box0', @@ -16,5 +17,6 @@ technic.register_battery_box({ discharge_rate = 4000, charge_step = 500, discharge_step = 800, + tier_localized = S("LV"), }) diff --git a/technic/machines/LV/cables.lua b/technic/machines/LV/cables.lua index 69c0a24..7aed160 100644 --- a/technic/machines/LV/cables.lua +++ b/technic/machines/LV/cables.lua @@ -1,4 +1,4 @@ - +local S = minetest.get_translator("technic") minetest.register_alias("lv_cable", "technic:lv_cable") minetest.register_craft({ @@ -10,5 +10,5 @@ minetest.register_craft({ } }) -technic.register_cable("LV", 2/16) +technic.register_cable(S("LV"), 2/16, "LV") diff --git a/technic/machines/LV/compressor.lua b/technic/machines/LV/compressor.lua index 84eb4c5..fc5af79 100644 --- a/technic/machines/LV/compressor.lua +++ b/technic/machines/LV/compressor.lua @@ -1,4 +1,4 @@ - +local S = minetest.get_translator("technic") minetest.register_alias("compressor", "technic:lv_compressor") minetest.register_craft({ @@ -14,4 +14,4 @@ minetest.register_craft({ }, }) -technic.register_compressor({tier = "LV", demand = {300}, speed = 1}) +technic.register_compressor({tier = "LV", demand = {300}, speed = 1, tier_localized=S("LV")}) diff --git a/technic/machines/LV/electric_furnace.lua b/technic/machines/LV/electric_furnace.lua index 768f04a..88d3da8 100644 --- a/technic/machines/LV/electric_furnace.lua +++ b/technic/machines/LV/electric_furnace.lua @@ -2,6 +2,7 @@ -- This is a faster version of the stone furnace which runs on EUs -- FIXME: kpoppel I'd like to introduce an induction heating element here also +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:electric_furnace', recipe = { @@ -11,6 +12,6 @@ minetest.register_craft({ } }) -technic.register_electric_furnace({tier="LV", demand={300}, speed = 2}) +technic.register_electric_furnace({tier="LV", demand={300}, speed = 2, tier_localized=S("LV")}) diff --git a/technic/machines/LV/extractor.lua b/technic/machines/LV/extractor.lua index 123ad05..cb23c25 100644 --- a/technic/machines/LV/extractor.lua +++ b/technic/machines/LV/extractor.lua @@ -1,4 +1,4 @@ - +local S = minetest.get_translator("technic") minetest.register_alias("extractor", "technic:lv_extractor") minetest.register_craft({ @@ -10,4 +10,4 @@ minetest.register_craft({ } }) -technic.register_extractor({tier = "LV", demand = {300}, speed = 1}) +technic.register_extractor({tier = "LV", demand = {300}, speed = 1, tier_localized = S("LV")}) diff --git a/technic/machines/LV/generator.lua b/technic/machines/LV/generator.lua index dc9815f..495cfba 100644 --- a/technic/machines/LV/generator.lua +++ b/technic/machines/LV/generator.lua @@ -3,6 +3,7 @@ -- Inefficient and expensive in fuel (200EU per tick) -- Also only allows for LV machinery to run. +local S = minetest.get_translator("technic") minetest.register_alias("lv_generator", "technic:lv_generator") minetest.register_craft({ @@ -14,5 +15,5 @@ minetest.register_craft({ } }) -technic.register_generator({tier="LV", supply=200}) +technic.register_generator({tier="LV", supply=200, tier_localized=S("LV")}) diff --git a/technic/machines/LV/geothermal.lua b/technic/machines/LV/geothermal.lua index abe6951..bb4b30b 100644 --- a/technic/machines/LV/geothermal.lua +++ b/technic/machines/LV/geothermal.lua @@ -5,7 +5,7 @@ minetest.register_alias("geothermal", "technic:geothermal") -local S = technic.getter +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:geothermal', @@ -21,7 +21,7 @@ minetest.register_craft({ }) minetest.register_craftitem("technic:geothermal", { - description = S("Geothermal %s Generator"):format("LV"), + description = S("Geothermal @1 Generator", S("LV")), }) local check_node_around = function(pos) @@ -70,7 +70,7 @@ local run = function(pos, node) end meta:set_string("infotext", - S("Geothermal %s Generator"):format("LV").." ("..production_level.."%)") + S("@1 (@2%)", S("Geothermal @1 Generator", S("LV")), production_level)) if production_level > 0 and minetest.get_node(pos).name == "technic:geothermal" then technic.swap_node (pos, "technic:geothermal_active") @@ -83,7 +83,7 @@ local run = function(pos, node) end minetest.register_node("technic:geothermal", { - description = S("Geothermal %s Generator"):format("LV"), + description = S("Geothermal @1 Generator", S("LV")), tiles = {"technic_geothermal_top.png", "technic_machine_bottom.png", "technic_geothermal_side.png", "technic_geothermal_side.png", "technic_geothermal_side.png", "technic_geothermal_side.png"}, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, @@ -93,14 +93,14 @@ minetest.register_node("technic:geothermal", { sounds = default.node_sound_wood_defaults(), on_construct = function(pos) local meta = minetest.get_meta(pos) - meta:set_string("infotext", S("Geothermal %s Generator"):format("LV")) + meta:set_string("infotext", S("Geothermal @1 Generator", S("LV"))) meta:set_int("LV_EU_supply", 0) end, technic_run = run, }) minetest.register_node("technic:geothermal_active", { - description = S("Geothermal %s Generator"):format("LV"), + description = S("Geothermal @1 Generator", S("LV")), tiles = {"technic_geothermal_top_active.png", "technic_machine_bottom.png", "technic_geothermal_side.png", "technic_geothermal_side.png", "technic_geothermal_side.png", "technic_geothermal_side.png"}, paramtype2 = "facedir", diff --git a/technic/machines/LV/grinder.lua b/technic/machines/LV/grinder.lua index 9e45bf4..e902f93 100644 --- a/technic/machines/LV/grinder.lua +++ b/technic/machines/LV/grinder.lua @@ -1,4 +1,4 @@ - +local S = minetest.get_translator("technic") minetest.register_alias("grinder", "technic:lv_grinder") minetest.register_craft({ output = 'technic:lv_grinder', @@ -9,5 +9,5 @@ minetest.register_craft({ } }) -technic.register_grinder({tier="LV", demand={200}, speed=1}) +technic.register_grinder({tier="LV", demand={200}, speed=1, tier_localized=S("LV")}) diff --git a/technic/machines/LV/init.lua b/technic/machines/LV/init.lua index fde684d..b258897 100644 --- a/technic/machines/LV/init.lua +++ b/technic/machines/LV/init.lua @@ -1,5 +1,5 @@ -technic.register_tier("LV", "Low Voltage") +technic.register_tier("LV") local path = technic.modpath.."/machines/LV" diff --git a/technic/machines/LV/music_player.lua b/technic/machines/LV/music_player.lua index 3bbb441..b6a15fc 100644 --- a/technic/machines/LV/music_player.lua +++ b/technic/machines/LV/music_player.lua @@ -1,7 +1,7 @@ -- LV Music player. -- The player can play music. But it is high ampage! -local S = technic.getter +local S = minetest.get_translator("technic") minetest.register_alias("music_player", "technic:music_player") minetest.register_craft({ @@ -23,7 +23,7 @@ end local run = function(pos, node) local meta = minetest.get_meta(pos) local eu_input = meta:get_int("LV_EU_input") - local machine_name = S("%s Music Player"):format("LV") + local machine_name = S("@1 Music Player", S("LV")) local demand = 150 local current_track = meta:get_int("current_track") @@ -38,19 +38,19 @@ local run = function(pos, node) end if meta:get_int("active") == 0 then - meta:set_string("infotext", S("%s Idle"):format(machine_name)) + meta:set_string("infotext", S("@1 Idle", machine_name)) meta:set_int("LV_EU_demand", 0) return end if eu_input < demand then - meta:set_string("infotext", S("%s Unpowered"):format(machine_name)) + meta:set_string("infotext", S("@1 Unpowered", machine_name)) if music_handle then minetest.sound_stop(music_handle) music_handle = nil end elseif eu_input >= demand then - meta:set_string("infotext", S("%s Active"):format(machine_name)) + meta:set_string("infotext", S("@1 Active", machine_name)) if not music_handle then music_handle = play_track(pos, current_track) end @@ -72,7 +72,7 @@ local function set_display(meta) meta:set_string("formspec", "size[4,4.5]".. "item_image[0,0;1,1;technic:music_player]".. - "label[1,0;"..S("%s Music Player"):format("LV").."]".. + "label[1,0;"..S("@1 Music Player", S("LV")).."]".. "button[0,1;1,1;track1;1]".. "button[1,1;1,1;track2;2]".. "button[2,1;1,1;track3;3]".. @@ -82,15 +82,15 @@ local function set_display(meta) "button[0,3;1,1;track7;7]".. "button[1,3;1,1;track8;8]".. "button[2,3;1,1;track9;9]".. - "button[3,1;1,1;stop;Stop]".. + "button[3,1;1,1;stop;"..S("Stop").."]".. "label[0,4;"..minetest.formspec_escape( meta:get_int("active") == 0 and S("Stopped") or - S("Current track %s"):format(meta:get_int("current_track"))).."]") + S("Current track @1", meta:get_int("current_track"))).."]") end minetest.register_node("technic:music_player", { - description = S("%s Music Player"):format("LV"), + description = S("@1 Music Player", S("LV")), tiles = {"technic_music_player_top.png", "technic_machine_bottom.png", "technic_music_player_side.png", "technic_music_player_side.png", "technic_music_player_side.png", "technic_music_player_side.png"}, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, @@ -99,7 +99,7 @@ minetest.register_node("technic:music_player", { sounds = default.node_sound_wood_defaults(), on_construct = function(pos) local meta = minetest.get_meta(pos) - meta:set_string("infotext", S("%s Music Player"):format("LV")) + meta:set_string("infotext", S("@1 Music Player", S("LV"))) set_display(meta) end, on_receive_fields = function(pos, formanme, fields, sender) diff --git a/technic/machines/LV/solar_array.lua b/technic/machines/LV/solar_array.lua index 8c1b8f4..cdc29df 100644 --- a/technic/machines/LV/solar_array.lua +++ b/technic/machines/LV/solar_array.lua @@ -5,6 +5,7 @@ -- Solar arrays are not able to store large amounts of energy. -- The LV arrays are used to make medium voltage arrays. +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:solar_array_lv 1', recipe = { @@ -14,5 +15,5 @@ minetest.register_craft({ } }) -technic.register_solar_array({tier="LV", power=10}) +technic.register_solar_array({tier="LV", power=10, tier_localized=S("LV")}) diff --git a/technic/machines/LV/solar_panel.lua b/technic/machines/LV/solar_panel.lua index b3daedc..fc28cc9 100644 --- a/technic/machines/LV/solar_panel.lua +++ b/technic/machines/LV/solar_panel.lua @@ -2,7 +2,8 @@ -- They can however also be used separately but with reduced efficiency due to the missing transformer. -- Individual panels are less efficient than when the panels are combined into full arrays. -local S = technic.getter +local S = minetest.get_translator("technic") + minetest.register_craft({ @@ -23,7 +24,7 @@ local run = function(pos, node) -- To take care of some of it solar panels do not work outside daylight hours or if -- built below 0m local pos1 = {x=pos.x, y=pos.y+1, z=pos.z} - local machine_name = S("Small Solar %s Generator"):format("LV") + local machine_name = S("Small Solar @1 Generator", S("LV")) local light = minetest.get_node_light(pos1, nil) local time_of_day = minetest.get_timeofday() @@ -35,11 +36,11 @@ local run = function(pos, node) local charge_to_give = math.floor((light + pos1.y) * 3) charge_to_give = math.max(charge_to_give, 0) charge_to_give = math.min(charge_to_give, 200) - meta:set_string("infotext", S("@1 Active (@2)", machine_name, - technic.EU_string(charge_to_give))) + meta:set_string("infotext", S("@1 Active (@2 EU)", machine_name, + technic.pretty_num(charge_to_give))) meta:set_int("LV_EU_supply", charge_to_give) else - meta:set_string("infotext", S("%s Idle"):format(machine_name)) + meta:set_string("infotext", S("@1 Idle", machine_name)) meta:set_int("LV_EU_supply", 0) end end @@ -51,7 +52,7 @@ minetest.register_node("technic:solar_panel", { technic_machine=1, technic_lv=1}, connect_sides = {"bottom"}, sounds = default.node_sound_wood_defaults(), - description = S("Small Solar %s Generator"):format("LV"), + description = S("Small Solar @1 Generator", S("LV")), active = false, drawtype = "nodebox", paramtype = "light", @@ -63,7 +64,7 @@ minetest.register_node("technic:solar_panel", { on_construct = function(pos) local meta = minetest.get_meta(pos) meta:set_int("LV_EU_supply", 0) - meta:set_string("infotext", S("Small Solar %s Generator"):format("LV")) + meta:set_string("infotext", S("Small Solar @1 Generator", S("LV"))) end, technic_run = run, }) diff --git a/technic/machines/LV/water_mill.lua b/technic/machines/LV/water_mill.lua index e26224e..8660560 100644 --- a/technic/machines/LV/water_mill.lua +++ b/technic/machines/LV/water_mill.lua @@ -2,7 +2,8 @@ -- It is a LV EU supplier and fairly low yield (max 180EUs) -- It is a little over half as good as the thermal generator. -local S = technic.getter +local S = minetest.get_translator("technic") + local cable_entry = "^technic_cable_connection_overlay.png" @@ -53,7 +54,7 @@ local run = function(pos, node) meta:set_int("LV_EU_supply", eu_supply) meta:set_string("infotext", - S("Hydro %s Generator"):format("LV").." ("..production_level.."%)") + S("@1 (@2%)", S("Hydro @1 Generator", S("LV")), production_level)) if production_level > 0 and minetest.get_node(pos).name == "technic:water_mill" then @@ -67,7 +68,7 @@ local run = function(pos, node) end minetest.register_node("technic:water_mill", { - description = S("Hydro %s Generator"):format("LV"), + description = S("Hydro @1 Generator", S("LV")), tiles = { "technic_water_mill_top.png", "technic_machine_bottom.png"..cable_entry, @@ -83,14 +84,14 @@ minetest.register_node("technic:water_mill", { sounds = default.node_sound_wood_defaults(), on_construct = function(pos) local meta = minetest.get_meta(pos) - meta:set_string("infotext", S("Hydro %s Generator"):format("LV")) + meta:set_string("infotext", S("Hydro @1 Generator", S("LV"))) meta:set_int("LV_EU_supply", 0) end, technic_run = run, }) minetest.register_node("technic:water_mill_active", { - description = S("Hydro %s Generator"):format("LV"), + description = S("Hydro @1 Generator", S("LV")), tiles = {"technic_water_mill_top_active.png", "technic_machine_bottom.png", "technic_water_mill_side.png", "technic_water_mill_side.png", "technic_water_mill_side.png", "technic_water_mill_side.png"}, diff --git a/technic/machines/MV/alloy_furnace.lua b/technic/machines/MV/alloy_furnace.lua index eaddee0..860dfd4 100644 --- a/technic/machines/MV/alloy_furnace.lua +++ b/technic/machines/MV/alloy_furnace.lua @@ -1,4 +1,5 @@ -- MV alloy furnace +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:mv_alloy_furnace', @@ -10,5 +11,5 @@ minetest.register_craft({ }) -technic.register_alloy_furnace({tier = "MV", speed = 1.5, upgrade = 1, tube = 1, demand = {3000, 2000, 1000}}) +technic.register_alloy_furnace({tier = "MV", speed = 1.5, upgrade = 1, tube = 1, demand = {3000, 2000, 1000}, tier_localized=S("MV")}) diff --git a/technic/machines/MV/battery_box.lua b/technic/machines/MV/battery_box.lua index d84ec15..33d76ff 100644 --- a/technic/machines/MV/battery_box.lua +++ b/technic/machines/MV/battery_box.lua @@ -1,5 +1,7 @@ -- MV Battery box +local S = minetest.get_translator("technic") + minetest.register_craft({ output = 'technic:mv_battery_box0', recipe = { @@ -18,5 +20,6 @@ technic.register_battery_box({ discharge_step = 8000, upgrade = 1, tube = 1, + tier_localized = S("MV"), }) diff --git a/technic/machines/MV/cables.lua b/technic/machines/MV/cables.lua index 7d63dfd..8c69c6a 100644 --- a/technic/machines/MV/cables.lua +++ b/technic/machines/MV/cables.lua @@ -1,4 +1,4 @@ - +local S = minetest.get_translator("technic") minetest.register_alias("mv_cable", "technic:mv_cable") minetest.register_craft({ @@ -10,5 +10,5 @@ minetest.register_craft({ } }) -technic.register_cable("MV", 2.5/16) +technic.register_cable(S("MV"), 2.5/16, "MV") diff --git a/technic/machines/MV/centrifuge.lua b/technic/machines/MV/centrifuge.lua index fdc086f..e04bbff 100644 --- a/technic/machines/MV/centrifuge.lua +++ b/technic/machines/MV/centrifuge.lua @@ -1,3 +1,5 @@ +local S = minetest.get_translator("technic") + minetest.register_craft({ output = "technic:mv_centrifuge", recipe = { @@ -13,4 +15,5 @@ technic.register_centrifuge({ speed = 2, upgrade = 1, tube = 1, + tier_localized = S("MV"), }) diff --git a/technic/machines/MV/compressor.lua b/technic/machines/MV/compressor.lua index d97739e..7769a6c 100644 --- a/technic/machines/MV/compressor.lua +++ b/technic/machines/MV/compressor.lua @@ -1,5 +1,5 @@ -- MV compressor - +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:mv_compressor', recipe = { @@ -9,4 +9,4 @@ minetest.register_craft({ } }) -technic.register_compressor({tier = "MV", demand = {800, 600, 400}, speed = 2, upgrade = 1, tube = 1}) +technic.register_compressor({tier = "MV", demand = {800, 600, 400}, speed = 2, upgrade = 1, tube = 1, tier_localized=S("MV")}) diff --git a/technic/machines/MV/electric_furnace.lua b/technic/machines/MV/electric_furnace.lua index b1d2dee..11ed297 100644 --- a/technic/machines/MV/electric_furnace.lua +++ b/technic/machines/MV/electric_furnace.lua @@ -5,6 +5,8 @@ -- Also in addition this furnace can be attached to the pipe system from the pipeworks mod. -- FIXME: kpoppel I'd like to introduce an induction heating element here also +local S = minetest.get_translator("technic") + minetest.register_craft({ output = 'technic:mv_electric_furnace', recipe = { @@ -14,5 +16,5 @@ minetest.register_craft({ } }) -technic.register_electric_furnace({tier="MV", upgrade=1, tube=1, demand={2000, 1000, 500}, speed=4}) +technic.register_electric_furnace({tier="MV", upgrade=1, tube=1, demand={2000, 1000, 500}, speed=4, tier_localized=S("MV")}) diff --git a/technic/machines/MV/extractor.lua b/technic/machines/MV/extractor.lua index 9066bca..8fbde9a 100644 --- a/technic/machines/MV/extractor.lua +++ b/technic/machines/MV/extractor.lua @@ -1,4 +1,6 @@ -- MV extractor +local S = minetest.get_translator("technic") + minetest.register_craft({ output = 'technic:mv_extractor', @@ -9,4 +11,4 @@ minetest.register_craft({ } }) -technic.register_extractor({tier = "MV", demand = {800, 600, 400}, speed = 2, upgrade = 1, tube = 1}) +technic.register_extractor({tier = "MV", demand = {800, 600, 400}, speed = 2, upgrade = 1, tube = 1, tier_localized=S("MV")}) diff --git a/technic/machines/MV/freezer.lua b/technic/machines/MV/freezer.lua index ab48838..3e7c7cf 100644 --- a/technic/machines/MV/freezer.lua +++ b/technic/machines/MV/freezer.lua @@ -1,4 +1,6 @@ -- MV freezer +local S = minetest.get_translator("technic") + minetest.register_craft({ output = 'technic:mv_freezer', @@ -9,4 +11,4 @@ minetest.register_craft({ } }) -technic.register_freezer({tier = "MV", demand = {800, 600, 400}, speed = 0.5, upgrade = 1, tube = 1}) +technic.register_freezer({tier = "MV", demand = {800, 600, 400}, speed = 0.5, upgrade = 1, tube = 1, tier_localized=S("MV")}) diff --git a/technic/machines/MV/generator.lua b/technic/machines/MV/generator.lua index db9d59f..59dc758 100644 --- a/technic/machines/MV/generator.lua +++ b/technic/machines/MV/generator.lua @@ -1,3 +1,4 @@ +local S = minetest.get_translator("technic") minetest.register_alias("generator_mv", "technic:generator_mv") minetest.register_craft({ @@ -9,5 +10,5 @@ minetest.register_craft({ } }) -technic.register_generator({tier="MV", tube=1, supply=600}) +technic.register_generator({tier="MV", tube=1, supply=600, tier_localized=S("MV")}) diff --git a/technic/machines/MV/grinder.lua b/technic/machines/MV/grinder.lua index 19ab372..38abb50 100644 --- a/technic/machines/MV/grinder.lua +++ b/technic/machines/MV/grinder.lua @@ -1,4 +1,6 @@ -- MV grinder +local S = minetest.get_translator("technic") + minetest.register_craft({ output = 'technic:mv_grinder', @@ -9,5 +11,5 @@ minetest.register_craft({ } }) -technic.register_grinder({tier="MV", demand={600, 450, 300}, speed=2, upgrade=1, tube=1}) +technic.register_grinder({tier="MV", demand={600, 450, 300}, speed=2, upgrade=1, tube=1, tier_localized=S("MV")}) diff --git a/technic/machines/MV/hydro_turbine.lua b/technic/machines/MV/hydro_turbine.lua index 0d4904c..71761ce 100644 --- a/technic/machines/MV/hydro_turbine.lua +++ b/technic/machines/MV/hydro_turbine.lua @@ -1,7 +1,8 @@ -- A Hydro Turbine produces MV EUs by exploiting flowing water across it -- It is a MV EU supplier and fairly high yield (max 1800EUs) -local S = technic.getter +local S = minetest.get_translator("technic") + local cable_entry = "^technic_cable_connection_overlay.png" @@ -51,7 +52,7 @@ local run = function(pos, node) meta:set_int("MV_EU_supply", eu_supply) meta:set_string("infotext", - S("Hydro %s Generator"):format("MV").." ("..production_level.."%)") + S("@1 (@2%)", S("Hydro @1 Generator", S("MV")), production_level)) if production_level > 0 and minetest.get_node(pos).name == "technic:hydro_turbine" then technic.swap_node(pos, "technic:hydro_turbine_active") @@ -64,7 +65,7 @@ local run = function(pos, node) end minetest.register_node("technic:hydro_turbine", { - description = S("Hydro %s Generator"):format("MV"), + description = S("Hydro @1 Generator", S("MV")), tiles = { "technic_hydro_turbine_top.png", "technic_machine_bottom.png"..cable_entry, @@ -80,14 +81,14 @@ minetest.register_node("technic:hydro_turbine", { sounds = default.node_sound_wood_defaults(), on_construct = function(pos) local meta = minetest.get_meta(pos) - meta:set_string("infotext", S("Hydro %s Generator"):format("MV")) + meta:set_string("infotext", S("Hydro @1 Generator", S("MV"))) meta:set_int("MV_EU_supply", 0) end, technic_run = run, }) minetest.register_node("technic:hydro_turbine_active", { - description = S("Hydro %s Generator"):format("MV"), + description = S("Hydro @1 Generator", S("MV")), tiles = {"technic_hydro_turbine_top_active.png", "technic_machine_bottom.png", "technic_hydro_turbine_side.png", "technic_hydro_turbine_side.png", "technic_hydro_turbine_side.png", "technic_hydro_turbine_side.png"}, diff --git a/technic/machines/MV/init.lua b/technic/machines/MV/init.lua index 07c44b6..5715eaa 100644 --- a/technic/machines/MV/init.lua +++ b/technic/machines/MV/init.lua @@ -1,5 +1,5 @@ -technic.register_tier("MV", "Medium Voltage") +technic.register_tier("MV") local path = technic.modpath.."/machines/MV" diff --git a/technic/machines/MV/lighting.lua b/technic/machines/MV/lighting.lua index f7c9124..b246ba7 100644 --- a/technic/machines/MV/lighting.lua +++ b/technic/machines/MV/lighting.lua @@ -3,14 +3,8 @@ -- This file supplies electric powered glowlights --- Boilerplate to support localized strings if intllib mod is installed. -local S -if (minetest.get_modpath("intllib")) then - dofile(minetest.get_modpath("intllib").."/intllib.lua") - S = intllib.Getter(minetest.get_current_modname()) -else - S = function (s) return s end -end +local S = minetest.get_translator("technic") + function technic_homedecor_node_is_owned(pos, placer) local ownername = false @@ -25,7 +19,7 @@ function technic_homedecor_node_is_owned(pos, placer) end if ownername ~= false then - minetest.chat_send_player(placer:get_player_name(), S("Sorry, %s owns that spot."):format(ownername) ) + minetest.chat_send_player(placer:get_player_name(), S("Sorry, @1 owns that spot.", ownername) ) return true else return false @@ -113,7 +107,7 @@ minetest.register_node('technic:homedecor_glowlight_half_yellow', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 100, "Yellow Glowlight (thick)") + technic.inductive_on_construct(pos, 100, S("Yellow Glowlight (thick)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_half_yellow_active") @@ -154,7 +148,7 @@ minetest.register_node('technic:homedecor_glowlight_half_yellow_active', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 100, "Yellow Glowlight (thick)") + technic.inductive_on_construct(pos, 100, S("Yellow Glowlight (thick)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_half_yellow") @@ -194,7 +188,7 @@ minetest.register_node('technic:homedecor_glowlight_quarter_yellow', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 100, "Yellow Glowlight (thin)") + technic.inductive_on_construct(pos, 100, S("Yellow Glowlight (thin)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_quarter_yellow_active") @@ -235,7 +229,7 @@ minetest.register_node('technic:homedecor_glowlight_quarter_yellow_active', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 100, "Yellow Glowlight (thin)") + technic.inductive_on_construct(pos, 100, S("Yellow Glowlight (thin)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_quarter_yellow") @@ -276,7 +270,7 @@ minetest.register_node('technic:homedecor_glowlight_half_white', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 100, "White Glowlight (thick)") + technic.inductive_on_construct(pos, 100, S("White Glowlight (thick)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_half_white_active") @@ -317,7 +311,7 @@ minetest.register_node('technic:homedecor_glowlight_half_white_active', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 100, "White Glowlight (thick)") + technic.inductive_on_construct(pos, 100, S("White Glowlight (thick)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_half_white") @@ -357,7 +351,7 @@ minetest.register_node('technic:homedecor_glowlight_quarter_white', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 100, "White Glowlight (thin)") + technic.inductive_on_construct(pos, 100, S("White Glowlight (thin)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_off(pos, 100, "technic:homedecor_glowlight_quarter_white_active") @@ -398,7 +392,7 @@ minetest.register_node('technic:homedecor_glowlight_quarter_white_active', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 100, "White Glowlight (thin)") + technic.inductive_on_construct(pos, 100, S("White Glowlight (thin)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_quarter_white") @@ -438,7 +432,7 @@ minetest.register_node('technic:homedecor_glowlight_small_cube_yellow', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 50, "Yellow Glowlight (small cube)") + technic.inductive_on_construct(pos, 50, S("Yellow Glowlight (small cube)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_off(pos, 50, "technic:homedecor_glowlight_small_cube_yellow_active") @@ -479,7 +473,7 @@ minetest.register_node('technic:homedecor_glowlight_small_cube_yellow_active', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 50, "Yellow Glowlight (small cube)") + technic.inductive_on_construct(pos, 50, S("Yellow Glowlight (small cube)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_small_cube_yellow") @@ -519,7 +513,7 @@ minetest.register_node('technic:homedecor_glowlight_small_cube_white', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 50, "White Glowlight (small cube)") + technic.inductive_on_construct(pos, 50, S("White Glowlight (small cube)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_off(pos, 50, "technic:homedecor_glowlight_small_cube_white_active") @@ -560,7 +554,7 @@ minetest.register_node('technic:homedecor_glowlight_small_cube_white_active', { return itemstack end, on_construct = function(pos) - technic.inductive_on_construct(pos, 50, "White Glowlight (small cube)") + technic.inductive_on_construct(pos, 50, S("White Glowlight (small cube)")) end, on_punch = function(pos, node, puncher) technic.inductive_on_punch_on(pos, 0, "technic:homedecor_glowlight_small_cube_white") diff --git a/technic/machines/MV/power_radiator.lua b/technic/machines/MV/power_radiator.lua index a5d2ed6..4efd469 100644 --- a/technic/machines/MV/power_radiator.lua +++ b/technic/machines/MV/power_radiator.lua @@ -10,6 +10,8 @@ -- -- Punching the radiator will toggle the power state of all attached appliances. +local S = minetest.get_translator("technic") + local power_radius = 12 @@ -118,7 +120,7 @@ local toggle_on_off_inductive_appliances = function(pos, node, puncher) end minetest.register_node("technic:power_radiator", { - description = "MV Power Radiator", + description = S("@1 Power Radiator", S("MV")), tiles = {"technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png"}, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2}, @@ -134,7 +136,7 @@ minetest.register_node("technic:power_radiator", { local meta = minetest.get_meta(pos) meta:set_int("MV_EU_demand",1) -- Demand on the primary side when idle meta:set_int("connected_EU_demand",0) -- Potential demand of connected appliances - meta:set_string("infotext", "MV Power Radiator") + meta:set_string("infotext", S("@1 Power Radiator", S("MV"))) end, on_dig = function(pos, node, digger) shutdown_inductive_appliances(pos) @@ -146,7 +148,7 @@ minetest.register_node("technic:power_radiator", { }) minetest.register_abm({ - label = "Machines: run power radiator", + label = S("Machines: run power radiator"), nodenames = {"technic:power_radiator"}, interval = 1, chance = 1, @@ -160,7 +162,7 @@ minetest.register_abm({ if eu_input == 0 then -- No power - meta:set_string("infotext", "MV Power Radiator is unpowered"); + meta:set_string("infotext", S("@1 is unpowered", S("@1 Power Radiator", S("MV")))); -- meta:set_int("active", 1) -- used for setting textures someday maybe shutdown_inductive_appliances(pos) meta:set_int("connected_EU_demand", 0) @@ -201,9 +203,8 @@ minetest.register_abm({ -- The appliance has power from this node. Spend power if it is on. used_charge = used_charge + math.floor(meta1:get_int("EU_charge") / eff_factor) end - meta:set_string("infotext", "MV Power Radiator is powered (" - ..math.floor(used_charge / max_charge * 100) - .."% of maximum power)"); + meta:set_string("infotext", S("@1 is powered (@2% of maximum power)", S("@1 Power Radiator", S("MV")), + math.floor(used_charge / max_charge * 100))) if used_charge == 0 then meta:set_int("MV_EU_demand", 1) -- Still idle else diff --git a/technic/machines/MV/solar_array.lua b/technic/machines/MV/solar_array.lua index 4077a5c..c51700e 100644 --- a/technic/machines/MV/solar_array.lua +++ b/technic/machines/MV/solar_array.lua @@ -1,4 +1,4 @@ - +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:solar_array_mv 1', recipe = { @@ -8,7 +8,7 @@ minetest.register_craft({ } }) -technic.register_solar_array({tier="MV", power=30}) +technic.register_solar_array({tier="MV", power=30, tier_localized=S("MV")}) -- compatibility alias for upgrading from old versions of technic minetest.register_alias("technic:solar_panel_mv", "technic:solar_array_mv") diff --git a/technic/machines/MV/tool_workshop.lua b/technic/machines/MV/tool_workshop.lua index 678a1fd..9df6c23 100644 --- a/technic/machines/MV/tool_workshop.lua +++ b/technic/machines/MV/tool_workshop.lua @@ -3,7 +3,8 @@ minetest.register_alias("tool_workshop", "technic:tool_workshop") -local S = technic.getter +local S = minetest.get_translator("technic") + local tube_entry = "^pipeworks_tube_connection_wooden.png" @@ -21,7 +22,7 @@ local workshop_demand = {5000, 3500, 2000} local workshop_formspec = "size[8,9;]".. "list[current_name;src;3,1;1,1;]".. - "label[0,0;"..S("%s Tool Workshop"):format("MV").."]".. + "label[0,0;"..S("@1 Tool Workshop", S("MV")).."]".. "list[current_name;upgrade1;1,3;1,1;]".. "list[current_name;upgrade2;2,3;1,1;]".. "label[1,4;"..S("Upgrade Slots").."]".. @@ -38,7 +39,7 @@ local run = function(pos, node) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() local eu_input = meta:get_int("MV_EU_input") - local machine_name = S("%s Tool Workshop"):format("MV") + local machine_name = S("@1 Tool Workshop", S("MV")) -- Setup meta data if it does not exist. if not eu_input then @@ -66,15 +67,15 @@ local run = function(pos, node) end end) if not repairable then - meta:set_string("infotext", S("%s Idle"):format(machine_name)) + meta:set_string("infotext", S("@1 Idle", machine_name)) meta:set_int("MV_EU_demand", 0) return end if eu_input < workshop_demand[EU_upgrade+1] then - meta:set_string("infotext", S("%s Unpowered"):format(machine_name)) + meta:set_string("infotext", S("@1 Unpowered", machine_name)) elseif eu_input >= workshop_demand[EU_upgrade+1] then - meta:set_string("infotext", S("%s Active"):format(machine_name)) + meta:set_string("infotext", S("@1 Active", machine_name)) srcstack:add_wear(-1000) inv:set_stack("src", 1, srcstack) end @@ -82,7 +83,7 @@ local run = function(pos, node) end minetest.register_node("technic:tool_workshop", { - description = S("%s Tool Workshop"):format("MV"), + description = S("@1 Tool Workshop", S("MV")), paramtype2 = "facedir", tiles = { "technic_workshop_top.png"..tube_entry, @@ -98,7 +99,7 @@ minetest.register_node("technic:tool_workshop", { sounds = default.node_sound_wood_defaults(), on_construct = function(pos) local meta = minetest.get_meta(pos) - meta:set_string("infotext", S("%s Tool Workshop"):format("MV")) + meta:set_string("infotext", S("@1 Tool Workshop", S("MV"))) meta:set_string("formspec", workshop_formspec) local inv = meta:get_inventory() inv:set_size("src", 1) diff --git a/technic/machines/MV/wind_mill.lua b/technic/machines/MV/wind_mill.lua index 1baf54c..309d070 100644 --- a/technic/machines/MV/wind_mill.lua +++ b/technic/machines/MV/wind_mill.lua @@ -1,5 +1,4 @@ - -local S = technic.getter +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:wind_mill_frame 5', @@ -51,23 +50,23 @@ end local run = function(pos, node) local meta = minetest.get_meta(pos) - local machine_name = S("Wind %s Generator"):format("MV") + local machine_name = S("Wind @1 Generator", S("MV")) local check = check_wind_mill(pos) if check == false then meta:set_int("MV_EU_supply", 0) - meta:set_string("infotext", S("%s Improperly Placed"):format(machine_name)) + meta:set_string("infotext", S("@1 Improperly Placed", machine_name)) elseif check == true then local power = math.min(pos.y * 100, 5000) meta:set_int("MV_EU_supply", power) - meta:set_string("infotext", S("@1 (@2)", machine_name, - technic.EU_string(power))) + meta:set_string("infotext", S("Active @1 (@2 EU)", machine_name, + technic.pretty_num(power))) end -- check == nil: assume nothing has changed end minetest.register_node("technic:wind_mill", { - description = S("Wind %s Generator"):format("MV"), + description = S("Wind @1 Generator", S("MV")), tiles = {"technic_carbon_steel_block.png"}, paramtype2 = "facedir", groups = {cracky=1, technic_machine=1, technic_mv=1}, @@ -86,7 +85,7 @@ minetest.register_node("technic:wind_mill", { }, on_construct = function(pos) local meta = minetest.get_meta(pos) - meta:set_string("infotext", S("Wind %s Generator"):format("MV")) + meta:set_string("infotext", S("Wind @1 Generator", S("MV"))) meta:set_int("MV_EU_supply", 0) end, technic_run = run, diff --git a/technic/machines/other/anchor.lua b/technic/machines/other/anchor.lua index 1c15bd2..241531e 100644 --- a/technic/machines/other/anchor.lua +++ b/technic/machines/other/anchor.lua @@ -1,4 +1,5 @@ -local S = technic.getter +local S = minetest.get_translator("technic") + local desc = S("Administrative World Anchor") @@ -48,12 +49,12 @@ local function forceload_on(pos, meta) end local function set_display(pos, meta) - meta:set_string("infotext", S(meta:get_int("enabled") ~= 0 and "%s Enabled" or "%s Disabled"):format(desc)) + meta:set_string("infotext", meta:get_int("enabled") ~= 0 and S("@1 Enabled", desc) or S("@1 Disabled", desc)) meta:set_string("formspec", "size[5,3.5]".. "item_image[0,0;1,1;technic:admin_anchor]".. "label[1,0;"..minetest.formspec_escape(desc).."]".. - "label[0,1;"..minetest.formspec_escape(S("Owner:").." "..meta:get_string("owner")).."]".. + "label[0,1;"..minetest.formspec_escape(S("Owner: @1", meta:get_string("owner"))).."]".. (meta:get_int("locked") == 0 and "button[3,1;2,1;lock;"..minetest.formspec_escape(S("Unlocked")).."]" or "button[3,1;2,1;unlock;"..minetest.formspec_escape(S("Locked")).."]").. @@ -61,7 +62,9 @@ local function set_display(pos, meta) (meta:get_int("enabled") == 0 and "button[3,2;2,1;enable;"..minetest.formspec_escape(S("Disabled")).."]" or "button[3,2;2,1;disable;"..minetest.formspec_escape(S("Enabled")).."]").. - "label[0,3;"..minetest.formspec_escape(S("Keeping %d/%d map blocks loaded"):format(#currently_forceloaded_positions(meta), #compute_forceload_positions(pos, meta))).."]") + "label[0,3;"..minetest.formspec_escape(S("Keeping @1/@2 map blocks loaded", + string.format("%d", #currently_forceloaded_positions(meta)), + string.format("%d", #compute_forceload_positions(pos, meta)))).."]") end minetest.register_node("technic:admin_anchor", { diff --git a/technic/machines/other/coal_alloy_furnace.lua b/technic/machines/other/coal_alloy_furnace.lua index c2de151..1c7ce71 100644 --- a/technic/machines/other/coal_alloy_furnace.lua +++ b/technic/machines/other/coal_alloy_furnace.lua @@ -1,7 +1,6 @@ - -- Fuel driven alloy furnace. This uses no EUs: -local S = technic.getter +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:coal_alloy_furnace', @@ -70,7 +69,7 @@ minetest.register_node("technic:coal_alloy_furnace_active", { }) minetest.register_abm({ - label = "Machines: run coal alloy furnace", + label = S("Machines: run coal alloy furnace"), nodenames = {"technic:coal_alloy_furnace", "technic:coal_alloy_furnace_active"}, interval = 1, chance = 1, @@ -120,7 +119,7 @@ minetest.register_abm({ if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then local percent = math.floor(meta:get_float("fuel_time") / meta:get_float("fuel_totaltime") * 100) - meta:set_string("infotext", S("%s Active"):format(machine_name).." ("..percent.."%)") + meta:set_string("infotext", S("@1 Active (@2%)", machine_name, percent)) technic.swap_node(pos, "technic:coal_alloy_furnace_active") meta:set_string("formspec", "size[8,9]".. @@ -144,7 +143,7 @@ minetest.register_abm({ if not recipe then if was_active then - meta:set_string("infotext", S("%s is empty"):format(machine_name)) + meta:set_string("infotext", S("@1 is empty", machine_name)) technic.swap_node(pos, "technic:coal_alloy_furnace") meta:set_string("formspec", formspec) end @@ -161,7 +160,7 @@ minetest.register_abm({ end if fuel.time <= 0 then - meta:set_string("infotext", S("%s Out Of Fuel"):format(machine_name)) + meta:set_string("infotext", S("@1 Out Of Fuel", machine_name)) technic.swap_node(pos, "technic:coal_alloy_furnace") meta:set_string("formspec", formspec) return diff --git a/technic/machines/other/coal_furnace.lua b/technic/machines/other/coal_furnace.lua index 53a0f8b..7cfd438 100644 --- a/technic/machines/other/coal_furnace.lua +++ b/technic/machines/other/coal_furnace.lua @@ -1,4 +1,4 @@ -local S = technic.getter +local S = minetest.get_translator("technic") if minetest.registered_nodes["default:furnace"].description == "Furnace" then minetest.override_item("default:furnace", { description = S("Fuel-Fired Furnace") }) diff --git a/technic/machines/other/constructor.lua b/technic/machines/other/constructor.lua index 9117224..8b33c1b 100644 --- a/technic/machines/other/constructor.lua +++ b/technic/machines/other/constructor.lua @@ -1,5 +1,4 @@ - -local S = technic.getter +local S = minetest.get_translator("technic") local function deploy_node(inv, slot_name, pos, node, machine_node) if node.param2 > 3 then return end @@ -131,7 +130,7 @@ end local function make_constructor(mark, length) minetest.register_node("technic:constructor_mk"..mark.."_off", { - description = S("Constructor Mk%d"):format(mark), + description = S("Constructor Mk@1", string.format("%d", mark)), tiles = {"technic_constructor_mk"..mark.."_top_off.png", "technic_constructor_mk"..mark.."_bottom_off.png", "technic_constructor_mk"..mark.."_side2_off.png", @@ -146,16 +145,16 @@ local function make_constructor(mark, length) on_construct = function(pos) local meta = minetest.get_meta(pos) local formspec = "size[8,9;]".. - "label[0,0;"..S("Constructor Mk%d"):format(mark).."]".. + "label[0,0;"..S("Constructor Mk@1", string.format("%d", mark)).."]".. "list[current_player;main;0,5;8,4;]" for i = 1, length do formspec = formspec - .."label[5,"..(i - 1)..";"..S("Slot %d"):format(i).."]" + .."label[5,"..(i - 1)..";"..S("Slot @1", string.format("%d", i)).."]" .."list[current_name;slot"..i ..";6,"..(i - 1)..";1,1;]" end meta:set_string("formspec", formspec) - meta:set_string("infotext", S("Constructor Mk%d"):format(mark)) + meta:set_string("infotext", S("Constructor Mk@1", string.format("%d", mark))) local inv = meta:get_inventory() for i = 1, length do inv:set_size("slot"..i, 1) diff --git a/technic/machines/other/frames.lua b/technic/machines/other/frames.lua index e65902c..e2920db 100644 --- a/technic/machines/other/frames.lua +++ b/technic/machines/other/frames.lua @@ -1,4 +1,4 @@ -local S = technic.getter +local S = minetest.get_translator("technic") local infinite_stacks = minetest.settings:get_bool("creative_mode") and minetest.get_modpath("unified_inventory") == nil @@ -296,10 +296,7 @@ for zp = 0, 1 do local pos = pointed_thing.above if minetest.is_protected(pos, placer:get_player_name()) then - minetest.log("action", placer:get_player_name() - .. " tried to place " .. itemstack:get_name() - .. " at protected position " - .. minetest.pos_to_string(pos)) + minetest.log("action", placer:get_player_name().." tried to place "..itemstack:get_name().." at protected position "..minetest.pos_to_string(pos)) minetest.record_protection_violation(pos, placer:get_player_name()) return itemstack end @@ -325,10 +322,7 @@ for zp = 0, 1 do on_rightclick = function(pos, node, placer, itemstack, pointed_thing) if is_supported_node(itemstack:get_name()) then if minetest.is_protected(pos, placer:get_player_name()) then - minetest.log("action", placer:get_player_name() - .. " tried to place " .. itemstack:get_name() - .. " at protected position " - .. minetest.pos_to_string(pos)) + minetest.log("action", placer:get_player_name().." tried to place "..itemstack:get_name().." at protected position "..minetest.pos_to_string(pos)) minetest.record_protection_violation(pos, placer:get_player_name()) return itemstack end diff --git a/technic/machines/other/injector.lua b/technic/machines/other/injector.lua index 6bd5a83..a123e1d 100644 --- a/technic/machines/other/injector.lua +++ b/technic/machines/other/injector.lua @@ -1,5 +1,4 @@ - -local S = technic.getter +local S = minetest.get_translator("technic") local fs_helpers = pipeworks.fs_helpers @@ -144,7 +143,7 @@ minetest.register_node("technic:injector", { }) minetest.register_abm({ - label = "Machines: run injector", + label = S("Machines: run injector"), nodenames = {"technic:injector"}, interval = 1, chance = 1, diff --git a/technic/machines/power_monitor.lua b/technic/machines/power_monitor.lua index 7e8b850..4308efd 100644 --- a/technic/machines/power_monitor.lua +++ b/technic/machines/power_monitor.lua @@ -2,7 +2,7 @@ -- The power monitor can be used to monitor how much power is available on a network, -- similarly to the old "slave" switching stations. -local S = technic.getter +local S = minetest.get_translator("technic") local cable_entry = "^technic_cable_connection_overlay.png" @@ -37,7 +37,7 @@ minetest.register_node("technic:power_monitor",{ minetest.register_abm({ nodenames = {"technic:power_monitor"}, - label = "Machines: run power monitor", + label = S("Machines: run power monitor"), interval = 1, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) @@ -54,10 +54,10 @@ minetest.register_abm({ local supply = sw_meta:get_int("supply") local demand = sw_meta:get_int("demand") meta:set_string("infotext", - S("Power Monitor. Supply: @1 Demand: @2", + S("@1. Supply: @2 Demand: @3", S("Power Monitor"), technic.EU_string(supply), technic.EU_string(demand))) else - meta:set_string("infotext",S("Power Monitor Has No Network")) + meta:set_string("infotext",S("@1 Has No Network",S("Power Monitor"))) end end, }) diff --git a/technic/machines/register/alloy_furnace.lua b/technic/machines/register/alloy_furnace.lua index 1e3796d..360a4d3 100644 --- a/technic/machines/register/alloy_furnace.lua +++ b/technic/machines/register/alloy_furnace.lua @@ -1,6 +1,4 @@ - -local S = technic.getter - +local S = minetest.get_translator("technic") function technic.insert_object_unique_stack(pos, node, incoming_stack, direction) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() @@ -40,7 +38,7 @@ end function technic.register_alloy_furnace(data) data.typename = "alloy" data.machine_name = "alloy_furnace" - data.machine_desc = S("%s Alloy Furnace") + data.machine_desc = S("@1 Alloy Furnace", data.tier_localized) data.insert_object = technic.insert_object_unique_stack data.can_insert = technic.can_insert_unique_stack diff --git a/technic/machines/register/alloy_recipes.lua b/technic/machines/register/alloy_recipes.lua index 388e0bb..6a8190b 100644 --- a/technic/machines/register/alloy_recipes.lua +++ b/technic/machines/register/alloy_recipes.lua @@ -1,5 +1,4 @@ - -local S = technic.getter +local S = minetest.get_translator("technic") technic.register_recipe_type("alloy", { description = S("Alloying"), diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua index af8fd60..8410fca 100644 --- a/technic/machines/register/battery_box.lua +++ b/technic/machines/register/battery_box.lua @@ -1,7 +1,6 @@ - local digilines_path = minetest.get_modpath("digilines") -local S = technic.getter +local S = minetest.get_translator("technic") local tube_entry = "^pipeworks_tube_connection_metallic.png" local cable_entry = "^technic_cable_connection_overlay.png" @@ -142,7 +141,7 @@ local function add_on_off_buttons(meta, ltier, charge_percent) pipeworks.button_off, pipeworks.button_on } - ).."label[3.9,2.01;Allow splitting incoming 'charge' stacks from tubes]".. + ).."label[3.9,2.01;"..S("Allow splitting incoming 'charge' stacks from tubes").."]".. fs_helpers.cycling_button( meta, "image_button[3,2.5;1,0.6", @@ -151,7 +150,7 @@ local function add_on_off_buttons(meta, ltier, charge_percent) pipeworks.button_off, pipeworks.button_on } - ).."label[3.9,2.51;Allow splitting incoming 'discharge' stacks]" + ).."label[3.9,2.51;"..S("Allow splitting incoming 'discharge' stacks").."]" end return formspec end @@ -166,7 +165,7 @@ function technic.register_battery_box(data) "list[context;src;3,1;1,1;]".. "image[4,1;1,1;technic_battery_reload.png]".. "list[context;dst;5,1;1,1;]".. - "label[0,0;"..S("%s Battery Box"):format(tier).."]".. + "label[0,0;"..S("@1 Battery Box", data.tier_localized).."]".. "label[3,0;"..S("Charge").."]".. "label[5,0;"..S("Discharge").."]".. "label[1,3;"..S("Power level").."]".. @@ -177,7 +176,7 @@ function technic.register_battery_box(data) "listring[current_player;main]" if digilines_path then - formspec = formspec.."button[0.6,3.7;2,1;edit_channel;edit Channel]" + formspec = formspec.."button[0.6,3.7;2,1;edit_channel;"..S("edit Channel").."]" end if data.upgrade then @@ -196,7 +195,7 @@ function technic.register_battery_box(data) local meta = minetest.get_meta(pos) if not technic.is_tier_cable(below.name, tier) then - meta:set_string("infotext", S("%s Battery Box Has No Network"):format(tier)) + meta:set_string("infotext", S("@1 Has No Network", S("@1 Battery Box", data.tier_localized))) return end @@ -255,11 +254,11 @@ function technic.register_battery_box(data) local charge_percent = math.floor(current_charge / max_charge * 100) meta:set_string("formspec", formspec..add_on_off_buttons(meta, ltier, charge_percent)) - local infotext = S("@1 Battery Box: @2 / @3", tier, + local infotext = S("@1 Battery Box: @2 / @3", data.tier_localized, technic.EU_string(current_charge), technic.EU_string(max_charge)) if eu_input == 0 then - infotext = S("%s Idle"):format(infotext) + infotext = S("@1 Idle", infotext) end meta:set_string("infotext", infotext) end @@ -288,7 +287,7 @@ function technic.register_battery_box(data) end minetest.register_node("technic:"..ltier.."_battery_box"..i, { - description = S("%s Battery Box"):format(tier), + description = S("@1 Battery Box", data.tier_localized), tiles = { top_tex, bottom_tex, @@ -312,7 +311,7 @@ function technic.register_battery_box(data) local charge = meta:get_int("internal_EU_charge") local cpercent = math.floor(charge / max_charge * 100) local inv = meta:get_inventory() - meta:set_string("infotext", S("%s Battery Box"):format(tier)) + meta:set_string("infotext", S("@1 Battery Box", data.tier_localized)) meta:set_string("formspec", formspec..add_on_off_buttons(meta, ltier, cpercent)) meta:set_string("channel", ltier.."_battery_box"..minetest.pos_to_string(pos)) meta:set_int(tier.."_EU_demand", 0) @@ -337,7 +336,7 @@ function technic.register_battery_box(data) if fields.edit_channel then minetest.show_formspec(sender:get_player_name(), "technic:battery_box_edit_channel"..minetest.pos_to_string(pos), - "field[channel;Digiline Channel;"..meta:get_string("channel").."]") + "field[channel;"..S("Digiline Channel")..";"..meta:get_string("channel").."]") elseif fields["fs_helpers_cycling:0:split_src_stacks"] or fields["fs_helpers_cycling:0:split_dst_stacks"] or fields["fs_helpers_cycling:1:split_src_stacks"] diff --git a/technic/machines/register/cables.lua b/technic/machines/register/cables.lua index 1c609f7..d8169c0 100644 --- a/technic/machines/register/cables.lua +++ b/technic/machines/register/cables.lua @@ -1,5 +1,5 @@ -local S = technic.getter +local S = minetest.get_translator("technic") local cable_tier = {} @@ -130,7 +130,7 @@ local function item_place_override_node(itemstack, placer, pointed, node) return itemstack end -function technic.register_cable(tier, size) +function technic.register_cable(tier_localized, size, tier) local ltier = string.lower(tier) cable_tier["technic:"..ltier.."_cable"] = tier @@ -149,7 +149,7 @@ function technic.register_cable(tier, size) } minetest.register_node("technic:"..ltier.."_cable", { - description = S("%s Cable"):format(tier), + description = S("@1 Cable", tier_localized), tiles = {"technic_"..ltier.."_cable.png"}, inventory_image = "technic_"..ltier.."_cable_wield.png", wield_image = "technic_"..ltier.."_cable_wield.png", @@ -191,7 +191,7 @@ function technic.register_cable(tier, size) end for p, i in pairs(xyz) do local def = { - description = S("%s Cable Plate"):format(tier), + description = S("@1 Cable Plate", tier_localized), tiles = {"technic_"..ltier.."_cable.png"}, groups = table.copy(groups), sounds = default.node_sound_wood_defaults(), diff --git a/technic/machines/register/centrifuge.lua b/technic/machines/register/centrifuge.lua index dd05977..c8e5811 100644 --- a/technic/machines/register/centrifuge.lua +++ b/technic/machines/register/centrifuge.lua @@ -1,8 +1,7 @@ -local S = technic.getter - +local S = minetest.get_translator("technic") function technic.register_centrifuge(data) data.typename = "separating" data.machine_name = "centrifuge" - data.machine_desc = S("%s Centrifuge") + data.machine_desc = S("@1 Centrifuge", data.tier_localized) technic.register_base_machine(data) end diff --git a/technic/machines/register/centrifuge_recipes.lua b/technic/machines/register/centrifuge_recipes.lua index 11c6788..dcb1992 100644 --- a/technic/machines/register/centrifuge_recipes.lua +++ b/technic/machines/register/centrifuge_recipes.lua @@ -1,4 +1,4 @@ -local S = technic.getter +local S = minetest.get_translator("technic") technic.register_recipe_type("separating", { description = S("Separating"), diff --git a/technic/machines/register/common.lua b/technic/machines/register/common.lua index 0e7658b..3104f6e 100644 --- a/technic/machines/register/common.lua +++ b/technic/machines/register/common.lua @@ -1,5 +1,4 @@ - -local S = technic.getter +local S = minetest.get_translator("technic") -- handles the machine upgrades every tick function technic.handle_machine_upgrades(meta) diff --git a/technic/machines/register/compressor.lua b/technic/machines/register/compressor.lua index 49830d7..d4518f6 100644 --- a/technic/machines/register/compressor.lua +++ b/technic/machines/register/compressor.lua @@ -1,9 +1,7 @@ - -local S = technic.getter - +local S = minetest.get_translator("technic") function technic.register_compressor(data) data.typename = "compressing" data.machine_name = "compressor" - data.machine_desc = S("%s Compressor") + data.machine_desc = S("@1 Compressor", data.tier_localized) technic.register_base_machine(data) end diff --git a/technic/machines/register/compressor_recipes.lua b/technic/machines/register/compressor_recipes.lua index acb9eca..752f8e1 100644 --- a/technic/machines/register/compressor_recipes.lua +++ b/technic/machines/register/compressor_recipes.lua @@ -1,5 +1,4 @@ - -local S = technic.getter +local S = minetest.get_translator("technic") technic.register_recipe_type("compressing", { description = S("Compressing") }) diff --git a/technic/machines/register/electric_furnace.lua b/technic/machines/register/electric_furnace.lua index 44de16c..4fae22d 100644 --- a/technic/machines/register/electric_furnace.lua +++ b/technic/machines/register/electric_furnace.lua @@ -1,9 +1,7 @@ - -local S = technic.getter - +local S = minetest.get_translator("technic") function technic.register_electric_furnace(data) data.typename = "cooking" data.machine_name = "electric_furnace" - data.machine_desc = S("%s Furnace") + data.machine_desc = S("@1 Furnace", data.tier_localized) technic.register_base_machine(data) end diff --git a/technic/machines/register/extractor.lua b/technic/machines/register/extractor.lua index eeef9ff..7268562 100644 --- a/technic/machines/register/extractor.lua +++ b/technic/machines/register/extractor.lua @@ -1,9 +1,7 @@ - -local S = technic.getter - +local S = minetest.get_translator("technic") function technic.register_extractor(data) data.typename = "extracting" data.machine_name = "extractor" - data.machine_desc = S("%s Extractor") + data.machine_desc = S("@1 Extractor", data.tier_localized) technic.register_base_machine(data) end diff --git a/technic/machines/register/extractor_recipes.lua b/technic/machines/register/extractor_recipes.lua index ba43df5..4d6afa3 100644 --- a/technic/machines/register/extractor_recipes.lua +++ b/technic/machines/register/extractor_recipes.lua @@ -1,5 +1,4 @@ - -local S = technic.getter +local S = minetest.get_translator("technic") technic.register_recipe_type("extracting", { description = S("Extracting") }) diff --git a/technic/machines/register/freezer.lua b/technic/machines/register/freezer.lua index b4da6d9..891714e 100644 --- a/technic/machines/register/freezer.lua +++ b/technic/machines/register/freezer.lua @@ -1,9 +1,7 @@ - -local S = technic.getter - +local S = minetest.get_translator("technic") function technic.register_freezer(data) data.typename = "freezing" data.machine_name = "freezer" - data.machine_desc = S("%s Freezer") + data.machine_desc = S("@1 Freezer", data.tier_localized) technic.register_base_machine(data) end diff --git a/technic/machines/register/freezer_recipes.lua b/technic/machines/register/freezer_recipes.lua index 641b28a..79cc769 100644 --- a/technic/machines/register/freezer_recipes.lua +++ b/technic/machines/register/freezer_recipes.lua @@ -1,5 +1,4 @@ - -local S = technic.getter +local S = minetest.get_translator("technic") technic.register_recipe_type("freezing", { description = S("Freezing") }) diff --git a/technic/machines/register/generator.lua b/technic/machines/register/generator.lua index 9120e29..8e5b0e5 100644 --- a/technic/machines/register/generator.lua +++ b/technic/machines/register/generator.lua @@ -1,4 +1,4 @@ -local S = technic.getter +local S = minetest.get_translator("technic") local fs_helpers = pipeworks.fs_helpers local tube_entry = "^pipeworks_tube_connection_metallic.png" @@ -36,13 +36,13 @@ function technic.register_generator(data) local generator_formspec = "size[8,9;]".. - "label[0,0;"..S("Fuel-Fired %s Generator"):format(tier).."]".. + "label[0,0;"..S("Fuel-Fired @1 Generator", data.tier_localized).."]".. "list[current_name;src;3,1;1,1;]".. "image[4,1;1,1;default_furnace_fire_bg.png]".. "list[current_player;main;0,5;8,4;]".. "listring[]" - local desc = S("Fuel-Fired %s Generator"):format(tier) + local desc = S("Fuel-Fired @1 Generator", data.tier_localized) local run = function(pos, node) local meta = minetest.get_meta(pos) @@ -65,7 +65,7 @@ function technic.register_generator(data) {method = "fuel", width = 1, items = fuellist}) if not fuel or fuel.time == 0 then - meta:set_string("infotext", S("%s Out Of Fuel"):format(desc)) + meta:set_string("infotext", S("@1 Out Of Fuel", desc)) technic.swap_node(pos, "technic:"..ltier.."_generator") meta:set_int(tier.."_EU_supply", 0) return @@ -82,7 +82,7 @@ function technic.register_generator(data) end if burn_totaltime == 0 then burn_totaltime = 1 end local percent = math.floor((burn_time / burn_totaltime) * 100) - meta:set_string("infotext", desc.." ("..percent.."%)") + meta:set_string("infotext", S("@1 (@2%)", desc, percent)) local form_buttons = "" if ltier ~= "lv" then diff --git a/technic/machines/register/grinder.lua b/technic/machines/register/grinder.lua index 19ea094..ac62789 100644 --- a/technic/machines/register/grinder.lua +++ b/technic/machines/register/grinder.lua @@ -1,9 +1,7 @@ - -local S = technic.getter - +local S = minetest.get_translator("technic") function technic.register_grinder(data) data.typename = "grinding" data.machine_name = "grinder" - data.machine_desc = S("%s Grinder") + data.machine_desc = S("@1 Grinder", data.tier_localized) technic.register_base_machine(data) end diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua index ab70724..79aa5aa 100644 --- a/technic/machines/register/grinder_recipes.lua +++ b/technic/machines/register/grinder_recipes.lua @@ -1,5 +1,4 @@ - -local S = technic.getter +local S = minetest.get_translator("technic") technic.register_recipe_type("grinding", { description = S("Grinding") }) @@ -81,7 +80,7 @@ local function register_dust(name, ingot) local lname = string.lower(name) lname = string.gsub(lname, ' ', '_') minetest.register_craftitem("technic:"..lname.."_dust", { - description = S("%s Dust"):format(S(name)), + description = S("@1 Dust", S(name)), inventory_image = "technic_"..lname.."_dust.png", }) if ingot then @@ -103,8 +102,8 @@ register_dust("Chernobylite", "technic:chernobylite_block") register_dust("Chromium", "technic:chromium_ingot") register_dust("Coal", nil) register_dust("Copper", "default:copper_ingot") -register_dust("Lead", "technic:lead_ingot") register_dust("Gold", "default:gold_ingot") +register_dust("Lead", "technic:lead_ingot") register_dust("Mithril", "moreores:mithril_ingot") register_dust("Silver", "moreores:silver_ingot") register_dust("Stainless Steel", "technic:stainless_steel_ingot") @@ -127,7 +126,7 @@ for p = 0, 35 do local ingot = "technic:uranium"..psuffix.."_ingot" local dust = "technic:uranium"..psuffix.."_dust" minetest.register_craftitem(dust, { - description = S("%s Dust"):format(string.format(S("%.1f%%-Fissile Uranium"), p/10)), + description = S("@1 Dust", S("@1%-Fissile Uranium", string.format("%.1f", p/10))), inventory_image = "technic_uranium_dust.png", on_place_on_ground = minetest.craftitem_place_item, groups = {uranium_dust=1, not_in_creative_inventory=nici}, diff --git a/technic/machines/register/grindings.lua b/technic/machines/register/grindings.lua index 3238725..8e7c2b8 100644 --- a/technic/machines/register/grindings.lua +++ b/technic/machines/register/grindings.lua @@ -1,4 +1,4 @@ -local S = technic.getter +local S = minetest.get_translator("technic") local moretrees = minetest.get_modpath("moretrees") local dye = minetest.get_modpath("dye") @@ -21,7 +21,7 @@ local function register_tree_grinding(name, tree, wood, extract, grinding_color) inventory_image = inventory_image .. "^[colorize:" .. grinding_color end minetest.register_craftitem(grindings_name, { - description = S("%s Grinding"):format(S(name)), + description = S("@1 Grinding", S(name)), inventory_image = inventory_image, }) minetest.register_craft({ diff --git a/technic/machines/register/machine_base.lua b/technic/machines/register/machine_base.lua index 8e1dee7..a10f54f 100644 --- a/technic/machines/register/machine_base.lua +++ b/technic/machines/register/machine_base.lua @@ -1,5 +1,4 @@ - -local S = technic.getter +local S = minetest.get_translator("technic") local fs_helpers = pipeworks.fs_helpers local tube_entry = "^pipeworks_tube_connection_metallic.png" @@ -54,7 +53,7 @@ function technic.register_base_machine(data) "list[current_name;src;"..(4-input_size)..",1;"..input_size..",1;]".. "list[current_name;dst;5,1;2,2;]".. "list[current_player;main;0,5;8,4;]".. - "label[0,0;"..machine_desc:format(tier).."]".. + "label[0,0;"..machine_desc.."]".. "listring[current_name;dst]".. "listring[current_player;main]".. "listring[current_name;src]".. @@ -110,18 +109,18 @@ function technic.register_base_machine(data) local result = technic.get_recipe(typename, inv:get_list("src")) if not result then technic.swap_node(pos, machine_node) - meta:set_string("infotext", S("%s Idle"):format(machine_desc_tier)) + meta:set_string("infotext", S("@1 Idle", machine_desc_tier)) meta:set_int(tier.."_EU_demand", 0) meta:set_int("src_time", 0) return end meta:set_int(tier.."_EU_demand", machine_demand[EU_upgrade+1]) technic.swap_node(pos, machine_node.."_active") - meta:set_string("infotext", S("%s Active"):format(machine_desc_tier)) + meta:set_string("infotext", S("@1 Active", machine_desc_tier)) if meta:get_int("src_time") < round(result.time*10) then if not powered then technic.swap_node(pos, machine_node) - meta:set_string("infotext", S("%s Unpowered"):format(machine_desc_tier)) + meta:set_string("infotext", S("@1 Unpowered", machine_desc_tier)) end return end @@ -143,7 +142,7 @@ function technic.register_base_machine(data) end if not room_for_output then technic.swap_node(pos, machine_node) - meta:set_string("infotext", S("%s Idle"):format(machine_desc_tier)) + meta:set_string("infotext", S("@1 Idle", machine_desc_tier)) meta:set_int(tier.."_EU_demand", 0) meta:set_int("src_time", round(result.time*10)) return diff --git a/technic/machines/register/solar_array.lua b/technic/machines/register/solar_array.lua index 443ac90..fd2b18f 100644 --- a/technic/machines/register/solar_array.lua +++ b/technic/machines/register/solar_array.lua @@ -1,5 +1,4 @@ - -local S = technic.getter +local S = minetest.get_translator("technic") function technic.register_solar_array(data) local tier = data.tier @@ -13,7 +12,7 @@ function technic.register_solar_array(data) -- To take care of some of it solar panels do not work outside daylight hours or if -- built below 0m local pos1 = {} - local machine_name = S("Arrayed Solar %s Generator"):format(tier) + local machine_name = S("Arrayed Solar @1 Generator", data.tier_localized) pos1.y = pos.y + 1 pos1.x = pos.x pos1.z = pos.z @@ -34,7 +33,7 @@ function technic.register_solar_array(data) technic.EU_string(charge_to_give))) meta:set_int(tier.."_EU_supply", charge_to_give) else - meta:set_string("infotext", S("%s Idle"):format(machine_name)) + meta:set_string("infotext", S("@1 Idle", machine_name)) meta:set_int(tier.."_EU_supply", 0) end end @@ -46,7 +45,7 @@ function technic.register_solar_array(data) groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, technic_machine=1, ["technic_"..ltier]=1}, connect_sides = {"bottom"}, sounds = default.node_sound_wood_defaults(), - description = S("Arrayed Solar %s Generator"):format(tier), + description = S("Arrayed Solar @1 Generator", data.tier_localized), active = false, drawtype = "nodebox", paramtype = "light", diff --git a/technic/machines/supply_converter.lua b/technic/machines/supply_converter.lua index 24601c6..16be29f 100644 --- a/technic/machines/supply_converter.lua +++ b/technic/machines/supply_converter.lua @@ -9,7 +9,7 @@ local digilines_path = minetest.get_modpath("digilines") -local S = technic.getter +local S = minetest.get_translator("technic") local cable_entry = "^technic_cable_connection_overlay.png" @@ -18,7 +18,7 @@ local function set_supply_converter_formspec(meta) "field[0.3,0.5;2,1;power;"..S("Input Power")..";"..meta:get_int("power").."]" if digilines_path then formspec = formspec.. - "field[2.3,0.5;3,1;channel;Digiline Channel;"..meta:get_string("channel").."]" + "field[2.3,0.5;3,1;channel;"..S("Digiline Channel")..";"..meta:get_string("channel").."]" end -- The names for these toggle buttons are explicit about which -- state they'll switch to, so that multiple presses (arising @@ -30,9 +30,9 @@ local function set_supply_converter_formspec(meta) formspec = formspec.."button[0,1;5,1;mesecon_mode_0;"..S("Controlled by Mesecon Signal").."]" end if meta:get_int("enabled") == 0 then - formspec = formspec.."button[0,1.75;5,1;enable;"..S("%s Disabled"):format(S("Supply Converter")).."]" + formspec = formspec.."button[0,1.75;5,1;enable;"..S("@1 Disabled", S("Supply Converter")).."]" else - formspec = formspec.."button[0,1.75;5,1;disable;"..S("%s Enabled"):format(S("Supply Converter")).."]" + formspec = formspec.."button[0,1.75;5,1;disable;"..S("@1 Enabled", S("Supply Converter")).."]" end meta:set_string("formspec", formspec) end @@ -153,7 +153,7 @@ local run = function(pos, node, run_stage) technic.EU_string(input), from, technic.EU_string(input * remain), to)) else - meta:set_string("infotext", S("%s Has Bad Cabling"):format(machine_name)) + meta:set_string("infotext", S("@1 Has Bad Cabling", machine_name)) if to then meta:set_int(to.."_EU_supply", 0) end diff --git a/technic/machines/switching_station.lua b/technic/machines/switching_station.lua index 56a0db0..b9c077f 100644 --- a/technic/machines/switching_station.lua +++ b/technic/machines/switching_station.lua @@ -7,7 +7,7 @@ technic.redundant_warn = {} local mesecons_path = minetest.get_modpath("mesecons") local digilines_path = minetest.get_modpath("digilines") -local S = technic.getter +local S = minetest.get_translator("technic") local cable_entry = "^technic_cable_connection_overlay.png" @@ -44,7 +44,7 @@ minetest.register_node("technic:switching_station",{ meta:set_string("infotext", S("Switching Station")) meta:set_string("active", 1) meta:set_string("channel", "switching_station"..minetest.pos_to_string(pos)) - meta:set_string("formspec", "field[channel;Channel;${channel}]") + meta:set_string("formspec", "field[channel;"..S("Channel")..";${channel}]") local poshash = minetest.hash_node_position(pos) technic.redundant_warn.poshash = nil end, @@ -216,7 +216,7 @@ technic.powerctrl_state = true minetest.register_chatcommand("powerctrl", { params = "state", - description = "Enables or disables technic's switching station ABM", + description = S("Enables or disables technic's switching station ABM"), privs = { basic_privs = true }, func = function(name, state) if state == "on" then @@ -243,7 +243,7 @@ end minetest.register_abm({ nodenames = {"technic:switching_station"}, - label = "Switching Station", -- allows the mtt profiler to profile this abm individually + label = S("Switching Station"), -- allows the mtt profiler to profile this abm individually interval = 1, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) @@ -265,7 +265,7 @@ minetest.register_abm({ if meta:get_int("active") ~= 1 then minetest.forceload_free_block(pos) minetest.forceload_free_block(pos1) - meta:set_string("infotext",S("%s Already Present"):format(machine_name)) + meta:set_string("infotext",S("@1 Already Present", machine_name)) local poshash = minetest.hash_node_position(pos) @@ -285,7 +285,7 @@ minetest.register_abm({ PR_nodes, BA_nodes, RE_nodes = get_network(pos, pos1, tier) else --dprint("Not connected to a network") - meta:set_string("infotext", S("%s Has No Network"):format(machine_name)) + meta:set_string("infotext", S("@1 Has No Network", machine_name)) minetest.forceload_free_block(pos) minetest.forceload_free_block(pos1) return @@ -457,7 +457,7 @@ local function switching_station_timeout_count(pos, tier) end end minetest.register_abm({ - label = "Machines: timeout check", + label = S("Machines: timeout check"), nodenames = {"group:technic_machine"}, interval = 1, chance = 1, @@ -473,7 +473,7 @@ minetest.register_abm({ end if nodedef then local meta = minetest.get_meta(pos) - meta:set_string("infotext", S("%s Has No Network"):format(nodedef.description)) + meta:set_string("infotext", S("@1 Has No Network", nodedef.description)) end end end diff --git a/technic/mod.conf b/technic/mod.conf index f2cefaa..5233a7c 100644 --- a/technic/mod.conf +++ b/technic/mod.conf @@ -1,3 +1,4 @@ name = technic depends = default, pipeworks, technic_worldgen, basic_materials -optional_depends = bucket, screwdriver, mesecons, mesecons_mvps, digilines, digiline_remote, intllib, unified_inventory, vector_extras, dye +optional_depends = bucket, screwdriver, mesecons, mesecons_mvps, digilines, digiline_remote, unified_inventory, vector_extras, dye +min_minetest_version = 5.0.0 diff --git a/technic/radiation.lua b/technic/radiation.lua index 4f511ab..99266b3 100644 --- a/technic/radiation.lua +++ b/technic/radiation.lua @@ -28,7 +28,7 @@ or complex internal structure should show no radiation resistance. Fractional resistance values are permitted. --]] -local S = technic.getter +local S = minetest.get_translator("technic") local rad_resistance_node = { ["default:brick"] = 13, @@ -347,7 +347,7 @@ end if minetest.settings:get_bool("enable_damage") then minetest.register_abm({ - label = "Radiation damage", + label = S("Radiation damage"), nodenames = {"group:radioactive"}, interval = 1, chance = 1, @@ -383,7 +383,7 @@ local griefing = technic.config:get_bool("enable_corium_griefing") for _, state in pairs({"flowing", "source"}) do minetest.register_node("technic:corium_"..state, { - description = S(state == "source" and "Corium Source" or "Flowing Corium"), + description = (state == "source") and S("Corium Source") or S("Flowing Corium"), drawtype = (state == "source" and "liquid" or "flowingliquid"), tiles = {{ name = "technic_corium_"..state.."_animated.png", @@ -448,7 +448,7 @@ if rawget(_G, "bucket") and bucket.register_liquid then "technic:corium_flowing", "technic:bucket_corium", "technic_bucket_corium.png", - "Corium Bucket" + S("Corium Bucket") ) end @@ -495,7 +495,7 @@ minetest.register_abm({ if griefing then minetest.register_abm({ - label = "Corium: griefing", + label = S("Corium: griefing"), nodenames = {"technic:corium_source", "technic:corium_flowing"}, interval = 4, chance = 4, diff --git a/technic/register.lua b/technic/register.lua index 8f75b81..085aeec 100644 --- a/technic/register.lua +++ b/technic/register.lua @@ -11,12 +11,13 @@ technic.power_tools = {} technic.networks = {} -function technic.register_tier(tier, description) +function technic.register_tier(tier) technic.machines[tier] = {} end function technic.register_machine(tier, nodename, machine_type) if not technic.machines[tier] then + print("Warning: trying to register a machine with an unregistered tier") return end technic.machines[tier][nodename] = machine_type diff --git a/technic/tools/cans.lua b/technic/tools/cans.lua index c79093f..bdedb5a 100644 --- a/technic/tools/cans.lua +++ b/technic/tools/cans.lua @@ -1,4 +1,4 @@ -local S = technic.getter +local S = minetest.get_translator("technic") local function set_can_wear(itemstack, level, max_level) local temp diff --git a/technic/tools/chainsaw.lua b/technic/tools/chainsaw.lua index 99beb52..5bb66c6 100644 --- a/technic/tools/chainsaw.lua +++ b/technic/tools/chainsaw.lua @@ -220,7 +220,7 @@ for _, node in pairs(nodes) do end end -local S = technic.getter +local S = minetest.get_translator("technic") technic.register_power_tool("technic:chainsaw", chainsaw_max_charge) diff --git a/technic/tools/flashlight.lua b/technic/tools/flashlight.lua index 84decbb..dd30f09 100644 --- a/technic/tools/flashlight.lua +++ b/technic/tools/flashlight.lua @@ -1,10 +1,9 @@ -- Original code comes from walkin_light mod by Echo -- http://minetest.net/forum/viewtopic.php?id=2621 +local S = minetest.get_translator("technic") local flashlight_max_charge = 30000 -local S = technic.getter - technic.register_power_tool("technic:flashlight", flashlight_max_charge) minetest.register_alias("technic:light_off", "air") diff --git a/technic/tools/mining_drill.lua b/technic/tools/mining_drill.lua index 09ebdf9..c28682d 100644 --- a/technic/tools/mining_drill.lua +++ b/technic/tools/mining_drill.lua @@ -1,7 +1,7 @@ local max_charge = {50000, 200000, 650000} local power_usage_per_node = {200, 500, 800} -local S = technic.getter +local S = minetest.get_translator("technic") minetest.register_craft({ output = 'technic:mining_drill', @@ -249,14 +249,14 @@ local function mining_drill_mk2_setmode(user,itemstack) mode=0 end if meta["mode"]==nil then - minetest.chat_send_player(player_name, S("Use while sneaking to change Mining Drill Mk%d modes."):format(2)) + minetest.chat_send_player(player_name, S("Use while sneaking to change Mining Drill Mk@1 modes.", "2")) meta["mode"]=0 mode=0 end mode=(meta["mode"]) mode=mode+1 if mode>=5 then mode=1 end - minetest.chat_send_player(player_name, S("Mining Drill Mk%d Mode %d"):format(2, mode)..": "..mining_drill_mode_text[mode][1]) + minetest.chat_send_player(player_name, S("Mining Drill Mk@1 Mode @2: ", "2", string.format("%d", mode))..mining_drill_mode_text[mode][1]) itemstack:set_name("technic:mining_drill_mk2_"..mode); meta["mode"]=mode itemstack:set_metadata(minetest.serialize(meta)) @@ -272,14 +272,14 @@ local function mining_drill_mk3_setmode(user,itemstack) mode=0 end if meta["mode"]==nil then - minetest.chat_send_player(player_name, S("Use while sneaking to change Mining Drill Mk%d modes."):format(3)) + minetest.chat_send_player(player_name, S("Use while sneaking to change Mining Drill Mk@1 modes.", "3")) meta["mode"]=0 mode=0 end mode=(meta["mode"]) mode=mode+1 if mode>=6 then mode=1 end - minetest.chat_send_player(player_name, S("Mining Drill Mk%d Mode %d"):format(3, mode)..": "..mining_drill_mode_text[mode][1]) + minetest.chat_send_player(player_name, S("Mining Drill Mk@1 Mode @2: ", "3", string.format("%d", mode))..mining_drill_mode_text[mode][1]) itemstack:set_name("technic:mining_drill_mk3_"..mode); meta["mode"]=mode itemstack:set_metadata(minetest.serialize(meta)) @@ -334,7 +334,7 @@ end technic.register_power_tool("technic:mining_drill", max_charge[1]) minetest.register_tool("technic:mining_drill", { - description = S("Mining Drill Mk%d"):format(1), + description = S("Mining Drill Mk@1", "1"), inventory_image = "technic_mining_drill.png", stack_max = 1, wear_represents = "technic_RE_charge", @@ -362,7 +362,7 @@ minetest.register_tool("technic:mining_drill", { }) minetest.register_tool("technic:mining_drill_mk2", { - description = S("Mining Drill Mk%d"):format(2), + description = S("Mining Drill Mk@1", "2"), inventory_image = "technic_mining_drill_mk2.png", wear_represents = "technic_RE_charge", on_refill = technic.refill_RE_charge, @@ -377,7 +377,7 @@ technic.register_power_tool("technic:mining_drill_mk2", max_charge[2]) for i = 1, 4 do technic.register_power_tool("technic:mining_drill_mk2_"..i, max_charge[2]) minetest.register_tool("technic:mining_drill_mk2_"..i, { - description = S("Mining Drill Mk%d Mode %d"):format(2, i), + description = S("Mining Drill Mk@1 Mode @2", "2", string.format("%d", i)), inventory_image = "technic_mining_drill_mk2.png^technic_tool_mode"..i..".png", wield_image = "technic_mining_drill_mk2.png", wear_represents = "technic_RE_charge", @@ -391,7 +391,7 @@ for i = 1, 4 do end minetest.register_tool("technic:mining_drill_mk3", { - description = S("Mining Drill Mk%d"):format(3), + description = S("Mining Drill Mk@1", "3"), inventory_image = "technic_mining_drill_mk3.png", wear_represents = "technic_RE_charge", on_refill = technic.refill_RE_charge, @@ -406,7 +406,7 @@ technic.register_power_tool("technic:mining_drill_mk3", max_charge[3]) for i=1,5,1 do technic.register_power_tool("technic:mining_drill_mk3_"..i, max_charge[3]) minetest.register_tool("technic:mining_drill_mk3_"..i, { - description = S("Mining Drill Mk%d Mode %d"):format(3, i), + description = S("Mining Drill Mk@1 Mode @2", "3", string.format("%d",i)), inventory_image = "technic_mining_drill_mk3.png^technic_tool_mode"..i..".png", wield_image = "technic_mining_drill_mk3.png", wear_represents = "technic_RE_charge", diff --git a/technic/tools/mining_lasers.lua b/technic/tools/mining_lasers.lua index e4dd178..ef1d729 100644 --- a/technic/tools/mining_lasers.lua +++ b/technic/tools/mining_lasers.lua @@ -6,7 +6,7 @@ local mining_lasers_list = { } local allow_entire_discharging = true -local S = technic.getter +local S = minetest.get_translator("technic") minetest.register_craft({ output = "technic:laser_mk1", @@ -94,7 +94,7 @@ end for _, m in pairs(mining_lasers_list) do technic.register_power_tool("technic:laser_mk"..m[1], m[3]) minetest.register_tool("technic:laser_mk"..m[1], { - description = S("Mining Laser Mk%d"):format(m[1]), + description = S("Mining Laser Mk@1", string.format("%d", m[1])), inventory_image = "technic_mining_laser_mk"..m[1]..".png", range = 0, stack_max = 1, diff --git a/technic/tools/prospector.lua b/technic/tools/prospector.lua index d76eb07..0bf9c98 100644 --- a/technic/tools/prospector.lua +++ b/technic/tools/prospector.lua @@ -1,4 +1,4 @@ -local S = technic.getter +local S = minetest.get_translator("technic") technic.register_power_tool("technic:prospector", 300000) @@ -25,7 +25,7 @@ minetest.register_tool("technic:prospector", { local charge_to_take = toolmeta.look_depth * (toolmeta.look_depth + 1) * look_diameter * look_diameter if toolmeta.charge < charge_to_take then return end if toolmeta.target == "" then - minetest.chat_send_player(user:get_player_name(), "Right-click to set target block type") + minetest.chat_send_player(user:get_player_name(), S("Right-click to set target block type")) return end if not technic.creative_mode then @@ -68,29 +68,29 @@ minetest.register_tool("technic:prospector", { "item_image[0,0;1,1;"..toolstack:get_name().."]".. "label[1,0;"..minetest.formspec_escape(toolstack:get_definition().description).."]".. (toolmeta.target ~= "" and - "label[0,1.5;Current target:]".. + "label[0,1.5;"..S("Current target:").."]".. "label[0,2;"..minetest.formspec_escape(minetest.registered_nodes[toolmeta.target].description).."]".. "item_image[0,2.5;1,1;"..toolmeta.target.."]" or - "label[0,1.5;No target set]").. + "label[0,1.5;"..S("No target set").."]").. (pointed and - "label[3.5,1.5;May set new target:]".. + "label[3.5,1.5;"..S("May set new target:").."]".. "label[3.5,2;"..minetest.formspec_escape(minetest.registered_nodes[pointed].description).."]".. "item_image[3.5,2.5;1,1;"..pointed.."]".. - "button_exit[3.5,3.65;2,0.5;target_"..pointed..";Set target]" or - "label[3.5,1.5;No new target available]").. - "label[0,4.5;Region cross section:]".. + "button_exit[3.5,3.65;2,0.5;target_"..pointed..";"..S("Set target").."]" or + "label[3.5,1.5;"..S("No new target available").."]").. + "label[0,4.5;"..S("Region cross section:").."]".. "label[0,5;"..look_diameter.."x"..look_diameter.."]".. - "label[3.5,4.5;Set region cross section:]".. + "label[3.5,4.5;"..S("Set region cross section:").."]".. "button_exit[3.5,5.15;1,0.5;look_radius_0;1x1]".. "button_exit[4.5,5.15;1,0.5;look_radius_1;3x3]".. "button_exit[5.5,5.15;1,0.5;look_radius_3;7x7]".. - "label[0,6;Region depth:]".. + "label[0,6;"..S("Region depth:").."]".. "label[0,6.5;"..toolmeta.look_depth.."]".. - "label[3.5,6;Set region depth:]".. + "label[3.5,6;"..S("Set region depth:").."]".. "button_exit[3.5,6.65;1,0.5;look_depth_7;7]".. "button_exit[4.5,6.65;1,0.5;look_depth_14;14]".. "button_exit[5.5,6.65;1,0.5;look_depth_21;21]".. - "label[0,7.5;Accuracy:]".. + "label[0,7.5;"..S("Accuracy:").."]".. "label[0,8;98%]") return end, diff --git a/technic/tools/sonic_screwdriver.lua b/technic/tools/sonic_screwdriver.lua index 536f47c..7e5ee3a 100644 --- a/technic/tools/sonic_screwdriver.lua +++ b/technic/tools/sonic_screwdriver.lua @@ -1,6 +1,5 @@ local sonic_screwdriver_max_charge = 15000 - -local S = technic.getter +local S = minetest.get_translator("technic") technic.register_power_tool("technic:sonic_screwdriver", sonic_screwdriver_max_charge) diff --git a/technic/tools/tree_tap.lua b/technic/tools/tree_tap.lua index ae68b56..fc94fae 100644 --- a/technic/tools/tree_tap.lua +++ b/technic/tools/tree_tap.lua @@ -1,5 +1,5 @@ +local S = minetest.get_translator("technic") -local S = technic.getter local mesecons_materials = minetest.get_modpath("mesecons_materials") minetest.register_tool("technic:treetap", { @@ -62,7 +62,7 @@ minetest.register_craftitem("technic:rubber", { }) minetest.register_abm({ - label = "Tools: tree tap", + label = S("Tools: tree tap"), nodenames = {"moretrees:rubber_tree_trunk_empty"}, interval = 60, chance = 15, diff --git a/technic/tools/vacuum.lua b/technic/tools/vacuum.lua index 7b01af8..1b4263e 100644 --- a/technic/tools/vacuum.lua +++ b/technic/tools/vacuum.lua @@ -3,7 +3,7 @@ local vacuum_max_charge = 10000 -- 10000 - Maximum charge of the vacuum c local vacuum_charge_per_object = 100 -- 100 - Capable of picking up 50 objects local vacuum_range = 8 -- 8 - Area in which to pick up objects -local S = technic.getter +local S = minetest.get_translator("technic") technic.register_power_tool("technic:vacuum", vacuum_max_charge) diff --git a/technic_chests/common.lua b/technic_chests/common.lua index 6369b7a..0f988b0 100644 --- a/technic_chests/common.lua +++ b/technic_chests/common.lua @@ -47,20 +47,14 @@ function technic.chests.inv_take(pos, listname, index, stack, player) end function technic.chests.on_inv_move(pos, from_list, from_index, to_list, to_index, count, player) - minetest.log("action", player:get_player_name().. - " moves stuff in chest at " - ..minetest.pos_to_string(pos)) + minetest.log("action", player:get_player_name().." moves stuff in chest at "..minetest.pos_to_string(pos)) end function technic.chests.on_inv_put(pos, listname, index, stack, player) - minetest.log("action", player:get_player_name() .. - " moves " .. stack:get_name() .. - " to chest at " .. minetest.pos_to_string(pos)) + minetest.log("action", player:get_player_name().." moves "..stack:get_name().." to chest at "..minetest.pos_to_string(pos)) end function technic.chests.on_inv_take(pos, listname, index, stack, player) - minetest.log("action", player:get_player_name() .. - " takes " .. stack:get_name() .. - " from chest at " .. minetest.pos_to_string(pos)) + minetest.log("action", player:get_player_name().." takes "..stack:get_name().." from chest at "..minetest.pos_to_string(pos)) end diff --git a/technic_chests/copper_chest.lua b/technic_chests/copper_chest.lua index c989bac..fc01526 100644 --- a/technic_chests/copper_chest.lua +++ b/technic_chests/copper_chest.lua @@ -1,3 +1,6 @@ +-- Translation support +local S = minetest.get_translator("technic_chests") + minetest.register_craft({ output = 'technic:copper_chest 1', recipe = { @@ -25,7 +28,7 @@ minetest.register_craft({ } }) -technic.chests:register("Copper", { +technic.chests:register(S("Copper"), { width = 12, height = 5, sort = true, @@ -33,9 +36,9 @@ technic.chests:register("Copper", { infotext = false, color = false, locked = false, -}) +}, "copper") -technic.chests:register("Copper", { +technic.chests:register(S("Copper"), { width = 12, height = 5, sort = true, @@ -43,5 +46,5 @@ technic.chests:register("Copper", { infotext = false, color = false, locked = true, -}) +}, "copper") diff --git a/technic_chests/depends.txt b/technic_chests/depends.txt deleted file mode 100644 index 3fcc834..0000000 --- a/technic_chests/depends.txt +++ /dev/null @@ -1,7 +0,0 @@ -default -basic_materials -moreblocks? -moreores? -pipeworks? -intllib? -tubelib? diff --git a/technic_chests/gold_chest.lua b/technic_chests/gold_chest.lua index 24cbb5c..865b340 100644 --- a/technic_chests/gold_chest.lua +++ b/technic_chests/gold_chest.lua @@ -1,3 +1,5 @@ +-- Translation support +local S = minetest.get_translator("technic_chests") local material_list if minetest.get_modpath("moreores") then @@ -36,7 +38,7 @@ minetest.register_craft({ } }) -technic.chests:register("Gold", { +technic.chests:register(S("Gold"), { width = 15, height = 6, sort = true, @@ -44,9 +46,9 @@ technic.chests:register("Gold", { infotext = true, color = true, locked = false, -}) +}, "gold") -technic.chests:register("Gold", { +technic.chests:register(S("Gold"), { width = 15, height = 6, sort = true, @@ -54,5 +56,5 @@ technic.chests:register("Gold", { infotext = true, color = true, locked = true, -}) +}, "gold") diff --git a/technic_chests/iron_chest.lua b/technic_chests/iron_chest.lua index a1945bc..bb97c16 100644 --- a/technic_chests/iron_chest.lua +++ b/technic_chests/iron_chest.lua @@ -1,3 +1,6 @@ +-- Translation support +local S = minetest.get_translator("technic_chests") + local cast_iron_ingot if minetest.get_modpath("technic_worldgen") then cast_iron_ingot = "technic:cast_iron_ingot" @@ -32,7 +35,7 @@ minetest.register_craft({ } }) -technic.chests:register("Iron", { +technic.chests:register(S("Iron"), { width = 9, height = 5, sort = true, @@ -40,9 +43,9 @@ technic.chests:register("Iron", { infotext = false, color = false, locked = false, -}) +}, "iron") -technic.chests:register("Iron", { +technic.chests:register(S("Iron"), { width = 9, height = 5, sort = true, @@ -50,5 +53,5 @@ technic.chests:register("Iron", { infotext = false, color = false, locked = true, -}) +}, "iron") diff --git a/technic_chests/locale/de.txt b/technic_chests/locale/de.txt deleted file mode 100644 index e22d2c2..0000000 --- a/technic_chests/locale/de.txt +++ /dev/null @@ -1,41 +0,0 @@ -# German Translation for technic_chests -# Deutsche Übersetzung von technic_chests -# by Xanthin - -%s Chest = %struhe -%s Locked Chest = Verschlossene %struhe -%s Locked Chest (owned by %s) = Verschlossene %struhe (gehoert %s) -Color Filter: %s = Farbfilter: %s -Edit chest description: = Bearbeite die Beschreibung - -# Colors -Black = Schwarz -Blue = Blau -Brown = Braun -Cyan = Tuerkis -Dark Green = Dunkelgruen -Dark Grey = Dunkelgrau -Green = Gruen -Grey = Grau -Magenta = Magenta -Orange = Orange -Pink = Rosa -Red = Rot -Violet = Violett -White = Weiss -Yellow = Gelb -None = Farblos - -# Materials -Copper = Kupfer -Gold = Gold -Iron = Eisen -Mithril = Mithril -Silver = Silber -Wooden = Holz - -# Sorting -Sort = -Auto-sort is %s = -Off = -On = diff --git a/technic_chests/locale/es.txt b/technic_chests/locale/es.txt deleted file mode 100644 index ec38d3f..0000000 --- a/technic_chests/locale/es.txt +++ /dev/null @@ -1,39 +0,0 @@ -# technic_chests translation template - -%s Chest = Cofre de %s -%s Locked Chest = Cofre de %s Bloqueado -%s Locked Chest (owned by %s) = Cofre de %s Bloqueado (propiedad de %s) -Color Filter: %s = Filtro por Color: %s -Edit chest description: = Editar la descripción del cofre - -# Colors -Black = Negro -Blue = Azul -Brown = Café -Cyan = Cian -Dark Green = Verde Oscuro -Dark Grey = Gris Oscuro -Green = Verde -Grey = Gris -Magenta = Magenta -Orange = Naranja -Pink = Rosado -Red = Rojo -Violet = Violeta -White = Blanco -Yellow = Amarillo -None = Ninguno - -# Materials -Copper = Cobre -Gold = Oro -Iron = Hierro -Mithril = Mitrilo -Silver = Plata -Wooden = Madera - -# Sorting -Sort = Ordenar -Auto-sort is %s = El orden Automático esta %s -Off = Apagado -On = Encendido diff --git a/technic_chests/locale/fr.txt b/technic_chests/locale/fr.txt deleted file mode 100644 index 58f868a..0000000 --- a/technic_chests/locale/fr.txt +++ /dev/null @@ -1,39 +0,0 @@ -# technic_chests translation template - -%s Chest = Coffre en %s -%s Locked Chest = Coffre verrouillé en %s -%s Locked Chest (owned by %s) = Coffre verrouillé en %s (appartient à %s) -Color Filter: %s = Filtre couleur : %s -Edit chest description: = Editer la description du coffre - -# Colors -Black = Noir -Blue = Bleu -Brown = Marron -Cyan = Cyan -Dark Green = Vert foncé -Dark Grey = Gris foncé -Green = Vert -Grey = Gris -Magenta = Magenta -Orange = Orange -Pink = Rose -Red = Rouge -Violet = Violet -White = Blanc -Yellow = Jaune -None = Rien - -# Materials -Copper = cuivre -Gold = or -Iron = fer -Mithril = mithril -Silver = argent -Wooden = bois - -# Sorting -Sort = Tri -Auto-sort is %s = Tri automatique %s -Off = désactivé -On = activé diff --git a/technic_chests/locale/pl.txt b/technic_chests/locale/pl.txt deleted file mode 100644 index ae24b5d..0000000 --- a/technic_chests/locale/pl.txt +++ /dev/null @@ -1,41 +0,0 @@ -# Polish Translation for technic_chests -# Polskie tłumaczenie technic_chests -# by mat9117 - -%s Chest = %s Skrzynia -%s Locked Chest = %s Zamknięta skrzynia -%s Locked Chest (owned by %s) = %s Zamknięta skrzynia (należy do %s) -Color Filter: %s = Filtr kolorów: %s -Edit chest description: = Edytuj opis skrzyni - -# Colors -Black = Czarny -Blue = Niebieski -Brown = Brązowy -Cyan = Cyan -Dark Green = Ciemnozielony -Dark Grey = Ciemnoszary -Green = Zielony -Grey = Szary -Magenta = Magenta -Orange = Pomarańczowy -Pink = Różowy -Red = Czerwony -Violet = Fioletowy -White = Biały -Yellow = Żółty -None = Żaden - -# Materials -Copper = Miedziana -Gold = Złota -Iron = Żelazna -Mithril = Mithrilowa -Silver = Srebrna -Wooden = Drewniana - -# Sorting -Sort = Sortuj -Auto-sort is %s = Autosortowanie jest %s -Off = Wyłaczone -On = Włączone diff --git a/technic_chests/locale/pt_BR.txt b/technic_chests/locale/pt_BR.txt deleted file mode 100644 index 35e5845..0000000 --- a/technic_chests/locale/pt_BR.txt +++ /dev/null @@ -1,41 +0,0 @@ -# Braziliam portuguese translation for technic_chests -# Tradução portuguesa brasileira para technic_chests -# By Sires - -%s Chest = Baú %s -%s Locked Chest = Baú Trancado %s -%s Locked Chest (owned by %s) = Baú Trancado %s (pertence a/à %s) -Color Filter: %s = Filtro de Cor: %s -Edit chest description: = Editar descrição do baú: - -# Colors -Black = Preto -Blue = Azul -Brown = Marrom -Cyan = Ciano -Dark Green = Verde Escuro -Dark Grey = Cinza Escuro -Green = Verde -Grey = Cinza -Magenta = Magenta -Orange = Laranja -Pink = Rosa -Red = Vermelho -Violet = Violeta -White = Branco -Yellow = Amarelo -None = Nada - -# Materials -Copper = Cobre -Gold = Ouro -Iron = Ferro -Mithril = Mithril -Silver = Prata -Wooden = de Madeira - -# Sorting -Sort = Ordenar -Auto-sort is %s = Auto-ordenação está %s -Off = Desligada -On = Ligada diff --git a/technic_chests/locale/technic_chests.de.tr b/technic_chests/locale/technic_chests.de.tr new file mode 100644 index 0000000..8620a52 --- /dev/null +++ b/technic_chests/locale/technic_chests.de.tr @@ -0,0 +1,58 @@ +# textdomain: technic_chests + + + +### copper_chest.lua ### + +# Materials +Copper=Kupfer + +### gold_chest.lua ### + +Gold=Gold + +### iron_chest.lua ### + +Iron=Eisen + +### mithril_chest.lua ### + +Mithril=Mithril + +### register.lua ### + +Allow splitting incoming stacks from tubes= +# Colors +Black=Schwarz +Blue=Blau +Brown=Braun +Cyan=Tuerkis +Dark Green=Dunkelgruen +Dark Grey=Dunkelgrau +Green=Gruen +Grey=Grau +Magenta=Magenta +Orange=Orange +Pink=Rosa +Red=Rot +Violet=Violett +White=Weiss +Yellow=Gelb +Auto-sort is @1= +On= +Off= +Edit chest description:=Bearbeite die Beschreibung +None=Farblos +Color Filter: @1=Farbfilter: @1 +# textdomain: technic_chests +# German Translation for technic_chests +# Deutsche Übersetzung von technic_chests +# by Xanthin +@1 Chest=@1truhe +Sort= +@1 Locked Chest (owned by @2)=Verschlossene @1truhe (gehoert @2) +@1 Locked Chest=Verschlossene @1truhe + +### silver_chest.lua ### + +Silver=Silber diff --git a/technic_chests/locale/technic_chests.es.tr b/technic_chests/locale/technic_chests.es.tr new file mode 100644 index 0000000..bce6ce5 --- /dev/null +++ b/technic_chests/locale/technic_chests.es.tr @@ -0,0 +1,57 @@ +# textdomain: technic_chests + + + +### copper_chest.lua ### + +# Materials +Copper=Cobre + +### gold_chest.lua ### + +Gold=Oro + +### iron_chest.lua ### + +Iron=Hierro + +### mithril_chest.lua ### + +Mithril=Mitrilo + +### register.lua ### + +Allow splitting incoming stacks from tubes= +# Colors +Black=Negro +Blue=Azul +Brown=Café +Cyan=Cian +Dark Green=Verde Oscuro +Dark Grey=Gris Oscuro +Green=Verde +Grey=Gris +Magenta=Magenta +Orange=Naranja +Pink=Rosado +Red=Rojo +Violet=Violeta +White=Blanco +Yellow=Amarillo +Auto-sort is @1=El orden Automático esta @1 +On=Encendido +Off=Apagado +Edit chest description:=Editar la descripción del cofre +None=Ninguno +Color Filter: @1=Filtro por Color: @1 +# textdomain: technic_chests +# technic_chests translation template +@1 Chest=Cofre de @1 +# Sorting +Sort=Ordenar +@1 Locked Chest (owned by @2)=Cofre de @1 Bloqueado (propiedad de @2) +@1 Locked Chest=Cofre de @1 Bloqueado + +### silver_chest.lua ### + +Silver=Plata diff --git a/technic_chests/locale/technic_chests.fr.tr b/technic_chests/locale/technic_chests.fr.tr new file mode 100644 index 0000000..fb151fb --- /dev/null +++ b/technic_chests/locale/technic_chests.fr.tr @@ -0,0 +1,57 @@ +# textdomain: technic_chests + + + +### copper_chest.lua ### + +# Materials +Copper=cuivre + +### gold_chest.lua ### + +Gold=or + +### iron_chest.lua ### + +Iron=fer + +### mithril_chest.lua ### + +Mithril=mithril + +### register.lua ### + +Allow splitting incoming stacks from tubes=Séparer les piles venant des tuyaux +# Colors +Black=Noir +Blue=Bleu +Brown=Marron +Cyan=Cyan +Dark Green=Vert foncé +Dark Grey=Gris foncé +Green=Vert +Grey=Gris +Magenta=Magenta +Orange=Orange +Pink=Rose +Red=Rouge +Violet=Violet +White=Blanc +Yellow=Jaune +Auto-sort is @1=Tri automatique @1 +On=activé +Off=désactivé +Edit chest description:=Éditer la description du coffre : +None=Rien +Color Filter: @1=Filtre couleur : @1 +# textdomain: technic_chests +# technic_chests translation template +@1 Chest=Coffre en @1 +# Sorting +Sort=Trier +@1 Locked Chest (owned by @2)=Coffre verrouillé en @1 (appartient à @2) +@1 Locked Chest=Coffre verrouillé en @1 + +### silver_chest.lua ### + +Silver=argent diff --git a/technic_chests/locale/technic_chests.pl.tr b/technic_chests/locale/technic_chests.pl.tr new file mode 100644 index 0000000..f6a181b --- /dev/null +++ b/technic_chests/locale/technic_chests.pl.tr @@ -0,0 +1,59 @@ +# textdomain: technic_chests + + + +### copper_chest.lua ### + +# Materials +Copper=Miedziana + +### gold_chest.lua ### + +Gold=Złota + +### iron_chest.lua ### + +Iron=Żelazna + +### mithril_chest.lua ### + +Mithril=Mithrilowa + +### register.lua ### + +Allow splitting incoming stacks from tubes= +# Colors +Black=Czarny +Blue=Niebieski +Brown=Brązowy +Cyan=Cyan +Dark Green=Ciemnozielony +Dark Grey=Ciemnoszary +Green=Zielony +Grey=Szary +Magenta=Magenta +Orange=Pomarańczowy +Pink=Różowy +Red=Czerwony +Violet=Fioletowy +White=Biały +Yellow=Żółty +Auto-sort is @1=Autosortowanie jest @1 +On=Włączone +Off=Wyłaczone +Edit chest description:=Edytuj opis skrzyni +None=Żaden +Color Filter: @1=Filtr kolorów: @1 +# textdomain: technic_chests +# Polish Translation for technic_chests +# Polskie tłumaczenie technic_chests +# by mat9117 +@1 Chest=@1 Skrzynia +# Sorting +Sort=Sortuj +@1 Locked Chest (owned by @2)=@1 Zamknięta skrzynia (należy do @2) +@1 Locked Chest=@1 Zamknięta skrzynia + +### silver_chest.lua ### + +Silver=Srebrna diff --git a/technic_chests/locale/technic_chests.pt_BR.tr b/technic_chests/locale/technic_chests.pt_BR.tr new file mode 100644 index 0000000..0c4f266 --- /dev/null +++ b/technic_chests/locale/technic_chests.pt_BR.tr @@ -0,0 +1,59 @@ +# textdomain: technic_chests + + + +### copper_chest.lua ### + +# Materials +Copper=Cobre + +### gold_chest.lua ### + +Gold=Ouro + +### iron_chest.lua ### + +Iron=Ferro + +### mithril_chest.lua ### + +Mithril=Mithril + +### register.lua ### + +Allow splitting incoming stacks from tubes= +# Colors +Black=Preto +Blue=Azul +Brown=Marrom +Cyan=Ciano +Dark Green=Verde Escuro +Dark Grey=Cinza Escuro +Green=Verde +Grey=Cinza +Magenta=Magenta +Orange=Laranja +Pink=Rosa +Red=Vermelho +Violet=Violeta +White=Branco +Yellow=Amarelo +Auto-sort is @1=Auto-ordenação está @1 +On=Ligada +Off=Desligada +Edit chest description:=Editar descrição do baú: +None=Nada +Color Filter: @1=Filtro de Cor: @1 +# textdomain: technic_chests +# Braziliam portuguese translation for technic_chests +# Tradução portuguesa brasileira para technic_chests +# By Sires +@1 Chest=Baú @1 +# Sorting +Sort=Ordenar +@1 Locked Chest (owned by @2)=Baú Trancado @1 (pertence a/à @2) +@1 Locked Chest=Baú Trancado @1 + +### silver_chest.lua ### + +Silver=Prata diff --git a/technic_chests/locale/technic_chests.tr.tr b/technic_chests/locale/technic_chests.tr.tr new file mode 100644 index 0000000..59163ec --- /dev/null +++ b/technic_chests/locale/technic_chests.tr.tr @@ -0,0 +1,59 @@ +# textdomain: technic_chests + + + +### copper_chest.lua ### + +# Materials - Metaryeller +Copper=Bakır + +### gold_chest.lua ### + +Gold=Altın + +### iron_chest.lua ### + +Iron=Demir + +### mithril_chest.lua ### + +Mithril=Mithril + +### register.lua ### + +Allow splitting incoming stacks from tubes= +# Colors - Renkler +Black=Siyah +Blue=Mavi +Brown=Kahverengi +Cyan=Cam göbeği +Dark Green=Koyu yeşil +Dark Grey=Koyu gri +Green=Yeşil +Grey=Gri +Magenta=Mor +Orange=Turuncu +Pink=Pembe +Red=Kırmızı +Violet=Koyu mor +White=Beyaz +Yellow=Sarı +Auto-sort is @1=Otomatik sıralama @1 +On=Açık +Off=Kapalı +Edit chest description:=Sandık bilgilerini düzenle +None=Hiç +Color Filter: @1=Renk süzgeci: @1 +# textdomain: technic_chests +# Turkish translation +# mahmutelmas06@hotmail.com +# Türkçe çeviri +@1 Chest=@1 Sandık +# Sorting - Sıralama +Sort=Sırala +@1 Locked Chest (owned by @2)=@1 Kilitli sandık (Sahibi @2) +@1 Locked Chest=@1 Kilitli sandık + +### silver_chest.lua ### + +Silver=Gümüş diff --git a/technic_chests/locale/template.txt b/technic_chests/locale/template.txt index 4d422b2..d8269cb 100644 --- a/technic_chests/locale/template.txt +++ b/technic_chests/locale/template.txt @@ -1,39 +1,57 @@ -# technic_chests translation template +# textdomain: technic_chests -%s Chest = -%s Locked Chest = -%s Locked Chest (owned by %s) = -Color Filter: %s = -Edit chest description: = -# Colors -Black = -Blue = -Brown = -Cyan = -Dark Green = -Dark Grey = -Green = -Grey = -Magenta = -Orange = -Pink = -Red = -Violet = -White = -Yellow = -None = + +### copper_chest.lua ### # Materials -Copper = -Gold = -Iron = -Mithril = -Silver = -Wooden = +Copper= +### gold_chest.lua ### + +Gold= + +### iron_chest.lua ### + +Iron= + +### mithril_chest.lua ### + +Mithril= + +### register.lua ### + +Allow splitting incoming stacks from tubes= +# Colors +Black= +Blue= +Brown= +Cyan= +Dark Green= +Dark Grey= +Green= +Grey= +Magenta= +Orange= +Pink= +Red= +Violet= +White= +Yellow= +Auto-sort is @1= +On= +Off= +Edit chest description:= +None= +Color Filter: @1= +# textdomain: technic_chests +# technic_chests translation template +@1 Chest= # Sorting -Sort = -Auto-sort is %s = -Off = -On = +Sort= +@1 Locked Chest (owned by @2)= +@1 Locked Chest= + +### silver_chest.lua ### + +Silver= diff --git a/technic_chests/locale/tr.txt b/technic_chests/locale/tr.txt deleted file mode 100644 index 1f07ce6..0000000 --- a/technic_chests/locale/tr.txt +++ /dev/null @@ -1,41 +0,0 @@ -# Turkish translation -# mahmutelmas06@hotmail.com -# Türkçe çeviri - -%s Chest = %s Sandık -%s Locked Chest = %s Kilitli sandık -%s Locked Chest (owned by %s) = %s Kilitli sandık (Sahibi %s) -Color Filter: %s = Renk süzgeci: %s -Edit chest description: = Sandık bilgilerini düzenle - -# Colors - Renkler -Black = Siyah -Blue = Mavi -Brown = Kahverengi -Cyan = Cam göbeği -Dark Green = Koyu yeşil -Dark Grey = Koyu gri -Green = Yeşil -Grey = Gri -Magenta = Mor -Orange = Turuncu -Pink = Pembe -Red = Kırmızı -Violet = Koyu mor -White = Beyaz -Yellow = Sarı -None = Hiç - -# Materials - Metaryeller -Copper = Bakır -Gold = Altın -Iron = Demir -Mithril = Mithril -Silver = Gümüş -Wooden = Ahşap - -# Sorting - Sıralama -Sort = Sırala -Auto-sort is %s = Otomatik sıralama %s -Off = Kapalı -On = Açık diff --git a/technic_chests/mithril_chest.lua b/technic_chests/mithril_chest.lua index 40ea95c..fc7192c 100644 --- a/technic_chests/mithril_chest.lua +++ b/technic_chests/mithril_chest.lua @@ -1,3 +1,6 @@ +-- Translation support +local S = minetest.get_translator("technic_chests") + if minetest.get_modpath("moreores") then minetest.register_craft({ output = 'technic:mithril_chest 1', @@ -27,7 +30,7 @@ minetest.register_craft({ } }) -technic.chests:register("Mithril", { +technic.chests:register(S("Mithril"), { width = 15, height = 6, sort = true, @@ -35,9 +38,9 @@ technic.chests:register("Mithril", { infotext = false, color = false, locked = false, -}) +}, "mithril") -technic.chests:register("Mithril", { +technic.chests:register(S("Mithril"), { width = 15, height = 6, sort = true, @@ -45,5 +48,5 @@ technic.chests:register("Mithril", { infotext = false, color = false, locked = true, -}) +}, "mithril") diff --git a/technic_chests/mod.conf b/technic_chests/mod.conf index 99048c3..d0dc299 100644 --- a/technic_chests/mod.conf +++ b/technic_chests/mod.conf @@ -1,3 +1,4 @@ name = technic_chests depends = default, basic_materials -optional_depends = moreblocks, moreores, pipeworks, intllib, tubelib +optional_depends = moreblocks, moreores, pipeworks, tubelib +min_minetest_version = 5.0.0 diff --git a/technic_chests/register.lua b/technic_chests/register.lua index f8b108b..3707850 100644 --- a/technic_chests/register.lua +++ b/technic_chests/register.lua @@ -1,4 +1,6 @@ -local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end +-- Translation support +local S = minetest.get_translator("technic_chests") + local pipeworks = rawget(_G, "pipeworks") local fs_helpers = rawget(_G, "fs_helpers") @@ -17,7 +19,7 @@ if not minetest.get_modpath("pipeworks") then local dummy = function() end pipeworks_meta.__index = function(table, key) - print("[technic_chests] WARNING: variable or method '"..key.."' not present in dummy pipeworks table - assuming it is a method...") + print("[technic_chests] WARNING: variable or method '"..key.."' not present in dummy pipeworks table - assuming it is a method…") pipeworks[key] = dummy return dummy end @@ -26,7 +28,7 @@ if not minetest.get_modpath("pipeworks") then fs_helpers.cycling_button = function() return "" end else fs_helpers = pipeworks.fs_helpers - allow_label = "label[0.9,0.36;Allow splitting incoming stacks from tubes]" + allow_label = "label[0.9,0.36;"..S("Allow splitting incoming stacks from tubes").."]" shift_edit_field = 3 tube_entry = "^pipeworks_tube_connection_metallic.png" end @@ -97,18 +99,18 @@ local function set_formspec(pos, data, page) if data.autosort then local status = meta:get_int("autosort") - formspec = formspec.."button["..(data.hileft+2)..","..(data.height+1.1)..";3,0.8;autosort_to_"..(1-status)..";"..S("Auto-sort is %s"):format(status == 1 and S("On") or S("Off")).."]" + formspec = formspec.."button["..(data.hileft+2)..","..(data.height+1.1)..";5,0.8;autosort_to_"..(1-status)..";"..S("Auto-sort is @1", (status == 1) and S("On") or S("Off")).."]" end if data.infotext then local formspec_infotext = minetest.formspec_escape(meta:get_string("infotext")) if page == "main" then - formspec = formspec.."image_button["..(shift_edit_field+data.hileft+2.1)..",0.1;0.8,0.8;" + formspec = formspec.."image_button["..(shift_edit_field+data.hileft+3.1)..",0.1;0.8,0.8;" .."technic_pencil_icon.png;edit_infotext;]" - .."label["..(shift_edit_field+data.hileft+3)..",0;"..formspec_infotext.."]" + .."label["..(shift_edit_field+data.hileft+4)..",0;"..formspec_infotext.."]" elseif page == "edit_infotext" then - formspec = formspec.."image_button["..(shift_edit_field+data.hileft+2.1)..",0.1;0.8,0.8;" + formspec = formspec.."image_button["..(shift_edit_field+data.hileft+3.1)..",0.1;0.8,0.8;" .."technic_checkmark_icon.png;save_infotext;]" - .."field["..(shift_edit_field+data.hileft+3.3)..",0.2;4.8,1;" + .."field["..(shift_edit_field+data.hileft+4.3)..",0.2;4.8,1;" .."infotext_box;"..S("Edit chest description:")..";" ..formspec_infotext.."]" end @@ -121,7 +123,7 @@ local function set_formspec(pos, data, page) else colorName = S("None") end - formspec = formspec.."label["..(data.coleft+0.2)..","..(data.lotop+3)..";"..S("Color Filter: %s"):format(colorName).."]" + formspec = formspec.."label["..(data.coleft+0.2)..","..(data.lotop+3)..";"..S("Color Filter: @1", colorName).."]" end meta:set_string("formspec", formspec) end @@ -195,9 +197,9 @@ local function get_receive_fields(name, data) end end -function technic.chests:definition(name, data) +function technic.chests:definition(description, data, name) local lname = name:lower() - name = S(name) + name = description local d = {} for k, v in pairs(data) do d[k] = v end data = d @@ -224,7 +226,7 @@ function technic.chests:definition(name, data) local locked_after_place = nil local front = {"technic_"..lname.."_chest_front.png"} data.base_formspec = "size["..data.ovwidth..","..data.ovheight.."]".. - "label[0,0;"..S("%s Chest"):format(name).."]".. + "label[0,0;"..S("@1 Chest", name).."]".. "list[context;main;"..data.hileft..",1;"..data.width..","..data.height..";]".. "list[current_player;main;"..data.loleft..","..data.lotop..";8,4;]".. "background[-0.19,-0.25;"..(data.ovwidth+0.4)..","..(data.ovheight+0.75)..";technic_chest_form_bg.png]".. @@ -233,7 +235,7 @@ function technic.chests:definition(name, data) "listring[]" if data.sort then - data.base_formspec = data.base_formspec.."button["..data.hileft..","..(data.height+1.1)..";1,0.8;sort;"..S("Sort").."]" + data.base_formspec = data.base_formspec.."button["..data.hileft..","..(data.height+1.1)..";1,1;sort;"..S("Sort").."]" end if data.color then data.base_formspec = data.base_formspec..get_color_buttons(data.coleft, data.lotop) @@ -243,9 +245,7 @@ function technic.chests:definition(name, data) locked_after_place = function(pos, placer) local meta = minetest.get_meta(pos) meta:set_string("owner", placer:get_player_name() or "") - meta:set_string("infotext", - S("%s Locked Chest (owned by %s)") - :format(name, meta:get_string("owner"))) + meta:set_string("infotext", S("@1 Locked Chest (owned by @2)", name, meta:get_string("owner"))) pipeworks.after_place(pos) end table.insert(front, "technic_"..lname.."_chest_lock_overlay.png") @@ -255,9 +255,9 @@ function technic.chests:definition(name, data) local desc if data.locked then - desc = S("%s Locked Chest"):format(name) + desc = S("@1 Locked Chest", name) else - desc = S("%s Chest"):format(name) + desc = S("@1 Chest", name) end local tentry = tube_entry @@ -288,20 +288,20 @@ function technic.chests:definition(name, data) on_construct = function(pos) local meta = minetest.get_meta(pos) - meta:set_string("infotext", S("%s Chest"):format(name)) + meta:set_string("infotext", S("@1 Chest", name)) set_formspec(pos, data, "main") local inv = meta:get_inventory() inv:set_size("main", data.width * data.height) end, can_dig = self.can_dig, - on_receive_fields = get_receive_fields(name, data), + on_receive_fields = get_receive_fields(lname, data), on_metadata_inventory_move = self.on_inv_move, on_metadata_inventory_put = self.on_inv_put, on_metadata_inventory_take = self.on_inv_take, on_blast = function(pos) local drops = {} default.get_inventory_drops(pos, "main", drops) - drops[#drops+1] = "technic:"..name:lower()..(data.locked and "_locked" or "").."_chest" + drops[#drops+1] = "technic:"..lname..(data.locked and "_locked" or "").."_chest" minetest.remove_node(pos) return drops end, @@ -370,8 +370,8 @@ local _TUBELIB_CALLBACKS = { end, } -function technic.chests:register(name, data) - local def = technic.chests:definition(name, data) +function technic.chests:register(description, data, name) + local def = technic.chests:definition(description, data, name) local nn = "technic:"..name:lower()..(data.locked and "_locked" or "").."_chest" minetest.register_node(":"..nn, def) diff --git a/technic_chests/silver_chest.lua b/technic_chests/silver_chest.lua index 6e2ce56..c569569 100644 --- a/technic_chests/silver_chest.lua +++ b/technic_chests/silver_chest.lua @@ -1,3 +1,6 @@ +-- Translation support +local S = minetest.get_translator("technic_chests") + if minetest.get_modpath("moreores") then minetest.register_craft({ output = 'technic:silver_chest', @@ -27,7 +30,7 @@ minetest.register_craft({ } }) -technic.chests:register("Silver", { +technic.chests:register(S("Silver"), { width = 12, height = 6, sort = true, @@ -35,9 +38,9 @@ technic.chests:register("Silver", { infotext = true, color = false, locked = false, -}) +}, "silver") -technic.chests:register("Silver", { +technic.chests:register(S("Silver"), { width = 12, height = 6, sort = true, @@ -45,5 +48,5 @@ technic.chests:register("Silver", { infotext = true, color = false, locked = true, -}) +}, "silver") diff --git a/technic_cnc/cnc.lua b/technic_cnc/cnc.lua index cb81bd4..3324f3e 100644 --- a/technic_cnc/cnc.lua +++ b/technic_cnc/cnc.lua @@ -7,7 +7,7 @@ -- I could imagine some form of API allowing modders to come with their own node -- box definitions and easily stuff it in the this machine for production. -local S = technic_cnc.getter +local S = minetest.get_translator("technic_cnc") local allow_metadata_inventory_put local allow_metadata_inventory_take @@ -29,7 +29,7 @@ if technic_cnc.use_technic then allow_metadata_inventory_take = technic.machine_inventory_take allow_metadata_inventory_move = technic.machine_inventory_move can_dig = technic.machine_can_dig - desc_tr = S("%s CNC Machine"):format("LV") + desc_tr = S("@1 CNC Machine", S("LV")) else minetest.register_craft({ output = 'technic:cnc', @@ -122,6 +122,7 @@ local cnc_formspec = "label[1,3.5;"..S("Slim Elements half / normal height:").."]".. + -- TODO: do not use image because this is bad for translation "image_button[1,4;1,0.5;technic_cnc_full.png;full; ]".. "image_button[1,4.5;1,0.5;technic_cnc_half.png;half; ]".. "image_button[2,4;1,1;technic_cnc_element_straight.png;element_straight; ]".. @@ -131,7 +132,7 @@ local cnc_formspec = "image_button[6,4;1,1;technic_cnc_element_edge.png;element_edge; ]".. "label[0, 5.5;"..S("In:").."]".. - "list[current_name;src;0.5,5.5;1,1;]".. + "list[current_name;src;1.0,5.5;1,1;]".. "label[4, 5.5;"..S("Out:").."]".. "list[current_name;dst;5,5.5;4,1;]".. @@ -221,7 +222,7 @@ local run = function(pos, node) (not minetest.registered_nodes[result]) or (not inv:room_for_item("dst", result)) then technic.swap_node(pos, machine_node) - meta:set_string("infotext", S("%s Idle"):format(machine_name)) + meta:set_string("infotext", S("@1 Idle", machine_name)) meta:set_string("cnc_product", "") meta:set_int("LV_EU_demand", 0) return @@ -229,10 +230,10 @@ local run = function(pos, node) if eu_input < demand then technic.swap_node(pos, machine_node) - meta:set_string("infotext", S("%s Unpowered"):format(machine_name)) + meta:set_string("infotext", S("@1 Unpowered", machine_name)) elseif eu_input >= demand then technic.swap_node(pos, machine_node.."_active") - meta:set_string("infotext", S("%s Active"):format(machine_name)) + meta:set_string("infotext", S("@1 Active", machine_name)) meta:set_int("src_time", meta:get_int("src_time") + 1) if meta:get_int("src_time") >= 3 then -- 3 ticks per output meta:set_int("src_time", 0) diff --git a/technic_cnc/cnc_api.lua b/technic_cnc/cnc_api.lua index 3026b47..dc02712 100644 --- a/technic_cnc/cnc_api.lua +++ b/technic_cnc/cnc_api.lua @@ -1,7 +1,7 @@ -- API for the technic CNC machine -- Again code is adapted from the NonCubic Blocks MOD v1.4 by yves_de_beck -local S = technic_cnc.getter +local S = minetest.get_translator("technic_cnc") -- REGISTER NONCUBIC FORMS, CREATE MODELS AND RECIPES: ------------------------------------------------------ @@ -11,12 +11,12 @@ local S = technic_cnc.getter technic_cnc.programs = { { suffix = "technic_cnc_stick", model = {-0.15, -0.5, -0.15, 0.15, 0.5, 0.15}, - desc = S("Stick") + desc = function(p1) return S("@1 Stick", p1) end, }, { suffix = "technic_cnc_element_end_double", model = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.5}, - desc = S("Element End Double") + desc = function(p1) return S("@1 Element End Double", p1) end, }, { suffix = "technic_cnc_element_cross_double", @@ -24,7 +24,7 @@ technic_cnc.programs = { {0.3, -0.5, -0.3, 0.5, 0.5, 0.3}, {-0.3, -0.5, -0.5, 0.3, 0.5, 0.5}, {-0.5, -0.5, -0.3, -0.3, 0.5, 0.3}}, - desc = S("Element Cross Double") + desc = function(p1) return S("@1 Element Cross Double", p1) end, }, { suffix = "technic_cnc_element_t_double", @@ -32,24 +32,24 @@ technic_cnc.programs = { {-0.3, -0.5, -0.5, 0.3, 0.5, 0.3}, {-0.5, -0.5, -0.3, -0.3, 0.5, 0.3}, {0.3, -0.5, -0.3, 0.5, 0.5, 0.3}}, - desc = S("Element T Double") + desc = function(p1) return S("@1 Element T Double", p1) end, }, { suffix = "technic_cnc_element_edge_double", model = { {-0.3, -0.5, -0.5, 0.3, 0.5, 0.3}, {-0.5, -0.5, -0.3, -0.3, 0.5, 0.3}}, - desc = S("Element Edge Double") + desc = function(p1) return S("@1 Element Edge Double", p1) end, }, { suffix = "technic_cnc_element_straight_double", model = {-0.3, -0.5, -0.5, 0.3, 0.5, 0.5}, - desc = S("Element Straight Double") + desc = function(p1) return S("@1 Element Straight Double", p1) end, }, { suffix = "technic_cnc_element_end", model = {-0.3, -0.5, -0.3, 0.3, 0, 0.5}, - desc = S("Element End") + desc = function(p1) return S("@1 Element End", p1) end, }, { suffix = "technic_cnc_element_cross", @@ -57,7 +57,7 @@ technic_cnc.programs = { {0.3, -0.5, -0.3, 0.5, 0, 0.3}, {-0.3, -0.5, -0.5, 0.3, 0, 0.5}, {-0.5, -0.5, -0.3, -0.3, 0, 0.3}}, - desc = S("Element Cross") + desc = function(p1) return S("@1 Element Cross", p1) end, }, { suffix = "technic_cnc_element_t", @@ -65,24 +65,24 @@ technic_cnc.programs = { {-0.3, -0.5, -0.5, 0.3, 0, 0.3}, {-0.5, -0.5, -0.3, -0.3, 0, 0.3}, {0.3, -0.5, -0.3, 0.5, 0, 0.3}}, - desc = S("Element T") + desc = function(p1) return S("@1 Element T", p1) end, }, { suffix = "technic_cnc_element_edge", model = { {-0.3, -0.5, -0.5, 0.3, 0, 0.3}, {-0.5, -0.5, -0.3, -0.3, 0, 0.3}}, - desc = S("Element Edge") + desc = function(p1) return S("@1 Element Edge", p1) end, }, { suffix = "technic_cnc_element_straight", model = {-0.3, -0.5, -0.5, 0.3, 0, 0.5}, - desc = S("Element Straight") + desc = function(p1) return S("@1 Element Straight", p1) end, }, { suffix = "technic_cnc_oblate_spheroid", model = "technic_cnc_oblate_spheroid.obj", - desc = S("Oblate spheroid"), + desc = function(p1) return S("@1 Oblate spheroid", p1) end, cbox = { type = "fixed", fixed = { @@ -95,32 +95,32 @@ technic_cnc.programs = { { suffix = "technic_cnc_sphere", model = "technic_cnc_sphere.obj", - desc = S("Sphere") + desc = function(p1) return S("@1 Sphere", p1) end, }, { suffix = "technic_cnc_cylinder_horizontal", model = "technic_cnc_cylinder_horizontal.obj", - desc = S("Horizontal Cylinder") + desc = function(p1) return S("@1 Horizontal Cylinder", p1) end, }, { suffix = "technic_cnc_cylinder", model = "technic_cnc_cylinder.obj", - desc = S("Cylinder") + desc = function(p1) return S("@1 Cylinder", p1) end, }, { suffix = "technic_cnc_twocurvededge", model = "technic_cnc_two_curved_edge.obj", - desc = S("Two Curved Edge/Corner Block") + desc = function(p1) return S("@1 Two Curved Edge/Corner Block", p1) end, }, { suffix = "technic_cnc_onecurvededge", model = "technic_cnc_one_curved_edge.obj", - desc = S("One Curved Edge Block") + desc = function(p1) return S("@1 One Curved Edge Block", p1) end, }, { suffix = "technic_cnc_spike", model = "technic_cnc_pyramid_spike.obj", - desc = S("Spike"), + desc = function(p1) return S("@1 Spike", p1) end, cbox = { type = "fixed", fixed = { @@ -134,7 +134,7 @@ technic_cnc.programs = { { suffix = "technic_cnc_pyramid", model = "technic_cnc_pyramid.obj", - desc = S("Pyramid"), + desc = function(p1) return S("@1 Pyramid", p1) end, cbox = { type = "fixed", fixed = { @@ -148,7 +148,7 @@ technic_cnc.programs = { { suffix = "technic_cnc_slope_inner_edge_upsdown", model = "technic_cnc_innercorner_upsdown.obj", - desc = S("Slope Upside Down Inner Edge/Corner"), + desc = function(p1) return S("@1 Slope Upside Down Inner Edge/Corner", p1) end, sbox = { type = "fixed", fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 } @@ -169,7 +169,7 @@ technic_cnc.programs = { { suffix = "technic_cnc_slope_edge_upsdown", model = "technic_cnc_outercorner_upsdown.obj", - desc = S("Slope Upside Down Outer Edge/Corner"), + desc = function(p1) return S("@1 Slope Upside Down Outer Edge/Corner", p1) end, cbox = { type = "fixed", fixed = { @@ -183,7 +183,7 @@ technic_cnc.programs = { { suffix = "technic_cnc_slope_inner_edge", model = "technic_cnc_innercorner.obj", - desc = S("Slope Inner Edge/Corner"), + desc = function(p1) return S("@1 Slope Inner Edge/Corner", p1) end, sbox = { type = "fixed", fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 } @@ -204,7 +204,7 @@ technic_cnc.programs = { { suffix = "technic_cnc_slope_edge", model = "technic_cnc_outercorner.obj", - desc = S("Slope Outer Edge/Corner"), + desc = function(p1) return S("@1 Slope Outer Edge/Corner", p1) end, cbox = { type = "fixed", fixed = { @@ -218,7 +218,7 @@ technic_cnc.programs = { { suffix = "technic_cnc_slope_upsdown", model = "technic_cnc_slope_upsdown.obj", - desc = S("Slope Upside Down"), + desc = function(p1) return S("@1 Slope Upside Down", p1) end, cbox = { type = "fixed", fixed = { @@ -232,7 +232,7 @@ technic_cnc.programs = { { suffix = "technic_cnc_slope_lying", model = "technic_cnc_slope_horizontal.obj", - desc = S("Slope Lying"), + desc = function(p1) return S("@1 Slope Lying", p1) end, cbox = { type = "fixed", fixed = { @@ -246,7 +246,7 @@ technic_cnc.programs = { { suffix = "technic_cnc_slope", model = "technic_cnc_slope.obj", - desc = S("Slope"), + desc = function(p1) return S("@1 Slope", p1) end, cbox = { type = "fixed", fixed = { @@ -320,7 +320,7 @@ function technic_cnc.register_all(recipeitem, groups, images, description) -- Create the node if it passes the test if do_register then technic_cnc.register_program(recipeitem, data.suffix, data.model, - groups, images, description.." "..data.desc, data.cbox, data.sbox) + groups, images, data.desc(description), data.cbox, data.sbox) end end end diff --git a/technic_cnc/cnc_materials.lua b/technic_cnc/cnc_materials.lua index e63c792..5c5a498 100644 --- a/technic_cnc/cnc_materials.lua +++ b/technic_cnc/cnc_materials.lua @@ -1,7 +1,7 @@ -- REGISTER MATERIALS AND PROPERTIES FOR NONCUBIC ELEMENTS: ----------------------------------------------------------- -local S = technic_cnc.getter +local S = minetest.get_translator("technic_cnc") -- DIRT ------- diff --git a/technic_cnc/depends.txt b/technic_cnc/depends.txt deleted file mode 100644 index bdaa161..0000000 --- a/technic_cnc/depends.txt +++ /dev/null @@ -1,3 +0,0 @@ -default -basic_materials -technic? diff --git a/technic_cnc/init.lua b/technic_cnc/init.lua index 3c4da3e..566d01e 100644 --- a/technic_cnc/init.lua +++ b/technic_cnc/init.lua @@ -7,12 +7,6 @@ technic_cnc.technic_modpath = minetest.get_modpath("technic") technic_cnc.use_technic = technic_cnc.technic_modpath and minetest.settings:get_bool("technic_cnc_use_technic") ~= false -if rawget(_G, "intllib") then - technic_cnc.getter = intllib.Getter() -else - technic_cnc.getter = function(s,a,...)if a==nil then return s end a={a,...}return s:gsub("(@?)@(%(?)(%d+)(%)?)",function(e,o,n,c)if e==""then return a[tonumber(n)]..(o==""and c or"")else return"@"..o..n..c end end) end -end - dofile(modpath.."/cnc.lua") dofile(modpath.."/cnc_api.lua") dofile(modpath.."/cnc_materials.lua") diff --git a/technic_cnc/locale/de.txt b/technic_cnc/locale/de.txt deleted file mode 100644 index 8b4e5ff..0000000 --- a/technic_cnc/locale/de.txt +++ /dev/null @@ -1,36 +0,0 @@ -## CNC -CNC Machine = CNC-Maschine -%s CNC Machine = %s CNC-Maschine -Cylinder = Zylinder -Element Cross = Halbes Kreuzelement -Element Cross Double = Kreuzelement -Element Edge = Halbes Eckelement -Element Edge Double = Eckelement -Element End = Halbes Endelement -Element End Double = Endelement -Element Straight = Halbes aufrechtes Element -Element Straight Double = Aufrechtes Element -Element T = Halbes T-Element -Element T Double = T-Element -Horizontal Cylinder = Liegender Zylinder -One Curved Edge Block = Block mit einer abgerundeten Kante -Pyramid = Pyramide -Slope = Schraege -Slope Edge = Schraege mit Ecke -Slope Inner Edge = Schraege mit Innenecke -Slope Lying = Liegende Schraege -Slope Upside Down = Umgedrehte Schraege -Slope Upside Down Edge = Umgedrehte Schraege mit Ecke -Slope Upside Down Inner Edge = Umgedrehte Schraege mit Innenecke -Sphere = Kugel -Spike = Spitze -Stick = Stange -Two Curved Edge Block = Block mit zwei abgerundeten Kanten -Brick = Ziegel: -Cobble = Pflasterstein: -Dirt = Erde: -Leaves = Laub: -Sandstone = Sandstein: -Stone = Stein: -Tree = Baumstamm: -Wooden = Holz: diff --git a/technic_cnc/locale/es.txt b/technic_cnc/locale/es.txt deleted file mode 100644 index f18fdfa..0000000 --- a/technic_cnc/locale/es.txt +++ /dev/null @@ -1,35 +0,0 @@ -## CNC -CNC Machine = Maquina CNC -%s CNC Machine = Maquina CNC %s -Element Edge = Elemento Borde -Tree = Arbol -Element Cross Double = Elemento Cruz Doble -Spike = Pica -Element Edge Double = Elemento Borde Doble -Two Curved Edge Block = Dos Bloques de Borde Curvados -Pyramid = Piramide -Slope Upside Down Inner Edge = Borde Interno de Rampa Al Reves -Slope Upside Down Edge = Borde de Rampa Al Reves -Element Straight Double = Elemento Doble Recto -Sphere = Esfera -Element End Double = Doble Fin de Elemento -Element Straight = Recta de Elemento -Horizontal Cylinder = Cilindro Horizontal -Slope Inner Edge = Borde Interno de Rampa -One Curved Edge Block = Un Bloque de Borde Curvado -Element Cross = Cruce de Elementos -Stick = Varita -Element End = Fin de Elemento -Slope Lying = Rampa en Reposo -Slope Upside Down = Rampa Al Reves -Slope Edge = Borde de Rampa -Slope = Rampa -Element T = Elemento T -Cylinder = Cilindro -Cobble = Adoquines -Stone = Piedra -Brick = Ladrillo -Dirt = Tierra -Sandstone = Arenisca -Wooden = Madera -Leaves = Hojas diff --git a/technic_cnc/locale/it.txt b/technic_cnc/locale/it.txt deleted file mode 100644 index e50fd74..0000000 --- a/technic_cnc/locale/it.txt +++ /dev/null @@ -1,36 +0,0 @@ -## CNC -CNC Machine = Tornio CNC -%s CNC Machine = Tornio CNC %s -Cylinder = Cilindro -Element Cross = Elemento a croce -Element Cross Double = Elemento a croce doppio -Element Edge = Elemento bordo -Element Edge Double = Elemento bordo doppio -Element End = Elemento finale -Element End Double = Elemento finale doppio -Element Straight = Elemento dritto -Element Straight Double = Elemento dritto doppio -Element T = Elemento a T -Element T Double = Elemento a T doppio -Horizontal Cylinder = Cilindro orizzontale -One Curved Edge Block = Blocco con bordo curvo -Pyramid = Piramide -Slope = Inclinato -Slope Edge = Bordo inclinato -Slope Inner Edge = Bordo interno inclinato -Slope Lying = Pendenza bugiarda -Slope Upside Down = Pendenza capovolta -Slope Upside Down Edge = Bordo inclinato capovolto -Slope Upside Down Inner Edge = Bordo interno inclinato capovolto -Sphere = Sfera -Spike = Spuntone -Stick = Bastone -Two Curved Edge Block = Blocco con bordo a doppia curva -Brick = Mattone -Cobble = Ciottolato -Dirt = Terra -Leaves = Foglie -Sandstone = Arenaria -Stone = Pietra -Tree = Albero -Wooden = Legno diff --git a/technic_cnc/locale/pl.txt b/technic_cnc/locale/pl.txt deleted file mode 100644 index 76cc200..0000000 --- a/technic_cnc/locale/pl.txt +++ /dev/null @@ -1,36 +0,0 @@ -## CNC -CNC Machine = Obrabiarka CNC -%s CNC Machine = %s Obrabiarka CNC -Cylinder = Walec -Element Cross = Część krzyżowa -Element Cross Double = Podwójna część krzyżowa -Element Edge = Krawędź części -Element Edge Double = Podwójna krawędź części -Element End = Końcowa część -Element End Double = Podwójna końcowa część -Element Straight = Prosta część -Element Straight Double = Podwójna prosta część -Element T = Część T -Element T Double = Podwójna część T -Horizontal Cylinder = Poziomy walec -One Curved Edge Block = Blok z zagiętą krawędzią -Pyramid = Ostrosłup -Slope = Spad -Slope Edge = Krawędź spadu -Slope Inner Edge = Wewnętrzna krawędź spadu -Slope Lying = Leżący spad -Slope Upside Down = Odwrócony spad -Slope Upside Down Edge = Krawędź odwróconego spadu -Slope Upside Down Inner Edge = Wewnętrzna krawędz odwróconego spadu -Sphere = Kula -Spike = Kolec -Stick = Patyk -Two Curved Edge Block = Blok z dwoma zagiętymi krawędziami -Brick = Cegła -Cobble = Bruk -Dirt = Ziemia -Leaves = Liście -Sandstone = Piaskowiec -Stone = Kamień -Tree = Drzewo -Wooden = Drewniany diff --git a/technic_cnc/locale/technic_cnc.de.tr b/technic_cnc/locale/technic_cnc.de.tr new file mode 100644 index 0000000..aae9068 --- /dev/null +++ b/technic_cnc/locale/technic_cnc.de.tr @@ -0,0 +1,67 @@ +# textdomain: technic_cnc + + + +### cnc.lua ### + +# textdomain: technic_cnc +## CNC +CNC Machine=CNC-Maschine +@1 CNC Machine=@1 CNC-Maschine +LV= +Choose Milling Program:= +Slim Elements half / normal height:= +In:= +Out:= +@1 Idle= +@1 Unpowered= +@1 Active= + +### cnc_api.lua ### + +@1 Stick=@1 Stange +@1 Element End Double=@1 Endelement +@1 Element Cross Double=@1 Kreuzelement +@1 Element T Double=@1 T-Element +@1 Element Edge Double=@1 Eckelement +@1 Element Straight Double=@1 Aufrechtes Element +@1 Element End=@1 Halbes Endelement +@1 Element Cross=@1 Halbes Kreuzelement +@1 Element T=@1 Halbes T-Element +@1 Element Edge=@1 Halbes Eckelement +@1 Element Straight=@1 Halbes aufrechtes Element +@1 Oblate spheroid= +@1 Sphere=@1 Kugel +@1 Horizontal Cylinder=@1 Liegender Zylinder +@1 Cylinder=@1 Zylinder +@1 Two Curved Edge/Corner Block= +@1 One Curved Edge Block=@1 Block mit einer abgerundeten Kante +@1 Spike=@1 Spitze +@1 Pyramid=@1 Pyramide +@1 Slope Upside Down Inner Edge/Corner= +@1 Slope Upside Down Outer Edge/Corner= +@1 Slope Inner Edge/Corner= +@1 Slope Outer Edge/Corner= +@1 Slope Upside Down=@1 Umgedrehte Schraege +@1 Slope Lying=@1 Liegende Schraege +@1 Slope=@1 Schraege + +### cnc_materials.lua ### + +Dirt=Erde: +Grassy dirt= +Wooden=Holz: +Stone=Stein: +Cobble=Pflasterstein: +Brick=Ziegel: +Sandstone=Sandstein: +Leaves=Laub: +Tree=Baumstamm: +Bronze= +Stainless Steel= +Marble= +Granite= +Blast-resistant concrete= +Concrete= +Cement= +Brass block= diff --git a/technic_cnc/locale/technic_cnc.es.tr b/technic_cnc/locale/technic_cnc.es.tr new file mode 100644 index 0000000..2782689 --- /dev/null +++ b/technic_cnc/locale/technic_cnc.es.tr @@ -0,0 +1,67 @@ +# textdomain: technic_cnc + + + +### cnc.lua ### + +# textdomain: technic_cnc +## CNC +CNC Machine=Maquina CNC +@1 CNC Machine=Maquina CNC @1 +LV= +Choose Milling Program:= +Slim Elements half / normal height:= +In:= +Out:= +@1 Idle= +@1 Unpowered= +@1 Active= + +### cnc_api.lua ### + +@1 Stick=@1 Varita +@1 Element End Double=@1 Doble Fin de Elemento +@1 Element Cross Double=@1 Elemento Cruz Doble +@1 Element T Double= +@1 Element Edge Double=@1 Elemento Borde Doble +@1 Element Straight Double=@1 Elemento Doble Recto +@1 Element End=@1 Fin de Elemento +@1 Element Cross=@1 Cruce de Elementos +@1 Element T= +@1 Element Edge=@1 Elemento Borde +@1 Element Straight=@1 Recta de Elemento +@1 Oblate spheroid= +@1 Sphere=@1 Esfera +@1 Horizontal Cylinder=@1 Cilindro Horizontal +@1 Cylinder= +@1 Two Curved Edge/Corner Block= +@1 One Curved Edge Block=@1 Un Bloque de Borde Curvado +@1 Spike=@1 Pica +@1 Pyramid=@1 Piramide +@1 Slope Upside Down Inner Edge/Corner= +@1 Slope Upside Down Outer Edge/Corner= +@1 Slope Inner Edge/Corner= +@1 Slope Outer Edge/Corner= +@1 Slope Upside Down=@1 Rampa Al Reves +@1 Slope Lying=@1 Rampa en Reposo +@1 Slope=@1 Rampa + +### cnc_materials.lua ### + +Dirt=Tierra +Grassy dirt= +Wooden=Madera +Stone=Piedra +Cobble=Adoquines +Brick=Ladrillo +Sandstone=Arenisca +Leaves=Hojas +Tree=Arbol +Bronze= +Stainless Steel= +Marble= +Granite= +Blast-resistant concrete= +Concrete= +Cement= +Brass block= diff --git a/technic_cnc/locale/technic_cnc.fr.tr b/technic_cnc/locale/technic_cnc.fr.tr new file mode 100644 index 0000000..ee5bd65 --- /dev/null +++ b/technic_cnc/locale/technic_cnc.fr.tr @@ -0,0 +1,67 @@ +# textdomain: technic_cnc + + + +### cnc.lua ### + +# textdomain: technic_cnc +## CNC +CNC Machine=Machine CNC +@1 CNC Machine=Machine CNC @1 +LV=faible tension +Choose Milling Program:=Choisissez le programme de faisage +Slim Elements half / normal height:=Épaisseur de l’élément (moitié / normale) +In:=Entrée +Out:=Sortie +@1 Idle=@1 inactive +@1 Unpowered=@1 hors-tension +@1 Active=@1 active + +### cnc_api.lua ### + +@1 Stick=Baton @1 +@1 Element End Double=Double enbout @1 +@1 Element Cross Double=Croix double @1 +@1 Element T Double=Double T @1 +@1 Element Edge Double=Coin double @1 +@1 Element Straight Double=Double élément droit @1 +@1 Element End=Embout @1 +@1 Element Cross=Croix @1 +@1 Element T=T @ +@1 Element Edge=Coin @1 +@1 Element Straight=Élément droit @1 +@1 Oblate spheroid=Sphéroïde aplati @1 +@1 Sphere=Sphère @1 +@1 Horizontal Cylinder=Cylindre horizontal @1 +@1 Cylinder=Cylindre @1 +@1 Two Curved Edge/Corner Block= +@1 One Curved Edge Block=Coin incurvé @1 +@1 Spike=Pique @1 +@1 Pyramid=Pyramide @1 +@1 Slope Upside Down Inner Edge/Corner= +@1 Slope Upside Down Outer Edge/Corner= +@1 Slope Inner Edge/Corner= +@1 Slope Outer Edge/Corner= +@1 Slope Upside Down=Pente retournée @1 +@1 Slope Lying=Pente couchée @1 +@1 Slope=Pente @1 + +### cnc_materials.lua ### + +Dirt=en terre +Grassy dirt= +Wooden=en bois +Stone=en pierre +Cobble=en pierre taillée +Brick=en brique +Sandstone=en grès +Leaves=en feuilles +Tree=en bloc d’arbre +Bronze=Bronze +Stainless Steel=Acier inoxydable +Marble=Marbre +Granite=Granite +Blast-resistant concrete=Béton résistant aux explosions +Concrete=Béton +Cement=Ciment +Brass block=Bloc de laiton diff --git a/technic_cnc/locale/technic_cnc.it.tr b/technic_cnc/locale/technic_cnc.it.tr new file mode 100644 index 0000000..0be7fc4 --- /dev/null +++ b/technic_cnc/locale/technic_cnc.it.tr @@ -0,0 +1,67 @@ +# textdomain: technic_cnc + + + +### cnc.lua ### + +# textdomain: technic_cnc +## CNC +CNC Machine=Tornio CNC +@1 CNC Machine=Tornio CNC @1 +LV= +Choose Milling Program:= +Slim Elements half / normal height:= +In:= +Out:= +@1 Idle= +@1 Unpowered= +@1 Active= + +### cnc_api.lua ### + +@1 Stick=@1 Bastone +@1 Element End Double=@1 Elemento finale doppio +@1 Element Cross Double=@1 Elemento a croce doppio +@1 Element T Double=@1 Elemento a T doppio +@1 Element Edge Double=@1 Elemento bordo doppio +@1 Element Straight Double=@1 Elemento dritto doppio +@1 Element End=@1 Elemento finale +@1 Element Cross=@1 Elemento a croce +@1 Element T=@1 Elemento a T +@1 Element Edge=@1 Elemento bordo +@1 Element Straight=@1 Elemento dritto +@1 Oblate spheroid= +@1 Sphere=@1 Sfera +@1 Horizontal Cylinder=@1 Cilindro orizzontale +@1 Cylinder=@1 Cilindro +@1 Two Curved Edge/Corner Block= +@1 One Curved Edge Block=@1 Blocco con bordo curvo +@1 Spike=@1 Spuntone +@1 Pyramid=@1 Piramide +@1 Slope Upside Down Inner Edge/Corner= +@1 Slope Upside Down Outer Edge/Corner= +@1 Slope Inner Edge/Corner= +@1 Slope Outer Edge/Corner= +@1 Slope Upside Down=@1 Pendenza capovolta +@1 Slope Lying=@1 Pendenza bugiarda +@1 Slope=@1 Inclinato + +### cnc_materials.lua ### + +Dirt=Terra +Grassy dirt= +Wooden=Legno +Stone=Pietra +Cobble=Ciottolato +Brick=Mattone +Sandstone=Arenaria +Leaves=Foglie +Tree=Albero +Bronze= +Stainless Steel= +Marble= +Granite= +Blast-resistant concrete= +Concrete= +Cement= +Brass block= diff --git a/technic_cnc/locale/technic_cnc.pl.tr b/technic_cnc/locale/technic_cnc.pl.tr new file mode 100644 index 0000000..39b42ce --- /dev/null +++ b/technic_cnc/locale/technic_cnc.pl.tr @@ -0,0 +1,67 @@ +# textdomain: technic_cnc + + + +### cnc.lua ### + +# textdomain: technic_cnc +## CNC +CNC Machine=Obrabiarka CNC +@1 CNC Machine=@1 Obrabiarka CNC +LV= +Choose Milling Program:= +Slim Elements half / normal height:= +In:= +Out:= +@1 Idle= +@1 Unpowered= +@1 Active= + +### cnc_api.lua ### + +@1 Stick=@1 Patyk +@1 Element End Double=@1 Podwójna końcowa część +@1 Element Cross Double=@1 Podwójna część krzyżowa +@1 Element T Double=@1 Podwójna część T +@1 Element Edge Double=@1 Podwójna krawędź części +@1 Element Straight Double=@1 Podwójna prosta część +@1 Element End=@1 Końcowa część +@1 Element Cross=@1 Część krzyżowa +@1 Element T=@1 Część T +@1 Element Edge=@1 Krawędź części +@1 Element Straight=@1 Prosta część +@1 Oblate spheroid= +@1 Sphere=@1 Kula +@1 Horizontal Cylinder=@1 Poziomy walec +@1 Cylinder=@1 Walec +@1 Two Curved Edge/Corner Block= +@1 One Curved Edge Block=@1 Blok z zagiętą krawędzią +@1 Spike=@1 Kolec +@1 Pyramid=@1 Ostrosłup +@1 Slope Upside Down Inner Edge/Corner= +@1 Slope Upside Down Outer Edge/Corner= +@1 Slope Inner Edge/Corner= +@1 Slope Outer Edge/Corner= +@1 Slope Upside Down=@1 Odwrócony spad +@1 Slope Lying=@1 Leżący spad +@1 Slope=@1 Spad + +### cnc_materials.lua ### + +Dirt=Ziemia +Grassy dirt= +Wooden=Drewniany +Stone=Kamień +Cobble=Bruk +Brick=Cegła +Sandstone=Piaskowiec +Leaves=Liście +Tree=Drzewo +Bronze= +Stainless Steel= +Marble= +Granite= +Blast-resistant concrete= +Concrete= +Cement= +Brass block= diff --git a/technic_cnc/locale/template.txt b/technic_cnc/locale/template.txt index bf3cb08..8ce05f5 100644 --- a/technic_cnc/locale/template.txt +++ b/technic_cnc/locale/template.txt @@ -1,36 +1,67 @@ +# textdomain: technic_cnc + + + +### cnc.lua ### + +# textdomain: technic_cnc ## CNC -CNC Machine = -%s CNC Machine = -Cylinder = -Element Cross = -Element Cross Double = -Element Edge = -Element Edge Double = -Element End = -Element End Double = -Element Straight = -Element Straight Double = -Element T = -Element T Double = -Horizontal Cylinder = -One Curved Edge Block = -Pyramid = -Slope = -Slope Edge = -Slope Inner Edge = -Slope Lying = -Slope Upside Down = -Slope Upside Down Edge = -Slope Upside Down Inner Edge = -Sphere = -Spike = -Stick = -Two Curved Edge Block = -Brick = -Cobble = -Dirt = -Leaves = -Sandstone = -Stone = -Tree = -Wooden = +CNC Machine= +@1 CNC Machine= +LV= +Choose Milling Program:= +Slim Elements half / normal height:= +In:= +Out:= +@1 Idle= +@1 Unpowered= +@1 Active= + +### cnc_api.lua ### + +@1 Stick= +@1 Element End Double= +@1 Element Cross Double= +@1 Element T Double= +@1 Element Edge Double= +@1 Element Straight Double= +@1 Element End= +@1 Element Cross= +@1 Element T= +@1 Element Edge= +@1 Element Straight= +@1 Oblate spheroid= +@1 Sphere= +@1 Horizontal Cylinder= +@1 Cylinder= +@1 Two Curved Edge/Corner Block= +@1 One Curved Edge Block= +@1 Spike= +@1 Pyramid= +@1 Slope Upside Down Inner Edge/Corner= +@1 Slope Upside Down Outer Edge/Corner= +@1 Slope Inner Edge/Corner= +@1 Slope Outer Edge/Corner= +@1 Slope Upside Down= +@1 Slope Lying= +@1 Slope= + +### cnc_materials.lua ### + +Dirt= +Grassy dirt= +Wooden= +Stone= +Cobble= +Brick= +Sandstone= +Leaves= +Tree= +Bronze= +Stainless Steel= +Marble= +Granite= +Blast-resistant concrete= +Concrete= +Cement= +Brass block= diff --git a/technic_cnc/mod.conf b/technic_cnc/mod.conf index 4e0f940..dac1440 100644 --- a/technic_cnc/mod.conf +++ b/technic_cnc/mod.conf @@ -1,3 +1,4 @@ name = technic_cnc depends = default, basic_materials optional_depends = technic +min_minetest_version = 5.0.0 diff --git a/technic_worldgen/crafts.lua b/technic_worldgen/crafts.lua index 0590e70..c6e29cb 100644 --- a/technic_worldgen/crafts.lua +++ b/technic_worldgen/crafts.lua @@ -1,5 +1,5 @@ -local S = technic.worldgen.gettext +local S = minetest.get_translator("technic_worldgen") minetest.register_craftitem(":technic:uranium_lump", { description = S("Uranium Lump"), @@ -141,52 +141,29 @@ minetest.register_craft({ output = "technic:wrought_iron_ingot", }) -local function for_each_registered_item(action) - local already_reg = {} - for k, _ in pairs(minetest.registered_items) do - table.insert(already_reg, k) - end - local really_register_craftitem = minetest.register_craftitem - minetest.register_craftitem = function(name, def) - really_register_craftitem(name, def) - action(string.gsub(name, "^:", "")) - end - local really_register_tool = minetest.register_tool - minetest.register_tool = function(name, def) - really_register_tool(name, def) - action(string.gsub(name, "^:", "")) - end - local really_register_node = minetest.register_node - minetest.register_node = function(name, def) - really_register_node(name, def) - action(string.gsub(name, "^:", "")) - end - for _, name in ipairs(already_reg) do - action(name) +local steel_to_iron = { + {name="default:axe_steel", description=S("Iron Axe")}, + {name="default:pick_steel", description=S("Iron Pickaxe")}, + {name="default:shovel_steel", description=S("Iron Shovel")}, + {name="default:sword_steel", description=S("Iron Sword")}, + {name="doors:door_steel", description=S("Iron Door")}, + {name="farming:hoe_steel", description=S("Iron Hoe")}, + {name="glooptest:hammer_steel", description=S("Iron Hammer")}, + {name="glooptest:handsaw_steel", description=S("Iron Handsaw")}, + {name="glooptest:reinforced_crystal_glass", description=S("Iron-Reinforced Crystal Glass")}, + {name="vessels:steel_bottle", description=S("Heavy Iron Bottle (empty)")}, +} + +for _, v in ipairs(steel_to_iron) do + local item_def = minetest.registered_items[v.name] + if item_def then + -- toolranks mod compatibility + if minetest.get_modpath("toolranks") and item_def.original_description then + minetest.override_item(v.name, { + original_description = v.description, + description = toolranks.create_description(v.description)}) + else + minetest.override_item(v.name, { description = v.description }) + end end end - -local steel_to_iron = {} -for _, i in ipairs({ - "default:axe_steel", - "default:pick_steel", - "default:shovel_steel", - "default:sword_steel", - "doors:door_steel", - "farming:hoe_steel", - "glooptest:hammer_steel", - "glooptest:handsaw_steel", - "glooptest:reinforced_crystal_glass", - "mesecons_doors:op_door_steel", - "mesecons_doors:sig_door_steel", - "vessels:steel_bottle", -}) do - steel_to_iron[i] = true -end - -for_each_registered_item(function(item_name) - local item_def = minetest.registered_items[item_name] - if steel_to_iron[item_name] and string.find(item_def.description, "Steel") then - minetest.override_item(item_name, { description = string.gsub(item_def.description, "Steel", S("Iron")) }) - end -end) diff --git a/technic_worldgen/depends.txt b/technic_worldgen/depends.txt deleted file mode 100644 index 6a92b7d..0000000 --- a/technic_worldgen/depends.txt +++ /dev/null @@ -1,9 +0,0 @@ -default -basic_materials -intllib? -mg? -doors? -farming? -glooptest? -mesecons_doors? -vessels? diff --git a/technic_worldgen/init.lua b/technic_worldgen/init.lua index 2f36920..d867d30 100644 --- a/technic_worldgen/init.lua +++ b/technic_worldgen/init.lua @@ -1,9 +1,6 @@ local modpath = minetest.get_modpath("technic_worldgen") technic = rawget(_G, "technic") or {} -technic.worldgen = { - gettext = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end, -} dofile(modpath.."/config.lua") dofile(modpath.."/nodes.lua") diff --git a/technic_worldgen/locale/de.txt b/technic_worldgen/locale/de.txt deleted file mode 100644 index 401c94c..0000000 --- a/technic_worldgen/locale/de.txt +++ /dev/null @@ -1,39 +0,0 @@ -# German Translation for technic_worldgen -# Deutsche Übersetzung von technic_worldgen -# by Xanthin - -## crafts.lua -Uranium Lump = Uranklumpen -Uranium Ingot = Uranbarren -Chromium Lump = Chromklumpen -Chromium Ingot = Chrombarren -Zinc Lump = Zinkklumpen -Zinc Ingot = Zinkbarren -Brass Ingot = Messingbarren -Wrought Iron Ingot = Schmiedeeisenbarren -Cast Iron Ingot = Gusseisenbarren -Carbon Steel Ingot = Kohlenstoffstahlbarren -Stainless Steel Ingot = Edelstahlbarren -Iron = Eisen - -## nodes.lua -Uranium Ore = Uranerz -Chromium Ore = Chromerz -Zinc Ore = Zinkerz -Granite = Granit -Marble = Marmor -Marble Bricks = Marmorziegel -Uranium Block = Uranblock -Chromium Block = Chromblock -Zinc Block = Zinkblock -Wrought Iron Block = Schmiedeeisenblock -Cast Iron Block = Gusseisenblock -Carbon Steel Block = Kohlenstoffstahlblock -Stainless Steel Block = Edelstahlblock -Brass Block = Messingblock -Wrought Iron = Schmiedeeisen - -## rubber.lua -Rubber Tree Sapling = Gummibaumsetzling -Rubber Tree = Gummibaum - diff --git a/technic_worldgen/locale/es.txt b/technic_worldgen/locale/es.txt deleted file mode 100644 index a3920c2..0000000 --- a/technic_worldgen/locale/es.txt +++ /dev/null @@ -1,36 +0,0 @@ -# technic_worldgen traducido por Carlos Barraza - -###crafts.lua -Uranium Lump = Pepita de Uranio -Uranium Ingot = Lingote de Uranio -Chromium Lump = Pepita de Cromo -Chromium Ingot = Lingote de Cromo -Zinc Lump = Pepita de Zinc -Zinc Ingot = Lingote de Zinc -Brass Ingot = Lingote de Latón -Wrought Iron Ingot = Lingote de Hierro Forjado -Cast Iron Ingot = Lingote de Hierro Fundido -Carbon Steel Ingot = Lingote de Acero al Carbon -Stainless Steel Ingot = Lingote de Acero inoxidable -Iron = Lingote - -###nodes.lua -Uranium Ore = Mineral de Uranio -Chromium Ore = Mineral de Cromo -Zinc Ore = Mineral de Zinc -Granite = Granito -Marble = Mármol -Marble Bricks = Ladrillos de Mármol -Uranium Block = Bloque de Uranio -Chromium Block = Bloque de Cromo -Zinc Block = Bloque de Zinc -Wrought Iron Block = Bloque de Hierro Forjado -Cast Iron Block = Bloque de Hierro Fundido -Carbon Steel Block = Bloque de Acero al Carbon -Stainless Steel Block = Bloque de Acero Inoxidable -Brass Block = Bloque de Latón -Wrought Iron = Hierro Forjado - -###rubber.lua -Rubber Tree Sapling = Retoño de Árbol de Goma -Rubber Tree = Árbol de Goma diff --git a/technic_worldgen/locale/fr.txt b/technic_worldgen/locale/fr.txt deleted file mode 100644 index 5bdd148..0000000 --- a/technic_worldgen/locale/fr.txt +++ /dev/null @@ -1,37 +0,0 @@ -# template.txt -# technic_worldgen translation template - -###crafts.lua -Uranium Lump = Morceau d'uranium -Uranium Ingot = Lingot d'uranium -Chromium Lump = Morceau de chrome -Chromium Ingot = Lingot de chrome -Zinc Lump = Morceau de zinc -Zinc Ingot = Lingot de zinc -Brass Ingot = Lingot de laiton -Wrought Iron Ingot = Lingot de fer forgé -Cast Iron Ingot = Lingot de fonte -Carbon Steel Ingot = Lingot d'acier au carbone -Stainless Steel Ingot = Lingot d'acier inoxydable -Iron = Fer - -###nodes.lua -Uranium Ore = Minerai d'uranium -Chromium Ore = Minerai de chrome -Zinc Ore = Minerai de zinc -Granite = Granite -Marble = Marbre -Marble Bricks = Briques en marbre -Uranium Block = Bloc d'uranium -Chromium Block = Bloc de chrome -Zinc Block = Bloc de zinc -Wrought Iron Block = Bloc de fer forgé -Cast Iron Block = Bloc de fonte -Carbon Steel Block = Bloc d'acier au carbone -Stainless Steel Block = Bloc d'acier inoxydable -Brass Block = Bloc de laiton -Wrought Iron = Fer forgé - -###rubber.lua -Rubber Tree Sapling = Pousse d'arbre à caoutchouc -Rubber Tree = Arbre à caoutchouc diff --git a/technic_worldgen/locale/pl.txt b/technic_worldgen/locale/pl.txt deleted file mode 100644 index 76039ca..0000000 --- a/technic_worldgen/locale/pl.txt +++ /dev/null @@ -1,38 +0,0 @@ -# Polish Translation for technic_worldgen -# Polskie tłumaczenie technic_worldgen -# by mat9117 - -###crafts.lua -Uranium Lump = Bryłka uranu -Uranium Ingot = Sztabka uranu -Chromium Lump = Bryłka chromu -Chromium Ingot = Sztabka chromu -Zinc Lump = Bryłka cynku -Zinc Ingot = Sztabka cynku -Brass Ingot = Sztabka mosiądzu -Wrought Iron Ingot = Sztabka kutego żelaza -Cast Iron Ingot = Sztabka żelaziwa -Carbon Steel Ingot = Sztabka stali węglowej -Stainless Steel Ingot = Sztabka nierdzewnej stali -Iron = Żelazo - -###nodes.lua -Uranium Ore = Ruda uranu -Chromium Ore = Ruda chromu -Zinc Ore = Ruda cynku -Granite = Granit -Marble = Marmur -Marble Bricks = Marmurowe cegły -Uranium Block = Blok uranu -Chromium Block = Blok chromu -Zinc Block = Blok cynku -Wrought Iron Block = Blok kutego żelaza -Cast Iron Block = Blok żelaziwa -Carbon Steel Block = Blok stali węglowej -Stainless Steel Block = Blok stali nierdzewnej -Brass Block = Blok mosiądzu -Wrought Iron = Kute żelazo - -###rubber.lua -Rubber Tree Sapling = Sadzonka kauczukowca -Rubber Tree = Kauczukowiec diff --git a/technic_worldgen/locale/pt_BR.txt b/technic_worldgen/locale/pt_BR.txt deleted file mode 100644 index b20368f..0000000 --- a/technic_worldgen/locale/pt_BR.txt +++ /dev/null @@ -1,38 +0,0 @@ -# Braziliam portuguese translation for technic_worldgen -# Tradução portuguesa brasileira para technic_worldgen -# By Sires - -###crafts.lua -Uranium Lump = Pedaço de Urânio -Uranium Ingot = Lingote de Urânio -Chromium Lump = Pedaço de Crômio -Chromium Ingot = Lingote de Crômio -Zinc Lump = Pedaço de Zinco -Zinc Ingot = Lingote de Zinco -Brass Ingot = Lingote de Latão -Wrought Iron Ingot = Lingote de Ferro Forjado -Cast Iron Ingot = Lingote de Ferro Fundido -Carbon Steel Ingot = Lingote de Aço Carbono -Stainless Steel Ingot = Lingote de Ferro Inoxidável -Iron = Ferro - -###nodes.lua -Uranium Ore = Minério de Urânio -Chromium Ore = Minério de Crômio -Zinc Ore = Minério de Zinco -Granite = Granito -Marble = Mármore -Marble Bricks = Tijolos de Mármore -Uranium Block = Bloco de Urânio -Chromium Block = Bloco de Crômio -Zinc Block = Bloco de Zinco -Wrought Iron Block = Bloco de Ferro Forjado -Cast Iron Block = Bloco de Ferro Fundido -Carbon Steel Block = Bloco de Aço Carbono -Stainless Steel Block = Bloco de Aço Inoxidável -Brass Block = Bloco de Latão -Wrought Iron = Ferro Forjado - -###rubber.lua -Rubber Tree Sapling = Muda de Árvore de Borracha -Rubber Tree = Árvore de Borracha diff --git a/technic_worldgen/locale/technic_worldgen.de.tr b/technic_worldgen/locale/technic_worldgen.de.tr new file mode 100644 index 0000000..93df5ff --- /dev/null +++ b/technic_worldgen/locale/technic_worldgen.de.tr @@ -0,0 +1,74 @@ +# textdomain: technic_worldgen + + + +### crafts.lua ### + +# textdomain: technic_worldgen +# German Translation for technic_worldgen +# Deutsche Übersetzung von technic_worldgen +# by Xanthin +## crafts.lua +Uranium Lump=Uranklumpen +Uranium Ingot=Uranbarren +Chromium Lump=Chromklumpen +Chromium Ingot=Chrombarren +Zinc Lump=Zinkklumpen +Zinc Ingot=Zinkbarren +Lead Lump= +Lead Ingot= +Sulfur Lump= +Wrought Iron Ingot=Schmiedeeisenbarren +Cast Iron Ingot=Gusseisenbarren +Carbon Steel Ingot=Kohlenstoffstahlbarren +Stainless Steel Ingot=Edelstahlbarren +Iron Axe= +Iron Pickaxe= +Iron Shovel= +Iron Sword= +Iron Door= +Iron Hoe= +Iron Hammer= +Iron Handsaw= +Iron-Reinforced Crystal Glass= +Heavy Iron Bottle (empty)= + +### nodes.lua ### + +## nodes.lua +Uranium Ore=Uranerz +Chromium Ore=Chromerz +Zinc Ore=Zinkerz +Lead Ore= +Sulfur Ore= +Granite=Granit +Marble=Marmor +Marble Bricks=Marmorziegel +Uranium Block=Uranblock +Chromium Block=Chromblock +Zinc Block=Zinkblock +Lead Block= +Wrought Iron Block=Schmiedeeisenblock +Cast Iron Block=Gusseisenblock +Carbon Steel Block=Kohlenstoffstahlblock +Stainless Steel Block=Edelstahlblock +Outer Wrought Iron Block Stair= +Inner Wrought Iron Block Stair= +Wrought Iron Block Stair= +Wrought Iron Block Slab= + +### rubber.lua ### + +## rubber.lua +Rubber Tree Sapling=Gummibaumsetzling +Rubber Tree=Gummibaum +Rubber Tree Leaves= +Worldgen: grow rubber tree sapling= + + +##### not used anymore ##### + +Brass Ingot=Messingbarren +Iron=Eisen +Brass Block=Messingblock +Wrought Iron=Schmiedeeisen diff --git a/technic_worldgen/locale/technic_worldgen.es.tr b/technic_worldgen/locale/technic_worldgen.es.tr new file mode 100644 index 0000000..cb59717 --- /dev/null +++ b/technic_worldgen/locale/technic_worldgen.es.tr @@ -0,0 +1,61 @@ +# textdomain: technic_worldgen + +# technic_worldgen traducido por Carlos Barraza + + +### crafts.lua ### + +Uranium Lump=Pepita de Uranio +Uranium Ingot=Lingote de Uranio +Chromium Lump=Pepita de Cromo +Chromium Ingot=Lingote de Cromo +Zinc Lump=Pepita de Zinc +Zinc Ingot=Lingote de Zinc +Lead Lump= +Lead Ingot= +Sulfur Lump= +Wrought Iron Ingot=Lingote de Hierro Forjado +Cast Iron Ingot=Lingote de Hierro Fundido +Carbon Steel Ingot=Lingote de Acero al Carbon +Stainless Steel Ingot=Lingote de Acero inoxidable +Iron Axe= +Iron Pickaxe= +Iron Shovel= +Iron Sword= +Iron Door= +Iron Hoe= +Iron Hammer= +Iron Handsaw= +Iron-Reinforced Crystal Glass= +Heavy Iron Bottle (empty)= + +### nodes.lua ### + +Uranium Ore=Mineral de Uranio +Chromium Ore=Mineral de Cromo +Zinc Ore=Mineral de Zinc +Lead Ore= +Sulfur Ore= +Granite=Granito +Marble=Mármol +Marble Bricks=Ladrillos de Mármol +Uranium Block=Bloque de Uranio +Chromium Block=Bloque de Cromo +Zinc Block=Bloque de Zinc +Lead Block= +Wrought Iron Block=Bloque de Hierro Forjado +Cast Iron Block=Bloque de Hierro Fundido +Carbon Steel Block=Bloque de Acero al Carbon +Stainless Steel Block=Bloque de Acero Inoxidable +Outer Wrought Iron Block Stair= +Inner Wrought Iron Block Stair= +Wrought Iron Block Stair= +Wrought Iron Block Slab= + +### rubber.lua ### + +Rubber Tree Sapling=Retoño de Árbol de Goma +Rubber Tree=Árbol de Goma +Rubber Tree Leaves= +Worldgen: grow rubber tree sapling= + diff --git a/technic_worldgen/locale/technic_worldgen.fr.tr b/technic_worldgen/locale/technic_worldgen.fr.tr new file mode 100644 index 0000000..0c6c8d2 --- /dev/null +++ b/technic_worldgen/locale/technic_worldgen.fr.tr @@ -0,0 +1,57 @@ +# textdomain: technic_worldgen + +### crafts.lua ### + +Uranium Lump=Morceau d'uranium +Uranium Ingot=Lingot d'uranium +Chromium Lump=Morceau de chrome +Chromium Ingot=Lingot de chrome +Zinc Lump=Morceau de zinc +Zinc Ingot=Lingot de zinc +Lead Lump=Morceau de plomb +Lead Ingot=Lingot de plomb +Sulfur Lump=Morceau de soufre +Wrought Iron Ingot=Lingot de fer forgé +Cast Iron Ingot=Lingot de fonte +Carbon Steel Ingot=Lingot d'acier au carbone +Stainless Steel Ingot=Lingot d'acier inoxydable +Iron Axe=Hache en fer +Iron Pickaxe=Pioche en fer +Iron Shovel=Pelle en fer +Iron Sword=Épée en fer +Iron Door=Porte en fer +Iron Hoe=Houe en fer +Iron Hammer=Marteau en fer +Iron Handsaw=Scie circulaire en fer +Iron-Reinforced Crystal Glass=Verre en crystal renforcé au fer +Heavy Iron Bottle (empty)=Bouteille lourde en fer (vide) + +### nodes.lua ### + +Uranium Ore=Minerai d'uranium +Chromium Ore=Minerai de chrome +Zinc Ore=Minerai de zinc +Lead Ore=Minerai de plomb +Sulfur Ore=Minerai de soufre +Granite=Granite +Marble=Marbre +Marble Bricks=Briques en marbre +Uranium Block=Bloc d'uranium +Chromium Block=Bloc de chrome +Zinc Block=Bloc de zinc +Lead Block=Bloc de plomb +Wrought Iron Block=Bloc de fer forgé +Cast Iron Block=Bloc de fonte +Carbon Steel Block=Bloc d'acier au carbone +Stainless Steel Block=Bloc d'acier inoxydable +Outer Wrought Iron Block Stair=Escalier extérieur en bloc de fer forgé +Inner Wrought Iron Block Stair=Escalier intérieur en bloc de fer forgé +Wrought Iron Block Stair=Escalier en bloc de fer forgé +Wrought Iron Block Slab=Dalle en bloc de fer forgé + +### rubber.lua ### + +Rubber Tree Sapling=Pousse d'arbre à caoutchouc +Rubber Tree=Arbre à caoutchouc +Rubber Tree Leaves=Feuilles d’arbre à caoutchouc +Worldgen: grow rubber tree sapling=Worldgen : pousse des arbres à caoutchouc diff --git a/technic_worldgen/locale/technic_worldgen.pl.tr b/technic_worldgen/locale/technic_worldgen.pl.tr new file mode 100644 index 0000000..9fe053a --- /dev/null +++ b/technic_worldgen/locale/technic_worldgen.pl.tr @@ -0,0 +1,62 @@ +# textdomain: technic_worldgen + +# Polish Translation for technic_worldgen +# Polskie tłumaczenie technic_worldgen +# by mat9117 + + +### crafts.lua ### + +Uranium Lump=Bryłka uranu +Uranium Ingot=Sztabka uranu +Chromium Lump=Bryłka chromu +Chromium Ingot=Sztabka chromu +Zinc Lump=Bryłka cynku +Zinc Ingot=Sztabka cynku +Lead Lump= +Lead Ingot= +Sulfur Lump= +Wrought Iron Ingot=Sztabka kutego żelaza +Cast Iron Ingot=Sztabka żelaziwa +Carbon Steel Ingot=Sztabka stali węglowej +Stainless Steel Ingot=Sztabka nierdzewnej stali +Iron Axe= +Iron Pickaxe= +Iron Shovel= +Iron Sword= +Iron Door= +Iron Hoe= +Iron Hammer= +Iron Handsaw= +Iron-Reinforced Crystal Glass= +Heavy Iron Bottle (empty)= + +### nodes.lua ### + +Uranium Ore=Ruda uranu +Chromium Ore=Ruda chromu +Zinc Ore=Ruda cynku +Lead Ore= +Sulfur Ore= +Granite=Granit +Marble=Marmur +Marble Bricks=Marmurowe cegły +Uranium Block=Blok uranu +Chromium Block=Blok chromu +Zinc Block=Blok cynku +Lead Block= +Wrought Iron Block=Blok kutego żelaza +Cast Iron Block=Blok żelaziwa +Carbon Steel Block=Blok stali węglowej +Stainless Steel Block=Blok stali nierdzewnej +Outer Wrought Iron Block Stair= +Inner Wrought Iron Block Stair= +Wrought Iron Block Stair= +Wrought Iron Block Slab= + +### rubber.lua ### + +Rubber Tree Sapling=Sadzonka kauczukowca +Rubber Tree=Kauczukowiec +Rubber Tree Leaves= +Worldgen: grow rubber tree sapling= diff --git a/technic_worldgen/locale/technic_worldgen.pt_BR.tr b/technic_worldgen/locale/technic_worldgen.pt_BR.tr new file mode 100644 index 0000000..54a74b8 --- /dev/null +++ b/technic_worldgen/locale/technic_worldgen.pt_BR.tr @@ -0,0 +1,62 @@ +# textdomain: technic_worldgen + +# Braziliam portuguese translation for technic_worldgen +# Tradução portuguesa brasileira para technic_worldgen +# By Sires + + +### crafts.lua ### + +Uranium Lump=Pedaço de Urânio +Uranium Ingot=Lingote de Urânio +Chromium Lump=Pedaço de Crômio +Chromium Ingot=Lingote de Crômio +Zinc Lump=Pedaço de Zinco +Zinc Ingot=Lingote de Zinco +Lead Lump= +Lead Ingot= +Sulfur Lump= +Wrought Iron Ingot=Lingote de Ferro Forjado +Cast Iron Ingot=Lingote de Ferro Fundido +Carbon Steel Ingot=Lingote de Aço Carbono +Stainless Steel Ingot= Lingote de Ferro Inoxidável +Iron Axe= +Iron Pickaxe= +Iron Shovel= +Iron Sword= +Iron Door= +Iron Hoe= +Iron Hammer= +Iron Handsaw= +Iron-Reinforced Crystal Glass= +Heavy Iron Bottle (empty)= + +### nodes.lua ### + +Uranium Ore=Minério de Urânio +Chromium Ore=Minério de Crômio +Zinc Ore=Minério de Zinco +Lead Ore= +Sulfur Ore= +Granite=Granito +Marble=Mármore +Marble Bricks=Tijolos de Mármore +Uranium Block=Bloco de Urânio +Chromium Block=Bloco de Crômio +Zinc Block=Bloco de Zinco +Lead Block= +Wrought Iron Block=Bloco de Ferro Forjado +Cast Iron Block=Bloco de Ferro Fundido +Carbon Steel Block=Bloco de Aço Carbono +Stainless Steel Block=Bloco de Aço Inoxidável +Outer Wrought Iron Block Stair= +Inner Wrought Iron Block Stair= +Wrought Iron Block Stair= +Wrought Iron Block Slab= + +### rubber.lua ### + +Rubber Tree Sapling=Muda de Árvore de Borracha +Rubber Tree=Árvore de Borracha +Rubber Tree Leaves= +Worldgen: grow rubber tree sapling= diff --git a/technic_worldgen/locale/technic_worldgen.tr.tr b/technic_worldgen/locale/technic_worldgen.tr.tr new file mode 100644 index 0000000..89c5bbc --- /dev/null +++ b/technic_worldgen/locale/technic_worldgen.tr.tr @@ -0,0 +1,62 @@ +# textdomain: technic_worldgen + +# Turkish translation +# mahmutelmas06@hotmail.com +# Türkçe çeviri + + +### crafts.lua ### + +Uranium Lump=Uranyum yığını +Uranium Ingot=Uranyum külçesi +Chromium Lump=Krom yığını +Chromium Ingot=Krom külçesi +Zinc Lump=Çinko yığını +Zinc Ingot=Çünko külçesi +Lead Lump= +Lead Ingot= +Sulfur Lump= +Wrought Iron Ingot=İşlenmiş demir yığını +Cast Iron Ingot=Döküm demir yığını +Carbon Steel Ingot=Karbon çelik külçe +Stainless Steel Ingot= +Iron Axe= +Iron Pickaxe= +Iron Shovel= +Iron Sword= +Iron Door= +Iron Hoe= +Iron Hammer= +Iron Handsaw= +Iron-Reinforced Crystal Glass= +Heavy Iron Bottle (empty)= + +### nodes.lua ### + +Uranium Ore=Uranyum madeni +Chromium Ore=Krom madeni +Zinc Ore=Çinko madeni +Lead Ore= +Sulfur Ore= +Granite=Granit +Marble=Mermer +Marble Bricks=Mermer tuğla +Uranium Block=Uranyum blok +Chromium Block=Karbon blok +Zinc Block=Çinko blok +Lead Block= +Wrought Iron Block=İşlenmiş demir blok +Cast Iron Block=Döküm demir blok +Carbon Steel Block=Karbon çelik blok +Stainless Steel Block=Paslanmaz çelik blok +Outer Wrought Iron Block Stair= +Inner Wrought Iron Block Stair= +Wrought Iron Block Stair= +Wrought Iron Block Slab= + +### rubber.lua ### + +Rubber Tree Sapling=Kauçuk ağacı fidanı +Rubber Tree=Kauçuk ağacı +Rubber Tree Leaves= +Worldgen: grow rubber tree sapling= diff --git a/technic_worldgen/locale/template.txt b/technic_worldgen/locale/template.txt index 40d0029..60b923d 100644 --- a/technic_worldgen/locale/template.txt +++ b/technic_worldgen/locale/template.txt @@ -1,37 +1,61 @@ +# textdomain: technic_worldgen + # template.txt # technic_worldgen translation template -###crafts.lua -Uranium Lump = -Uranium Ingot = -Chromium Lump = -Chromium Ingot = -Zinc Lump = -Zinc Ingot = -Brass Ingot = -Wrought Iron Ingot = -Cast Iron Ingot = -Carbon Steel Ingot = -Stainless Steel Ingot = -Iron = -###nodes.lua -Uranium Ore = -Chromium Ore = -Zinc Ore = -Granite = -Marble = -Marble Bricks = -Uranium Block = -Chromium Block = -Zinc Block = -Wrought Iron Block = -Cast Iron Block = -Carbon Steel Block = -Stainless Steel Block = -Brass Block = -Wrought Iron = +### crafts.lua ### -###rubber.lua -Rubber Tree Sapling = -Rubber Tree = +Uranium Lump= +Uranium Ingot= +Chromium Lump= +Chromium Ingot= +Zinc Lump= +Zinc Ingot= +Lead Lump= +Lead Ingot= +Sulfur Lump= +Wrought Iron Ingot= +Cast Iron Ingot= +Carbon Steel Ingot= +Stainless Steel Ingot= +Iron Axe= +Iron Pickaxe= +Iron Shovel= +Iron Sword= +Iron Door= +Iron Hoe= +Iron Hammer= +Iron Handsaw= +Iron-Reinforced Crystal Glass= +Heavy Iron Bottle (empty)= + +### nodes.lua ### + +Uranium Ore= +Chromium Ore= +Zinc Ore= +Lead Ore= +Sulfur Ore= +Granite= +Marble= +Marble Bricks= +Uranium Block= +Chromium Block= +Zinc Block= +Lead Block= +Wrought Iron Block= +Cast Iron Block= +Carbon Steel Block= +Stainless Steel Block= +Outer Wrought Iron Block Stair= +Inner Wrought Iron Block Stair= +Wrought Iron Block Stair= +Wrought Iron Block Slab= + +### rubber.lua ### + +Rubber Tree Sapling= +Rubber Tree= +Rubber Tree Leaves= +Worldgen: grow rubber tree sapling= diff --git a/technic_worldgen/locale/tr.txt b/technic_worldgen/locale/tr.txt deleted file mode 100644 index 1c0fc44..0000000 --- a/technic_worldgen/locale/tr.txt +++ /dev/null @@ -1,38 +0,0 @@ -# Turkish translation -# mahmutelmas06@hotmail.com -# Türkçe çeviri - -###crafts.lua -Uranium Lump = Uranyum yığını -Uranium Ingot = Uranyum külçesi -Chromium Lump = Krom yığını -Chromium Ingot = Krom külçesi -Zinc Lump = Çinko yığını -Zinc Ingot = Çünko külçesi -Brass Ingot = Pirinç yığını -Wrought Iron Ingot = İşlenmiş demir yığını -Cast Iron Ingot = Döküm demir yığını -Carbon Steel Ingot = Karbon çelik külçe -Stainless Steel Ingot =Paslanmaz çelik külçe -Iron = Demir - -###nodes.lua -Uranium Ore = Uranyum madeni -Chromium Ore = Krom madeni -Zinc Ore = Çinko madeni -Granite = Granit -Marble = Mermer -Marble Bricks = Mermer tuğla -Uranium Block = Uranyum blok -Chromium Block = Karbon blok -Zinc Block = Çinko blok -Wrought Iron Block = İşlenmiş demir blok -Cast Iron Block = Döküm demir blok -Carbon Steel Block = Karbon çelik blok -Stainless Steel Block = Paslanmaz çelik blok -Brass Block = Pirinç blok -Wrought Iron = İşlenmiş demir - -###rubber.lua -Rubber Tree Sapling = Kauçuk ağacı fidanı -Rubber Tree = Kauçuk ağacı diff --git a/technic_worldgen/mod.conf b/technic_worldgen/mod.conf index 49988f5..dacf341 100644 --- a/technic_worldgen/mod.conf +++ b/technic_worldgen/mod.conf @@ -1,3 +1,4 @@ name = technic_worldgen depends = default, basic_materials -optional_depends = intllib, mg, doors, farming, glooptest, mesecons_doors, vessels +optional_depends = mg, doors, farming, glooptest, mesecons_doors, vessels, toolranks, stairs +min_minetest_version = 5.0.0 diff --git a/technic_worldgen/nodes.lua b/technic_worldgen/nodes.lua index d4d3e4c..aab7ce8 100644 --- a/technic_worldgen/nodes.lua +++ b/technic_worldgen/nodes.lua @@ -1,5 +1,5 @@ -local S = technic.worldgen.gettext +local S = minetest.get_translator("technic_worldgen") minetest.register_node( ":technic:mineral_uranium", { description = S("Uranium Ore"), @@ -145,44 +145,41 @@ minetest.register_alias("technic:diamond_block", "default:diamondblock") minetest.register_alias("technic:diamond", "default:diamond") minetest.register_alias("technic:mineral_diamond", "default:stone_with_diamond") -local function for_each_registered_node(action) - local really_register_node = minetest.register_node - minetest.register_node = function(name, def) - really_register_node(name, def) - action(name:gsub("^:", ""), def) - end - for name, def in pairs(minetest.registered_nodes) do - action(name, def) +local steel_to_wrought_iron = { + {name="stairs:stair_outer_steelblock", description=S("Outer Wrought Iron Block Stair")}, + {name="stairs:stair_inner_steelblock", description=S("Inner Wrought Iron Block Stair")}, + {name="stairs:stair_steelblock", description=S("Wrought Iron Block Stair")}, + {name="stairs:slab_steelblock", description=S("Wrought Iron Block Slab")} +} + +for _, v in ipairs(steel_to_wrought_iron) do + local node_name = v.name + local node_def = minetest.registered_items[node_name] + if node_def then + minetest.override_item(node_name, { + description = v.description + }) + + local tiles = node_def.tiles or node_def.tile_images + if tiles then + local new_tiles = {} + local do_override = false + if type(tiles) == "string" then + tiles = {tiles} + end + for i, t in ipairs(tiles) do + if type(t) == "string" and t == "default_steel_block.png" then + do_override = true + t = "technic_wrought_iron_block.png" + end + table.insert(new_tiles, t) + end + if do_override then + minetest.override_item(node_name, { + tiles = new_tiles + }) + end + end end end -for_each_registered_node(function(node_name, node_def) - if node_name ~= "default:steelblock" and - node_name:find("steelblock", 1, true) and - node_def.description:find("Steel", 1, true) then - minetest.override_item(node_name, { - description = node_def.description:gsub("Steel", S("Wrought Iron")), - }) - end - local tiles = node_def.tiles or node_def.tile_images - if tiles then - local new_tiles = {} - local do_override = false - if type(tiles) == "string" then - tiles = {tiles} - end - for i, t in ipairs(tiles) do - if type(t) == "string" and t == "default_steel_block.png" then - do_override = true - t = "technic_wrought_iron_block.png" - end - table.insert(new_tiles, t) - end - if do_override then - minetest.override_item(node_name, { - tiles = new_tiles - }) - end - end -end) - diff --git a/technic_worldgen/rubber.lua b/technic_worldgen/rubber.lua index 11da9ca..d113e44 100644 --- a/technic_worldgen/rubber.lua +++ b/technic_worldgen/rubber.lua @@ -1,6 +1,6 @@ -- Code of rubber tree by PilzAdam -local S = technic.worldgen.gettext +local S = minetest.get_translator("technic_worldgen") minetest.register_node(":moretrees:rubber_tree_sapling", { description = S("Rubber Tree Sapling"), @@ -73,7 +73,7 @@ technic.rubber_tree_model={ minetest.register_abm({ nodenames = {"moretrees:rubber_tree_sapling"}, - label = "Worldgen: grow rubber tree sapling", + label = S("Worldgen: grow rubber tree sapling"), interval = 60, chance = 20, action = function(pos, node) diff --git a/wrench/depends.txt b/wrench/depends.txt deleted file mode 100644 index a681af3..0000000 --- a/wrench/depends.txt +++ /dev/null @@ -1,6 +0,0 @@ -default -technic? -technic_chests? -technic_worldgen? -intllib? - diff --git a/wrench/init.lua b/wrench/init.lua index adb80c9..87d6106 100644 --- a/wrench/init.lua +++ b/wrench/init.lua @@ -19,8 +19,8 @@ local modpath = minetest.get_modpath(minetest.get_current_modname()) dofile(modpath.."/support.lua") dofile(modpath.."/technic.lua") --- Boilerplate to support localized strings if intllib mod is installed. -local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end +-- Translation support +local S = minetest.get_translator("wrench") local function get_meta_type(name, metaname) local def = wrench.registered_nodes[name] @@ -37,13 +37,11 @@ local function restore(pos, placer, itemstack) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() local data = itemstack:get_meta():get_string("data") - data = (data ~= "" and data) or itemstack:get_metadata() + data = (data ~= "" and data) or itemstack:get_metadata() data = minetest.deserialize(data) if not data then minetest.remove_node(pos) - minetest.log("error", placer:get_player_name().." wanted to place ".. - name.." at "..minetest.pos_to_string(pos).. - ", but it had no data.") + minetest.log("error", placer:get_player_name().." wanted to place "..name.." at "..minetest.pos_to_string(pos)..", but it had no data.") minetest.log("verbose", "itemstack: "..itemstack:to_string()) return true end @@ -74,7 +72,7 @@ for name, info in pairs(wrench.registered_nodes) do newdef[key] = value end newdef.stack_max = 1 - newdef.description = S("%s with items"):format(newdef.description) + newdef.description = S("@1 with items", newdef.description) newdef.groups = {} newdef.groups.not_in_creative_inventory = 1 newdef.on_construct = nil @@ -123,10 +121,7 @@ minetest.register_tool("wrench:wrench", { if def.owned and not minetest.check_player_privs(placer, "protection_bypass") then local owner = meta:get_string("owner") if owner and owner ~= player_name then - minetest.log("action", player_name.. - " tried to pick up an owned node belonging to ".. - owner.." at ".. - minetest.pos_to_string(pos)) + minetest.log("action", player_name.." tried to pick up an owned node belonging to "..owner.." at "..minetest.pos_to_string(pos)) return end end diff --git a/wrench/locale/de.txt b/wrench/locale/de.txt deleted file mode 100644 index b285cd3..0000000 --- a/wrench/locale/de.txt +++ /dev/null @@ -1,7 +0,0 @@ -# German Translation for technic_wrench -# Deutsche Übersetzung von technic_wrench -# by Xanthin - -Wrench = Schraubenschluessel -%s with items = %s mit Gegenstaenden - diff --git a/wrench/locale/es.txt b/wrench/locale/es.txt deleted file mode 100644 index 1d79a96..0000000 --- a/wrench/locale/es.txt +++ /dev/null @@ -1,5 +0,0 @@ -# technic_wrench traducido por Carlos Barraza - -Wrench = Llave Inglesa -%s with items = %s con elementos - diff --git a/wrench/locale/fr.txt b/wrench/locale/fr.txt deleted file mode 100644 index a66b6e3..0000000 --- a/wrench/locale/fr.txt +++ /dev/null @@ -1,5 +0,0 @@ -# technic_wrench translation template - -Wrench = Clé -%s with items = %s avec des objets - diff --git a/wrench/locale/pl.txt b/wrench/locale/pl.txt deleted file mode 100644 index 272eaa0..0000000 --- a/wrench/locale/pl.txt +++ /dev/null @@ -1,7 +0,0 @@ -# Polish Translation for technic_wrench -# Polskie tłumaczenie technic_wrench -# by mat9117 - -Wrench = Klucz -%s with items = %s z rzeczami - diff --git a/wrench/locale/template.txt b/wrench/locale/template.txt index eff2da2..9636c6e 100644 --- a/wrench/locale/template.txt +++ b/wrench/locale/template.txt @@ -1,5 +1,8 @@ -# technic_wrench translation template +# textdomain: wrench -Wrench = -%s with items = + +### init.lua ### + +@1 with items= +Wrench= diff --git a/wrench/locale/tr.txt b/wrench/locale/tr.txt deleted file mode 100644 index 2050bce..0000000 --- a/wrench/locale/tr.txt +++ /dev/null @@ -1,5 +0,0 @@ -# Turkish translation by mahmutelmas06 -# mahmutelmas06@hotmail.com - -Wrench = İngiliz anahtarı -%s with items = Araçlarla birlikte %s diff --git a/wrench/locale/wrench.de.tr b/wrench/locale/wrench.de.tr new file mode 100644 index 0000000..351dcbb --- /dev/null +++ b/wrench/locale/wrench.de.tr @@ -0,0 +1,11 @@ +# textdomain: wrench +# German Translation for technic_wrench +# Deutsche Übersetzung von technic_wrench +# by Xanthin + + + +### init.lua ### + +@1 with items=@1 mit Gegenstaenden +Wrench=Schraubenschluessel diff --git a/wrench/locale/wrench.es.tr b/wrench/locale/wrench.es.tr new file mode 100644 index 0000000..c7262ea --- /dev/null +++ b/wrench/locale/wrench.es.tr @@ -0,0 +1,8 @@ +# textdomain: wrench + +# traducido por Carlos Barraza + +### init.lua ### + +@1 with items=@1 con elementos +Wrench=Llave Inglesa diff --git a/wrench/locale/wrench.fr.tr b/wrench/locale/wrench.fr.tr new file mode 100644 index 0000000..aaee7ff --- /dev/null +++ b/wrench/locale/wrench.fr.tr @@ -0,0 +1,6 @@ +# textdomain: wrench + +### init.lua ### + +@1 with items=@1 avec des objets +Wrench=Clé diff --git a/wrench/locale/wrench.pl.tr b/wrench/locale/wrench.pl.tr new file mode 100644 index 0000000..0050479 --- /dev/null +++ b/wrench/locale/wrench.pl.tr @@ -0,0 +1,11 @@ +# textdomain: wrench + +# Polish Translation for wrench +# Polskie tłumaczenie wrench +# by mat9117 + + +### init.lua ### + +@1 with items=@1 z rzeczami +Wrench=Klucz diff --git a/wrench/locale/pt_BR.txt b/wrench/locale/wrench.pt_BR.tr similarity index 54% rename from wrench/locale/pt_BR.txt rename to wrench/locale/wrench.pt_BR.tr index 670c3eb..659a884 100644 --- a/wrench/locale/pt_BR.txt +++ b/wrench/locale/wrench.pt_BR.tr @@ -1,7 +1,11 @@ +# textdomain: wrench + # Braziliam portuguese translation for wrench # Tradução portuguesa brasileira para wrench # By Sires -Wrench = Chave Inglesa -%s with items = %s com items +### init.lua ### + +@1 with items=@1 com items +Wrench=Chave Inglesa diff --git a/wrench/locale/wrench.tr.tr b/wrench/locale/wrench.tr.tr new file mode 100644 index 0000000..7060616 --- /dev/null +++ b/wrench/locale/wrench.tr.tr @@ -0,0 +1,10 @@ +# textdomain: wrench + +# Turkish translation by mahmutelmas06 +# mahmutelmas06@hotmail.com + + +### init.lua ### + +@1 with items=Araçlarla birlikte @1 +Wrench=İngiliz anahtarı diff --git a/wrench/mod.conf b/wrench/mod.conf index a18b4f7..a3015f1 100644 --- a/wrench/mod.conf +++ b/wrench/mod.conf @@ -1,3 +1,4 @@ name = wrench depends = default -optional_depends = technic, technic_chests, technic_worldgen, intllib +optional_depends = technic, technic_chests, technic_worldgen +min_minetest_version = 5.0.0