summaryrefslogtreecommitdiff
path: root/plasmascreen
diff options
context:
space:
mode:
Diffstat (limited to 'plasmascreen')
-rw-r--r--plasmascreen/depends.txt3
-rw-r--r--plasmascreen/init.lua11
2 files changed, 9 insertions, 5 deletions
diff --git a/plasmascreen/depends.txt b/plasmascreen/depends.txt
index 331d858..7b3e79f 100644
--- a/plasmascreen/depends.txt
+++ b/plasmascreen/depends.txt
@@ -1 +1,2 @@
-default \ No newline at end of file
+default
+homedecor
diff --git a/plasmascreen/init.lua b/plasmascreen/init.lua
index 839fa1f..109e418 100644
--- a/plasmascreen/init.lua
+++ b/plasmascreen/init.lua
@@ -1,7 +1,10 @@
+
+local S = homedecor_i18n.gettext
+
screwdriver = screwdriver or {}
minetest.register_node("plasmascreen:stand", {
- description = "Plasma Screen TV Stand",
+ description = S("Plasma Screen TV Stand"),
tiles = {"plasmascreen_back.png"},
paramtype = "light",
paramtype2 = "facedir",
@@ -85,7 +88,7 @@ local function checkwall(pos)
end
local node5 = minetest.get_node({x=pos.x+dxr, y=pos.y+1, z=pos.z+dzr})
- if not node5 or not minetest.registered_nodes[node5.name]
+ if not node5 or not minetest.registered_nodes[node5.name]
or not minetest.registered_nodes[node5.name].buildable_to then
return false
end
@@ -94,7 +97,7 @@ local function checkwall(pos)
end
minetest.register_node("plasmascreen:tv", {
- description = "Plasma TV",
+ description = S("Plasma TV"),
drawtype = "mesh",
mesh = "plasmascreen_tv.obj",
tiles = {
@@ -130,7 +133,7 @@ minetest.register_node("plasmascreen:tv", {
})
minetest.register_node("plasmascreen:tv_off", {
- description = "Plasma TV (off)",
+ description = S("Plasma TV (off)"),
drawtype = "mesh",
mesh = "plasmascreen_tv.obj",
tiles = {