MT5 translation for homedecor_cobweb

- luacheck warnings fix
`homedecor_cobweb/init.lua:104:10: setting read-only field rotate_cobweb of global homedecor`
This commit is contained in:
Louis Royer 2020-08-04 21:15:26 +02:00
parent 6b18347fb0
commit 4d6458b684
12 changed files with 61 additions and 6 deletions

View File

@ -1,2 +0,0 @@
homedecor_common
default

View File

@ -1,5 +1,5 @@
local S = homedecor.gettext
local S = minetest.get_translator("homedecor_cobweb")
homedecor_cobweb = {}
minetest.register_node(":homedecor:cobweb_corner", {
description = S("Cobweb"),
@ -21,7 +21,7 @@ minetest.register_node(":homedecor:cobweb_corner", {
visual_scale = 1.4,
groups = { snappy = 3, liquid=3 },
after_place_node = function(pos, placer, itemstack, pointed_thing)
homedecor.rotate_cobweb(pos)
homedecor_cobweb.rotate(pos)
end
})
@ -102,7 +102,7 @@ minetest.register_node(":homedecor:cobweb_plantlike", {
-- helper function to rotate the cobweb after it's placed
function homedecor.rotate_cobweb(pos)
function homedecor_cobweb.rotate(pos)
local wall_xm = minetest.get_node({ x=pos.x-1, y=pos.y, z=pos.z }).name
local wall_xp = minetest.get_node({ x=pos.x+1, y=pos.y, z=pos.z }).name
local wall_zm = minetest.get_node({ x=pos.x, y=pos.y, z=pos.z-1}).name

View File

@ -0,0 +1,6 @@
# textdomain: homedecor_cobweb
### init.lua ###
Cobweb=Spinnennetz

View File

@ -0,0 +1,6 @@
# textdomain: homedecor_cobweb
### init.lua ###
Cobweb=Telaraña

View File

@ -0,0 +1,6 @@
# textdomain: homedecor_cobweb
### init.lua ###
Cobweb=Toile d'araignée

View File

@ -0,0 +1,6 @@
# textdomain: homedecor_cobweb
### init.lua ###
Cobweb=Sarang Labah-Labah

View File

@ -0,0 +1,6 @@
# textdomain: homedecor_cobweb
### init.lua ###
Cobweb=Teia de Aranha

View File

@ -0,0 +1,6 @@
# textdomain: homedecor_cobweb
### init.lua ###
Cobweb=Teia de Aranha

View File

@ -0,0 +1,6 @@
# textdomain: homedecor_cobweb
### init.lua ###
Cobweb=Паутина

View File

@ -0,0 +1,6 @@
# textdomain: homedecor_cobweb
### init.lua ###
Cobweb=蛛网

View File

@ -0,0 +1,6 @@
# textdomain: homedecor_cobweb
### init.lua ###
Cobweb=

View File

@ -0,0 +1,3 @@
name = homedecor_cobweb
description = Homedecor mod: cobweb
depends = homedecor_common, default