summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXanthin <Xanthin@users.noreply.github.com>2014-04-16 19:10:00 +0200
committerShadowNinja <shadowninja@minetest.net>2014-04-22 16:30:27 -0400
commit39c41a06f4993dc17507fb480fcabbca319ceff7 (patch)
tree63f2fad43fa39f2b1d7664a5f75cc8041e18e078
parentdb202503713ddd1084f188a5eac506be665e9c44 (diff)
Add german translations for all mods
-rw-r--r--concrete/depends.txt2
-rw-r--r--concrete/init.lua18
-rw-r--r--concrete/locale/de.txt10
-rw-r--r--concrete/locale/template.txt8
-rw-r--r--extranodes/depends.txt2
-rw-r--r--extranodes/init.lua16
-rw-r--r--extranodes/locale/de.txt9
-rw-r--r--extranodes/locale/template.txt7
-rw-r--r--technic/locale/de.txt180
-rw-r--r--technic/locale/es.txt1
-rw-r--r--technic/locale/template.txt11
-rw-r--r--technic/machines/LV/cnc.lua8
-rw-r--r--technic/machines/LV/music_player.lua6
-rw-r--r--technic/machines/other/constructor.lua14
-rw-r--r--technic/machines/other/frames.lua4
-rw-r--r--technic/machines/other/injector.lua4
-rw-r--r--technic/machines/register/alloy_furnace.lua2
-rw-r--r--technic/machines/register/electric_furnace.lua10
-rw-r--r--technic/machines/register/grinder.lua4
-rw-r--r--technic_chests/locale/de.txt35
-rw-r--r--technic_chests/locale/template.txt2
-rw-r--r--technic_chests/register.lua4
-rw-r--r--technic_worldgen/crafts.lua17
-rw-r--r--technic_worldgen/depends.txt1
-rw-r--r--technic_worldgen/init.lua7
-rw-r--r--technic_worldgen/locale/de.txt30
-rw-r--r--technic_worldgen/locale/template.txt28
-rw-r--r--technic_worldgen/nodes.lua26
-rw-r--r--technic_worldgen/rubber.lua8
-rw-r--r--wrench/depends.txt4
-rw-r--r--wrench/init.lua12
-rw-r--r--wrench/locale/de.txt7
-rw-r--r--wrench/locale/template.txt5
33 files changed, 437 insertions, 65 deletions
diff --git a/concrete/depends.txt b/concrete/depends.txt
index 4ad96d5..c48fe0d 100644
--- a/concrete/depends.txt
+++ b/concrete/depends.txt
@@ -1 +1,3 @@
default
+intllib?
+
diff --git a/concrete/init.lua b/concrete/init.lua
index 2e263bc..869dbbd 100644
--- a/concrete/init.lua
+++ b/concrete/init.lua
@@ -4,6 +4,14 @@
local technic = technic or {}
technic.concrete_posts = {}
+-- Boilerplate to support localized strings if intllib mod is installed.
+local S
+if intllib then
+ S = intllib.Getter()
+else
+ S = function(s) return s end
+end
+
minetest.register_alias("technic:concrete_post", "technic:concrete_post0")
minetest.register_alias("technic:concrete_post32", "technic:concrete_post12")
minetest.register_alias("technic:concrete_post33", "technic:concrete_post3")
@@ -61,12 +69,12 @@ local box_x2 = {0, -0.3, -0.1, -0.5, 0.3, 0.1}
local box_z2 = {-0.1, -0.3, 0, 0.1, 0.3, -0.5}
minetest.register_craftitem(":technic:rebar", {
- description = "Rebar",
+ description = S("Rebar"),
inventory_image = "technic_rebar.png",
})
minetest.register_node(":technic:concrete", {
- description = "Concrete Block",
+ description = S("Concrete Block"),
tile_images = {"technic_concrete_block.png",},
groups = {cracky=1, level=2, concrete=1},
sounds = default.node_sound_stone_defaults(),
@@ -79,7 +87,7 @@ minetest.register_node(":technic:concrete", {
})
minetest.register_node(":technic:blast_resistant_concrete", {
- description = "Blast-resistant Concrete Block",
+ description = S("Blast-resistant Concrete Block"),
tile_images = {"technic_blast_resistant_concrete_block.png",},
groups={cracky=1, level=3, concrete=1},
sounds = default.node_sound_stone_defaults(),
@@ -92,7 +100,7 @@ minetest.register_node(":technic:blast_resistant_concrete", {
})
minetest.register_node(":technic:concrete_post_platform", {
- description = "Concrete Post Platform",
+ description = S("Concrete Post Platform"),
tile_images = {"technic_concrete_block.png",},
groups={cracky=1, level=2},
sounds = default.node_sound_stone_defaults(),
@@ -222,7 +230,7 @@ for platform = 0, 1 do
end
minetest.register_node(":technic:concrete_post"..id, {
- description = "Concrete Post",
+ description = S("Concrete Post"),
tiles = {"technic_concrete_block.png"},
groups = groups,
sounds = default.node_sound_stone_defaults(),
diff --git a/concrete/locale/de.txt b/concrete/locale/de.txt
new file mode 100644
index 0000000..83fdc19
--- /dev/null
+++ b/concrete/locale/de.txt
@@ -0,0 +1,10 @@
+# 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/template.txt b/concrete/locale/template.txt
new file mode 100644
index 0000000..451adaf
--- /dev/null
+++ b/concrete/locale/template.txt
@@ -0,0 +1,8 @@
+# technic_concrete translation template
+
+Rebar =
+Concrete Block =
+Blast-resistant Concrete Block =
+Concrete Post Platform =
+Concrete Post =
+
diff --git a/extranodes/depends.txt b/extranodes/depends.txt
index cd0e778..6271875 100644
--- a/extranodes/depends.txt
+++ b/extranodes/depends.txt
@@ -2,3 +2,5 @@ default
moreblocks
technic_worldgen
concrete
+intllib?
+
diff --git a/extranodes/init.lua b/extranodes/init.lua
index 3794bca..0d6f183 100644
--- a/extranodes/init.lua
+++ b/extranodes/init.lua
@@ -1,11 +1,17 @@
-- Minetest 0.4.6 mod: extranodes
-- namespace: technic
-
+-- Boilerplate to support localized strings if intllib mod is installed.
+local S
+if intllib then
+ S = intllib.Getter()
+else
+ S = function(s) return s end
+end
--register stairslike nodes
register_stair_slab_panel_micro("technic", "marble", "technic:marble",
{cracky=2, not_in_creative_inventory=1},
{"technic_marble.png"},
- "Marble",
+ S("Marble"),
"marble",
"facedir",
0)
@@ -13,7 +19,7 @@ register_stair_slab_panel_micro("technic", "marble", "technic:marble",
register_stair_slab_panel_micro("technic", "marble_bricks", "technic:marble_bricks",
{cracky=2, not_in_creative_inventory=1},
{"technic_marble_bricks.png"},
- "Marble Bricks",
+ S("Marble Bricks"),
"marble_bricks",
"facedir",
0)
@@ -21,7 +27,7 @@ register_stair_slab_panel_micro("technic", "marble_bricks", "technic:marble_bric
register_stair_slab_panel_micro("technic", "granite", "technic:granite",
{cracky=3, not_in_creative_inventory=1},
{"technic_granite.png"},
- "Granite",
+ S("Granite"),
"granite",
"facedir",
0)
@@ -29,7 +35,7 @@ register_stair_slab_panel_micro("technic", "granite", "technic:granite",
register_stair_slab_panel_micro("technic", "concrete", "technic:concrete",
{cracky=3, not_in_creative_inventory=1},
{"technic_concrete_block.png"},
- "Concrete",
+ S("Concrete"),
"concrete",
"facedir",
0)
diff --git a/extranodes/locale/de.txt b/extranodes/locale/de.txt
new file mode 100644
index 0000000..f3c017e
--- /dev/null
+++ b/extranodes/locale/de.txt
@@ -0,0 +1,9 @@
+# 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/template.txt b/extranodes/locale/template.txt
new file mode 100644
index 0000000..2ffe498
--- /dev/null
+++ b/extranodes/locale/template.txt
@@ -0,0 +1,7 @@
+# technic_extranodes translation template
+
+Marble =
+Marble Bricks =
+Granite =
+Concrete =
+
diff --git a/technic/locale/de.txt b/technic/locale/de.txt
new file mode 100644
index 0000000..2e6af05
--- /dev/null
+++ b/technic/locale/de.txt
@@ -0,0 +1,180 @@
+# 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
+
+## 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)
+%s Active = %s ist eingeschaltet
+%s Disabled = %s ist ausgeschaltet
+%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
+Mode: %s = Methode: %s
+single items = Einzelstuecke
+whole stacks = Ganzer Stapel
+
+## Machine names
+# $1: Tier
+%s Alloy Furnace = %s Legierungsofen
+%s Battery Box = %s Batteriebox
+%s Cable = %s Kabel
+%s Electric Furnace = %s Elektro-Ofen
+%s Grinder = %s Schleifmaschine
+%s Generator = %s Generator
+%s Solar Array = %s Solaranlage
+Injector = 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
+CNC Machine = CNC-Maschine
+Coal Alloy Furnace = Kohle-Legierungsofen
+Extractor = Extraktor
+Compressor = Kompressor
+Solar Panel = Solarmodul
+Geothermal Generator = Geothermie-Generator
+Music Player = Musikspieler
+Water Mill = Wassermuehle
+Tool Workshop = Werkzeugwerkstatt
+Wind Mill = Windmuehle
+Wind Mill Frame = Windmuehlengeruest
+Forcefield Emitter = Kraftfeld-Emitter
+Forcefield = Kraftfeld
+Nuclear Reactor Core = Reaktorkern
+Nuclear Reactor Rod Compartment = Brennstabfaecher
+Quarry = Steinbruch
+
+## Machine-specific
+# $1: Pruduced EU
+Charge = Aufladen
+Discharge = Entladen
+Power level = Energiestufe
+# $1: Tier $2: current_charge $3: max_charge
+%s Battery Box: %d/%d = %s Batteriebox: %d/%d
+# $1: Machine name $2: Supply $3: Demand
+%s. Supply: %d Demand: %d = %s. Versorgung: %d Bedarf: %d
+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
+
+## CNC
+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:
+Steel = Stahl:
+Stone = Stein:
+Tree = Baumstamm:
+Wooden = Holz:
+
+## Grinder Recipes
+# $1: Name
+%s Dust = %sstaub
+Akalin = Akalin
+Alatro = Alatro
+Arol = Arol
+Brass = Messing
+Bronze = Bronze
+Chromium = Chrom
+Coal = Kohle
+Copper = Kupfer
+Gold = Gold
+Iron = Eisen
+Mithril = Mithril
+Silver = Silber
+Stainless Steel = Edelstahl
+Talinite = Talinite
+Tin = Zinn
+Zinc = Zink
+
+## 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.
+Hold shift and use 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
+
diff --git a/technic/locale/es.txt b/technic/locale/es.txt
index ddf1a3a..5fb81cc 100644
--- a/technic/locale/es.txt
+++ b/technic/locale/es.txt
@@ -1,4 +1,3 @@
-# es.txt
# Spanish Translation for Technic Mod
# Traduccion al Español del Mod Technic
# Autor: Diego Martínez <kaeza>
diff --git a/technic/locale/template.txt b/technic/locale/template.txt
index a6e1e2c..e4fb2e8 100644
--- a/technic/locale/template.txt
+++ b/technic/locale/template.txt
@@ -45,7 +45,13 @@ Inventory move disallowed due to protection =
%s Finished =
Enable/Disable =
Range =
-
+Upgrade Slots =
+In: =
+Out: =
+Slot %d =
+Mode: %s =
+single items =
+whole stacks =
## Machine names
# $1: Tier
@@ -94,6 +100,9 @@ Power level =
# $1: Machine name $2: Supply $3: Demand
%s. Supply: %d Demand: %d =
Production at %d%% =
+Choose Milling Program: =
+Slim Elements half / normal height: =
+Current track %s =
## CNC
Cylinder =
diff --git a/technic/machines/LV/cnc.lua b/technic/machines/LV/cnc.lua
index 5d3bdb2..e03e3fd 100644
--- a/technic/machines/LV/cnc.lua
+++ b/technic/machines/LV/cnc.lua
@@ -37,7 +37,7 @@ local twosize_products = {
local cnc_formspec =
"invsize[9,11;]"..
- "label[1,0;Choose Milling Program:]"..
+ "label[1,0;"..S("Choose Milling Program:").."]"..
"image_button[1,0.5;1,1;technic_cnc_slope.png;slope; ]"..
"image_button[2,0.5;1,1;technic_cnc_slope_edge.png;slope_edge; ]"..
"image_button[3,0.5;1,1;technic_cnc_slope_inner_edge.png;slope_inner_edge; ]"..
@@ -56,7 +56,7 @@ local cnc_formspec =
"image_button[2,2.5;1,1;technic_cnc_onecurvededge.png;onecurvededge; ]"..
"image_button[3,2.5;1,1;technic_cnc_twocurvededge.png;twocurvededge; ]"..
- "label[1,3.5;Slim Elements half / normal height:]"..
+ "label[1,3.5;"..S("Slim Elements half / normal height:").."]"..
"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; ]"..
@@ -66,9 +66,9 @@ local cnc_formspec =
"image_button[5,4;1,1;technic_cnc_element_t.png;element_t; ]"..
"image_button[6,4;1,1;technic_cnc_element_edge.png;element_edge; ]"..
- "label[0, 5.5;In:]"..
+ "label[0, 5.5;"..S("In:").."]"..
"list[current_name;src;0.5,5.5;1,1;]"..
- "label[4, 5.5;Out:]"..
+ "label[4, 5.5;"..S("Out:").."]"..
"list[current_name;dst;5,5.5;4,1;]"..
"list[current_player;main;0,7;8,4;]"
diff --git a/technic/machines/LV/music_player.lua b/technic/machines/LV/music_player.lua
index fde83b7..d04e72d 100644
--- a/technic/machines/LV/music_player.lua
+++ b/technic/machines/LV/music_player.lua
@@ -29,7 +29,7 @@ local music_player_formspec =
"button[6,3;1,1;track9;9]"..
"button[4,4;1,2;play;Play]"..
"button[6,4;1,2;stop;Stop]"..
- "label[4,0;Current track --]"
+ "label[4,0;"..S("Current track %s"):format("--").."]"
local function play_track(pos, track)
return minetest.sound_play("technic_track"..tostring(track),
@@ -78,8 +78,8 @@ minetest.register_node("technic:music_player", {
"button[6,3;1,1;track9;9]"..
"button[4,4;1,2;play;Play]"..
"button[6,4;1,2;stop;Stop]"..
- "label[4,0;Current track "
- ..current_track.."]")
+ "label[4,0;"..S("Current track %s")
+ :format(current_track).."]")
if fields.play then
if music_handle then
minetest.sound_stop(music_handle)
diff --git a/technic/machines/other/constructor.lua b/technic/machines/other/constructor.lua
index 1d5d185..583d3c9 100644
--- a/technic/machines/other/constructor.lua
+++ b/technic/machines/other/constructor.lua
@@ -134,7 +134,7 @@ minetest.register_node("technic:constructor_mk1_off", {
meta:set_string("formspec",
"invsize[8,9;]"..
"label[0,0;"..S("Constructor Mk%d"):format(1).."]"..
- "label[5,0;Slot 1]"..
+ "label[5,0;"..S("Slot %d"):format(1).."]"..
"list[current_name;slot1;6,0;1,1;]"..
"list[current_player;main;0,5;8,4;]")
meta:set_string("infotext", S("Constructor Mk%d"):format(1))
@@ -215,9 +215,9 @@ minetest.register_node("technic:constructor_mk2_off", {
meta:set_string("formspec",
"invsize[8,9;]"..
"label[0,0;"..S("Constructor Mk%d"):format(2).."]"..
- "label[5,0;Slot 1]"..
+ "label[5,0;"..S("Slot %d"):format(1).."]"..
"list[current_name;slot1;6,0;1,1;]"..
- "label[5,1;Slot 2]"..
+ "label[5,1;"..S("Slot %d"):format(2).."]"..
"list[current_name;slot2;6,1;1,1;]"..
"list[current_player;main;0,5;8,4;]")
meta:set_string("infotext", S("Constructor Mk%d"):format(2))
@@ -316,13 +316,13 @@ minetest.register_node("technic:constructor_mk3_off", {
meta:set_string("formspec",
"invsize[8,9;]"..
"label[0,0;"..S("Constructor Mk%d"):format(3).."]"..
- "label[5,0;Slot 1]"..
+ "label[5,0;"..S("Slot %d"):format(1).."]"..
"list[current_name;slot1;6,0;1,1;]"..
- "label[5,1;Slot 2]"..
+ "label[5,1;"..S("Slot %d"):format(2).."]"..
"list[current_name;slot2;6,1;1,1;]"..
- "label[5,2;Slot 3]"..
+ "label[5,2;"..S("Slot %d"):format(3).."]"..
"list[current_name;slot3;6,2;1,1;]"..
- "label[5,3;Slot 4]"..
+ "label[5,3;"..S("Slot %d"):format(4).."]"..
"list[current_name;slot4;6,3;1,1;]"..
"list[current_player;main;0,5;8,4;]")
meta:set_string("infotext", S("Constructor Mk%d"):format(3))
diff --git a/technic/machines/other/frames.lua b/technic/machines/other/frames.lua
index e95696f..2a5a554 100644
--- a/technic/machines/other/frames.lua
+++ b/technic/machines/other/frames.lua
@@ -798,7 +798,7 @@ minetest.register_craftitem("technic:template_replacer",{
})
minetest.register_tool("technic:template_tool",{
- description = S("Template tool"),
+ description = S("Template Tool"),
inventory_image = "technic_template_tool.png",
on_use = function(itemstack, puncher, pointed_thing)
local pos = pointed_thing.under
@@ -851,7 +851,7 @@ local function template_motor_on(pos, node)
end
minetest.register_node("technic:template_motor",{
- description = S("Template motor"),
+ description = S("Template Motor"),
tiles = {"pipeworks_filter_top.png^[transformR90", "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,mesecon=2},
diff --git a/technic/machines/other/injector.lua b/technic/machines/other/injector.lua
index 581d272..2a9f52e 100644
--- a/technic/machines/other/injector.lua
+++ b/technic/machines/other/injector.lua
@@ -67,7 +67,7 @@ minetest.register_node("technic:injector", {
"invsize[8,9;]"..
"label[0,0;"..S("Injector").."]"..
"button[0,1;.8,.8;mode;]"..
- "label[.8,1;Mode: single items]"..
+ "label[.8,1;"..S("Mode: %s"):format("single items").."]"..
"list[current_name;main;0,2;8,2;]"..
"list[current_player;main;0,5;8,4;]")
meta:set_string("infotext", S("Injector"))
@@ -95,7 +95,7 @@ minetest.register_node("technic:injector", {
"invsize[8,9;]"..
"label[0,0;"..S("Injector").."]"..
"button[0,1;.8,.8;mode;]"..
- "label[.8,1;Mode: "..mode.."]"..
+ "label[.8,1;"..S("Mode: %s"):format(S(mode)).."]"..
"list[current_name;main;0,2;8,2;]"..
"list[current_player;main;0,5;8,4;]")
end,
diff --git a/technic/machines/register/alloy_furnace.lua b/technic/machines/register/alloy_furnace.lua
index 1195b50..51f94d6 100644
--- a/technic/machines/register/alloy_furnace.lua
+++ b/technic/machines/register/alloy_furnace.lua
@@ -105,7 +105,7 @@ function technic.register_alloy_furnace(data)
formspec = formspec..
"list[current_name;upgrade1;1,4;1,1;]"..
"list[current_name;upgrade2;2,4;1,1;]"..
- "label[1,5;Upgrade Slots]"
+ "label[1,5;"..S("Upgrade Slots").."]"
end
minetest.register_node("technic:"..ltier.."_alloy_furnace", {
diff --git a/technic/machines/register/electric_furnace.lua b/technic/machines/register/electric_furnace.lua
index 36e4f6d..262eca0 100644
--- a/technic/machines/register/electric_furnace.lua
+++ b/technic/machines/register/electric_furnace.lua
@@ -41,11 +41,11 @@ function technic.register_electric_furnace(data)
formspec = formspec..
"list[current_name;upgrade1;1,4;1,1;]"..
"list[current_name;upgrade2;2,4;1,1;]"..
- "label[1,5;Upgrade Slots]"
+ "label[1,5;"..S("Upgrade Slots").."]"
end
minetest.register_node("technic:"..ltier.."_electric_furnace", {
- description = S("%s Electric furnace"):format(tier),
+ description = S("%s Electric Furnace"):format(tier),
tiles = {"technic_"..ltier.."_electric_furnace_top.png",
"technic_"..ltier.."_electric_furnace_bottom.png",
tube_side_texture,
@@ -60,7 +60,7 @@ function technic.register_electric_furnace(data)
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local name = minetest.get_node(pos).name
- meta:set_string("infotext", S("%s Electric furnace"):format(tier))
+ meta:set_string("infotext", S("%s Electric Furnace"):format(tier))
meta:set_int("tube_time", 0)
meta:set_string("formspec", formspec)
local inv = meta:get_inventory()
@@ -76,7 +76,7 @@ function technic.register_electric_furnace(data)
})
minetest.register_node("technic:"..ltier.."_electric_furnace_active", {
- description = tier.." Electric furnace",
+ description = ("%s Electric Furnace"):format(tier),
tiles = {"technic_"..ltier.."_electric_furnace_top.png",
"technic_"..ltier.."_electric_furnace_bottom.png",
tube_side_texture,
@@ -93,7 +93,7 @@ function technic.register_electric_furnace(data)
local meta = minetest.get_meta(pos)
local name = minetest.get_node(pos).name
local data = minetest.registered_nodes[name].technic
- meta:set_string("infotext", S("%s Electric furnace"):format(tier))
+ meta:set_string("infotext", S("%s Electric Furnace"):format(tier))
meta:set_int("tube_time", 0)
meta:set_string("formspec", formspec)
local inv = meta:get_inventory()
diff --git a/technic/machines/register/grinder.lua b/technic/machines/register/grinder.lua
index 24072e1..adc8046 100644
--- a/technic/machines/register/grinder.lua
+++ b/technic/machines/register/grinder.lua
@@ -34,12 +34,12 @@ function technic.register_grinder(data)
"list[current_name;src;3,1;1,1;]"..
"list[current_name;dst;5,1;2,2;]"..
"list[current_player;main;0,6;8,4;]"..
- "label[0,0;"..tier.." Grinder]"
+ "label[0,0;"..S("%s Grinder"):format(tier).."]"
if data.upgrade then
formspec = formspec..
"list[current_name;upgrade1;1,4;1,1;]"..
"list[current_name;upgrade2;2,4;1,1;]"..
- "label[1,5;Upgrade Slots]"
+ "label[1,5;"..S("Upgrade Slots").."]"
end
minetest.register_node("technic:"..ltier.."_grinder", {
diff --git a/technic_chests/locale/de.txt b/technic_chests/locale/de.txt
new file mode 100644
index 0000000..91a6ae2
--- /dev/null
+++ b/technic_chests/locale/de.txt
@@ -0,0 +1,35 @@
+# 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
+
diff --git a/technic_chests/locale/template.txt b/technic_chests/locale/template.txt
index f320251..1e2ba02 100644
--- a/technic_chests/locale/template.txt
+++ b/technic_chests/locale/template.txt
@@ -10,7 +10,7 @@ Edit chest description: =
Black =
Blue =
Brown =
-Byan =
+Cyan =
Dark Green =
Dark Grey =
Green =
diff --git a/technic_chests/register.lua b/technic_chests/register.lua
index 3092f14..765a9a5 100644
--- a/technic_chests/register.lua
+++ b/technic_chests/register.lua
@@ -11,7 +11,7 @@ local chest_mark_colors = {
{"black", S("Black")},
{"blue", S("Blue")},
{"brown", S("Brown")},
- {"cyan", S("Byan")},
+ {"cyan", S("Cyan")},
{"dark_green", S("Dark Green")},
{"dark_grey", S("Dark Grey")},
{"green", S("Green")},
@@ -113,7 +113,7 @@ function technic.chests:register(name, data)
local locked_after_place = nil
local front = {"technic_"..lname.."_chest_front.png"}
data.formspec = "invsize["..width..",10;]"..
- "label[0,0;"..name.." Chest]"..
+ "label[0,0;"..S("%s Chest"):format(name).."]"..
"list[current_name;main;0,1;"..width..",4;]"..
"list[current_player;main;0,6;8,4;]"..
"background[-0.19,-0.25;"..width..".4,10.75;ui_form_bg.png]"..
diff --git a/technic_worldgen/crafts.lua b/technic_worldgen/crafts.lua
index 26d7d51..fc593a6 100644
--- a/technic_worldgen/crafts.lua
+++ b/technic_worldgen/crafts.lua
@@ -1,38 +1,41 @@
+
+local S = technic.worldgen.gettext
+
minetest.register_craftitem(":technic:uranium", {
- description = "Uranium",
+ description = S("Uranium"),
inventory_image = "technic_uranium.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem(":technic:chromium_lump", {
- description = "Chromium Lump",
+ description = S("Chromium Lump"),
inventory_image = "technic_chromium_lump.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem(":technic:chromium_ingot", {
- description = "Chromium Ingot",
+ description = S("Chromium Ingot"),
inventory_image = "technic_chromium_ingot.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_craftitem(":technic:zinc_lump", {
- description = "Zinc Lump",
+ description = S("Zinc Lump"),
inventory_image = "technic_zinc_lump.png",
})
minetest.register_craftitem(":technic:zinc_ingot", {
- description = "Zinc Ingot",
+ description = S("Zinc Ingot"),
inventory_image = "technic_zinc_ingot.png",
})
minetest.register_craftitem(":technic:brass_ingot", {
- description = "Brass Ingot",
+ description = S("Brass Ingot"),
inventory_image = "technic_brass_ingot.png",
})
minetest.register_craftitem(":technic:stainless_steel_ingot", {
- description = "Stainless Steel Ingot",
+ description = S("Stainless Steel Ingot"),
inventory_image = "technic_stainless_steel_ingot.png",
})
diff --git a/technic_worldgen/depends.txt b/technic_worldgen/depends.txt
index 1d854ee..a72ad90 100644
--- a/technic_worldgen/depends.txt
+++ b/technic_worldgen/depends.txt
@@ -1,3 +1,4 @@
default
technic
+intllib?
mg?
diff --git a/technic_worldgen/init.lua b/technic_worldgen/init.lua
index caf0f89..16334ff 100644
--- a/technic_worldgen/init.lua
+++ b/technic_worldgen/init.lua
@@ -1,5 +1,12 @@
local modpath = minetest.get_modpath("technic_worldgen")
+technic.worldgen = {}
+if intllib then
+ technic.worldgen.gettext = intllib.Getter()
+else
+ technic.worldgen.gettext = function(s) return s end
+end
+
dofile(modpath.."/nodes.lua")
dofile(modpath.."/oregen.lua")
dofile(modpath.."/crafts.lua")
diff --git a/technic_worldgen/locale/de.txt b/technic_worldgen/locale/de.txt
new file mode 100644
index 0000000..60f3862
--- /dev/null
+++ b/technic_worldgen/locale/de.txt
@@ -0,0 +1,30 @@
+# German Translation for technic_worldgen
+# Deutsche Übersetzung von technic_worldgen
+# by Xanthin
+
+## crafts.lua
+Uranium = Uran
+Chromium Lump = Chromklumpen
+Chromium Ingot = Chrombarren
+Zinc Lump = Zinkklumpen
+Zinc Ingot = Zinkbarren
+Brass Ingot = Messingbarren
+Stainless Steel Ingot = Edelstahlbarren
+
+## 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
+Stainless Steel Block = Edelstahlblock
+Brass Block = Messingblock
+
+## rubber.lua
+Rubber Tree Sapling = Gummibaumsetzling
+Rubber Tree = Gummibaum
+
diff --git a/technic_worldgen/locale/template.txt b/technic_worldgen/locale/template.txt
new file mode 100644
index 0000000..f1da697
--- /dev/null
+++ b/technic_worldgen/locale/template.txt
@@ -0,0 +1,28 @@
+# template.txt
+# technic_worldgen translation template
+
+###crafts.lua
+Uranium =
+Chromium Lump =
+Chromium Ingot =
+Zinc Lump =
+Zinc Ingot =
+Brass Ingot =
+Stainless Steel Ingot =
+
+###nodes.lua
+Uranium Ore =
+Chromium Ore =
+Zinc Ore =
+Granite =
+Marble =
+Marble Bricks =
+Uranium Block =
+Chromium Block =
+Zinc Block =
+Stainless Steel Block =
+Brass Block =
+
+###rubber.lua
+Rubber Tree Sapling =
+Rubber Tree =
diff --git a/technic_worldgen/nodes.lua b/technic_worldgen/nodes.lua
index 7b9d385..5ecae7b 100644
--- a/technic_worldgen/nodes.lua
+++ b/technic_worldgen/nodes.lua
@@ -1,5 +1,8 @@
+
+local S = technic.worldgen.gettext
+
minetest.register_node( ":technic:mineral_uranium", {
- description = "Uranium Ore",
+ description = S("Uranium Ore"),
tiles = { "default_stone.png^technic_mineral_uranium.png" },
is_ground_content = true,
groups = {cracky=3},
@@ -8,7 +11,7 @@ minetest.register_node( ":technic:mineral_uranium", {
})
minetest.register_node( ":technic:mineral_chromium", {
- description = "Chromium Ore",
+ description = S("Chromium Ore"),
tiles = { "default_stone.png^technic_mineral_chromium.png" },
is_ground_content = true,
groups = {cracky=3},
@@ -17,7 +20,7 @@ minetest.register_node( ":technic:mineral_chromium", {
})
minetest.register_node( ":technic:mineral_zinc", {
- description = "Zinc Ore",
+ description = S("Zinc Ore"),
tile_images = { "default_stone.png^technic_mineral_zinc.png" },
is_ground_content = true,
groups = {cracky=3},
@@ -26,7 +29,7 @@ minetest.register_node( ":technic:mineral_zinc", {
})
minetest.register_node( ":technic:granite", {
- description = "Granite",
+ description = S("Granite"),
tiles = { "technic_granite.png" },
is_ground_content = true,
groups = {cracky=3},
@@ -34,7 +37,7 @@ minetest.register_node( ":technic:granite", {
})
minetest.register_node( ":technic:marble", {
- description = "Marble",
+ description = S("Marble"),
tiles = { "technic_marble.png" },
is_ground_content = true,
groups = {cracky=3},
@@ -42,7 +45,7 @@ minetest.register_node( ":technic:marble", {
})
minetest.register_node( ":technic:marble_bricks", {
- description = "Marble Bricks",
+ description = S("Marble Bricks"),
tiles = { "technic_marble_bricks.png" },
is_ground_content = true,
groups = {cracky=3},
@@ -50,7 +53,7 @@ minetest.register_node( ":technic:marble_bricks", {
})
minetest.register_node(":technic:uranium_block", {
- description = "Uranium Block",
+ description = S("Uranium Block"),
tiles = { "technic_uranium_block.png" },
is_ground_content = true,
groups = {cracky=1, level=2},
@@ -58,7 +61,7 @@ minetest.register_node(":technic:uranium_block", {
})
minetest.register_node(":technic:chromium_block", {
- description = "Chromium Block",
+ description = S("Chromium Block"),
tiles = { "technic_chromium_block.png" },
is_ground_content = true,
groups = {cracky=1, level=2},
@@ -66,7 +69,7 @@ minetest.register_node(":technic:chromium_block", {
})
minetest.register_node(":technic:zinc_block", {
- description = "Zinc Block",
+ description = S("Zinc Block"),
tiles = { "technic_zinc_block.png" },
is_ground_content = true,
groups = {cracky=1, level=2},
@@ -74,7 +77,7 @@ minetest.register_node(":technic:zinc_block", {
})
minetest.register_node(":technic:stainless_steel_block", {
- description = "Stainless Steel Block",
+ description = S("Stainless Steel Block"),
tiles = { "technic_stainless_steel_block.png" },
is_ground_content = true,
groups = {cracky=1, level=2},
@@ -82,7 +85,7 @@ minetest.register_node(":technic:stainless_steel_block", {
})
minetest.register_node(":technic:brass_block", {
- description = "Brass Block",
+ description = S("Brass Block"),
tiles = { "technic_brass_block.png" },
is_ground_content = true,
groups = {cracky=1, level=2},
@@ -98,3 +101,4 @@ minetest.register_craft({
})
minetest.register_alias("technic:diamond_block", "default:diamondblock")
+
diff --git a/technic_worldgen/rubber.lua b/technic_worldgen/rubber.lua
index 0e6d182..f04be84 100644
--- a/technic_worldgen/rubber.lua
+++ b/technic_worldgen/rubber.lua
@@ -1,7 +1,9 @@
-- Code of rubber tree by PilzAdam
+local S = technic.worldgen.gettext
+
minetest.register_node(":moretrees:rubber_tree_sapling", {
- description = "Rubber Tree Sapling",
+ description = S("Rubber Tree Sapling"),
drawtype = "plantlike",
tiles = {"technic_rubber_sapling.png"},
inventory_image = "technic_rubber_sapling.png",
@@ -19,7 +21,7 @@ minetest.register_craft({
})
minetest.register_node(":moretrees:rubber_tree_trunk", {
- description = "Rubber Tree",
+ description = S("Rubber Tree"),
tiles = {"default_tree_top.png", "default_tree_top.png",
"technic_rubber_tree_full.png"},
groups = {tree=1, snappy=1, choppy=2, oddly_breakable_by_hand=1,
@@ -32,7 +34,7 @@ minetest.register_node(":moretrees:rubber_tree_trunk", {
})
minetest.register_node(":moretrees:rubber_tree_trunk_empty", {
- description = "Rubber Tree",
+ description = S("Rubber Tree"),
tiles = {"default_tree_top.png", "default_tree_top.png",
"technic_rubber_tree_empty.png"},
groups = {tree=1, snappy=1, choppy=2, oddly_breakable_by_hand=1,
diff --git a/wrench/depends.txt b/wrench/depends.txt
index f6abc61..0905917 100644
--- a/wrench/depends.txt
+++ b/wrench/depends.txt
@@ -1,3 +1,5 @@
default
technic
-technic_chests \ No newline at end of file
+technic_chests
+intllib?
+
diff --git a/wrench/init.lua b/wrench/init.lua
index 0137f17..500f8ac 100644
--- a/wrench/init.lua
+++ b/wrench/init.lua
@@ -16,6 +16,14 @@ 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
+if intllib then
+ S = intllib.Getter()
+else
+ S = function(s) return s end
+end
+
local function get_meta_type(name, metaname)
local def = wrench.registered_nodes[name]
if not def or not def.metas or not def.metas[metaname] then
@@ -60,7 +68,7 @@ for name, info in pairs(wrench.registered_nodes) do
newdef[key] = value
end
newdef.stack_max = 1
- newdef.description = newdef.description.." with items"
+ newdef.description = S("%s with items"):format(newdef.description)
newdef.groups = {}
newdef.groups.not_in_creative_inventory = 1
newdef.on_construct = nil
@@ -71,7 +79,7 @@ for name, info in pairs(wrench.registered_nodes) do
end
minetest.register_tool("wrench:wrench", {
- description = "Wrench",
+ description = S("Wrench"),
inventory_image = "technic_wrench.png",
tool_capabilities = {
full_punch_interval = 0.9,
diff --git a/wrench/locale/de.txt b/wrench/locale/de.txt
new file mode 100644
index 0000000..b285cd3
--- /dev/null
+++ b/wrench/locale/de.txt
@@ -0,0 +1,7 @@
+# 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/template.txt b/wrench/locale/template.txt
new file mode 100644
index 0000000..eff2da2
--- /dev/null
+++ b/wrench/locale/template.txt
@@ -0,0 +1,5 @@
+# technic_wrench translation template
+
+Wrench =
+%s with items =
+