summaryrefslogtreecommitdiff
path: root/technic_worldgen
diff options
context:
space:
mode:
Diffstat (limited to 'technic_worldgen')
-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
7 files changed, 96 insertions, 21 deletions
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,