summaryrefslogtreecommitdiff
path: root/extranodes
diff options
context:
space:
mode:
Diffstat (limited to 'extranodes')
-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
4 files changed, 29 insertions, 5 deletions
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 =
+