summaryrefslogtreecommitdiff
path: root/concrete
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 /concrete
parentdb202503713ddd1084f188a5eac506be665e9c44 (diff)
Add german translations for all mods
Diffstat (limited to 'concrete')
-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
4 files changed, 33 insertions, 5 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 =
+