summaryrefslogtreecommitdiff
path: root/woodsoils/nodes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'woodsoils/nodes.lua')
-rw-r--r--woodsoils/nodes.lua27
1 files changed, 15 insertions, 12 deletions
diff --git a/woodsoils/nodes.lua b/woodsoils/nodes.lua
index e80c522..b236564 100644
--- a/woodsoils/nodes.lua
+++ b/woodsoils/nodes.lua
@@ -1,10 +1,13 @@
+-- support for i18n
+local S = plantlife_i18n.gettext
+
-- nodes
minetest.register_node("woodsoils:dirt_with_leaves_1", {
- description = "Forest Soil 1",
+ description = S("Forest Soil 1"),
tiles = {
- "default_dirt.png^woodsoils_ground_cover.png",
- "default_dirt.png",
+ "default_dirt.png^woodsoils_ground_cover.png",
+ "default_dirt.png",
"default_dirt.png^woodsoils_ground_cover_side.png"},
is_ground_content = true,
groups = {
@@ -19,10 +22,10 @@ minetest.register_node("woodsoils:dirt_with_leaves_1", {
})
minetest.register_node("woodsoils:dirt_with_leaves_2", {
- description = "Forest Soil 2",
+ description = S("Forest Soil 2"),
tiles = {
- "woodsoils_ground.png",
- "default_dirt.png",
+ "woodsoils_ground.png",
+ "default_dirt.png",
"default_dirt.png^woodsoils_ground_side.png"},
is_ground_content = true,
groups = {
@@ -37,10 +40,10 @@ minetest.register_node("woodsoils:dirt_with_leaves_2", {
})
minetest.register_node("woodsoils:grass_with_leaves_1", {
- description = "Forest Soil 3",
+ description = S("Forest Soil 3"),
tiles = {
- "default_grass.png^woodsoils_ground_cover2.png",
- "default_dirt.png",
+ "default_grass.png^woodsoils_ground_cover2.png",
+ "default_dirt.png",
"default_dirt.png^default_grass_side.png^woodsoils_ground_cover_side2.png"},
is_ground_content = true,
groups = {
@@ -55,10 +58,10 @@ minetest.register_node("woodsoils:grass_with_leaves_1", {
})
minetest.register_node("woodsoils:grass_with_leaves_2", {
- description = "Forest Soil 4",
+ description = S("Forest Soil 4"),
tiles = {
- "default_grass.png^woodsoils_ground_cover.png",
- "default_dirt.png",
+ "default_grass.png^woodsoils_ground_cover.png",
+ "default_dirt.png",
"default_dirt.png^default_grass_side.png^woodsoils_ground_cover_side.png"},
is_ground_content = true,
groups = {