From 4d6458b684d0316e7cfefd00a4a28847b7e7637d Mon Sep 17 00:00:00 2001 From: Louis Royer <4259825-lroyer@users.noreply.gitlab.com> Date: Tue, 4 Aug 2020 21:15:26 +0200 Subject: [PATCH] MT5 translation for homedecor_cobweb - luacheck warnings fix `homedecor_cobweb/init.lua:104:10: setting read-only field rotate_cobweb of global homedecor` --- homedecor_cobweb/depends.txt | 2 -- homedecor_cobweb/init.lua | 8 ++++---- homedecor_cobweb/locale/homedecor_cobweb.de.tr | 6 ++++++ homedecor_cobweb/locale/homedecor_cobweb.es.tr | 6 ++++++ homedecor_cobweb/locale/homedecor_cobweb.fr.tr | 6 ++++++ homedecor_cobweb/locale/homedecor_cobweb.ms.tr | 6 ++++++ homedecor_cobweb/locale/homedecor_cobweb.pt.tr | 6 ++++++ homedecor_cobweb/locale/homedecor_cobweb.pt_BR.tr | 6 ++++++ homedecor_cobweb/locale/homedecor_cobweb.ru.tr | 6 ++++++ homedecor_cobweb/locale/homedecor_cobweb.zh_CN.tr | 6 ++++++ homedecor_cobweb/locale/template.txt | 6 ++++++ homedecor_cobweb/mod.conf | 3 +++ 12 files changed, 61 insertions(+), 6 deletions(-) delete mode 100644 homedecor_cobweb/depends.txt create mode 100644 homedecor_cobweb/locale/homedecor_cobweb.de.tr create mode 100644 homedecor_cobweb/locale/homedecor_cobweb.es.tr create mode 100644 homedecor_cobweb/locale/homedecor_cobweb.fr.tr create mode 100644 homedecor_cobweb/locale/homedecor_cobweb.ms.tr create mode 100644 homedecor_cobweb/locale/homedecor_cobweb.pt.tr create mode 100644 homedecor_cobweb/locale/homedecor_cobweb.pt_BR.tr create mode 100644 homedecor_cobweb/locale/homedecor_cobweb.ru.tr create mode 100644 homedecor_cobweb/locale/homedecor_cobweb.zh_CN.tr create mode 100644 homedecor_cobweb/locale/template.txt create mode 100644 homedecor_cobweb/mod.conf diff --git a/homedecor_cobweb/depends.txt b/homedecor_cobweb/depends.txt deleted file mode 100644 index 917d5132..00000000 --- a/homedecor_cobweb/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -homedecor_common -default diff --git a/homedecor_cobweb/init.lua b/homedecor_cobweb/init.lua index 23f65563..2d5a6bbe 100644 --- a/homedecor_cobweb/init.lua +++ b/homedecor_cobweb/init.lua @@ -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 diff --git a/homedecor_cobweb/locale/homedecor_cobweb.de.tr b/homedecor_cobweb/locale/homedecor_cobweb.de.tr new file mode 100644 index 00000000..37c6a151 --- /dev/null +++ b/homedecor_cobweb/locale/homedecor_cobweb.de.tr @@ -0,0 +1,6 @@ +# textdomain: homedecor_cobweb + + +### init.lua ### + +Cobweb=Spinnennetz diff --git a/homedecor_cobweb/locale/homedecor_cobweb.es.tr b/homedecor_cobweb/locale/homedecor_cobweb.es.tr new file mode 100644 index 00000000..c1853c82 --- /dev/null +++ b/homedecor_cobweb/locale/homedecor_cobweb.es.tr @@ -0,0 +1,6 @@ +# textdomain: homedecor_cobweb + + +### init.lua ### + +Cobweb=Telaraña diff --git a/homedecor_cobweb/locale/homedecor_cobweb.fr.tr b/homedecor_cobweb/locale/homedecor_cobweb.fr.tr new file mode 100644 index 00000000..6ccd2bf1 --- /dev/null +++ b/homedecor_cobweb/locale/homedecor_cobweb.fr.tr @@ -0,0 +1,6 @@ +# textdomain: homedecor_cobweb + + +### init.lua ### + +Cobweb=Toile d'araignée diff --git a/homedecor_cobweb/locale/homedecor_cobweb.ms.tr b/homedecor_cobweb/locale/homedecor_cobweb.ms.tr new file mode 100644 index 00000000..dc3abf76 --- /dev/null +++ b/homedecor_cobweb/locale/homedecor_cobweb.ms.tr @@ -0,0 +1,6 @@ +# textdomain: homedecor_cobweb + + +### init.lua ### + +Cobweb=Sarang Labah-Labah diff --git a/homedecor_cobweb/locale/homedecor_cobweb.pt.tr b/homedecor_cobweb/locale/homedecor_cobweb.pt.tr new file mode 100644 index 00000000..6099b7df --- /dev/null +++ b/homedecor_cobweb/locale/homedecor_cobweb.pt.tr @@ -0,0 +1,6 @@ +# textdomain: homedecor_cobweb + + +### init.lua ### + +Cobweb=Teia de Aranha diff --git a/homedecor_cobweb/locale/homedecor_cobweb.pt_BR.tr b/homedecor_cobweb/locale/homedecor_cobweb.pt_BR.tr new file mode 100644 index 00000000..6099b7df --- /dev/null +++ b/homedecor_cobweb/locale/homedecor_cobweb.pt_BR.tr @@ -0,0 +1,6 @@ +# textdomain: homedecor_cobweb + + +### init.lua ### + +Cobweb=Teia de Aranha diff --git a/homedecor_cobweb/locale/homedecor_cobweb.ru.tr b/homedecor_cobweb/locale/homedecor_cobweb.ru.tr new file mode 100644 index 00000000..df65b102 --- /dev/null +++ b/homedecor_cobweb/locale/homedecor_cobweb.ru.tr @@ -0,0 +1,6 @@ +# textdomain: homedecor_cobweb + + +### init.lua ### + +Cobweb=Паутина diff --git a/homedecor_cobweb/locale/homedecor_cobweb.zh_CN.tr b/homedecor_cobweb/locale/homedecor_cobweb.zh_CN.tr new file mode 100644 index 00000000..3e69a81e --- /dev/null +++ b/homedecor_cobweb/locale/homedecor_cobweb.zh_CN.tr @@ -0,0 +1,6 @@ +# textdomain: homedecor_cobweb + + +### init.lua ### + +Cobweb=蛛网 diff --git a/homedecor_cobweb/locale/template.txt b/homedecor_cobweb/locale/template.txt new file mode 100644 index 00000000..080cd2c2 --- /dev/null +++ b/homedecor_cobweb/locale/template.txt @@ -0,0 +1,6 @@ +# textdomain: homedecor_cobweb + + +### init.lua ### + +Cobweb= diff --git a/homedecor_cobweb/mod.conf b/homedecor_cobweb/mod.conf new file mode 100644 index 00000000..d80cd394 --- /dev/null +++ b/homedecor_cobweb/mod.conf @@ -0,0 +1,3 @@ +name = homedecor_cobweb +description = Homedecor mod: cobweb +depends = homedecor_common, default