From b88d76d07fc343e0b25d4e017eafbe429255d498 Mon Sep 17 00:00:00 2001 From: Louis Royer <4259825-lroyer@users.noreply.gitlab.com> Date: Wed, 5 Aug 2020 01:14:09 +0200 Subject: [PATCH] MT5 translation for itemframes - Fix luacheck warnings --- itemframes/depends.txt | 3 --- itemframes/init.lua | 13 ++++++------- itemframes/locale/itemframes.de.tr | 9 +++++++++ itemframes/locale/itemframes.es.tr | 9 +++++++++ itemframes/locale/itemframes.fr.tr | 9 +++++++++ itemframes/locale/itemframes.it.tr | 9 +++++++++ itemframes/locale/itemframes.ms.tr | 9 +++++++++ itemframes/locale/itemframes.pt.tr | 9 +++++++++ itemframes/locale/itemframes.pt_BR.tr | 9 +++++++++ itemframes/locale/itemframes.ru.tr | 9 +++++++++ itemframes/locale/itemframes.zh_CN.tr | 9 +++++++++ itemframes/locale/template.txt | 9 +++++++++ itemframes/mod.conf | 3 +++ 13 files changed, 99 insertions(+), 10 deletions(-) delete mode 100644 itemframes/depends.txt create mode 100644 itemframes/locale/itemframes.de.tr create mode 100644 itemframes/locale/itemframes.es.tr create mode 100644 itemframes/locale/itemframes.fr.tr create mode 100644 itemframes/locale/itemframes.it.tr create mode 100644 itemframes/locale/itemframes.ms.tr create mode 100644 itemframes/locale/itemframes.pt.tr create mode 100644 itemframes/locale/itemframes.pt_BR.tr create mode 100644 itemframes/locale/itemframes.ru.tr create mode 100644 itemframes/locale/itemframes.zh_CN.tr create mode 100644 itemframes/locale/template.txt create mode 100644 itemframes/mod.conf diff --git a/itemframes/depends.txt b/itemframes/depends.txt deleted file mode 100644 index ae7019b6..00000000 --- a/itemframes/depends.txt +++ /dev/null @@ -1,3 +0,0 @@ -default -homedecor_common -mesecons_mvps? diff --git a/itemframes/init.lua b/itemframes/init.lua index d424c383..5310c708 100644 --- a/itemframes/init.lua +++ b/itemframes/init.lua @@ -1,8 +1,7 @@ - -local S = homedecor.gettext +local S = minetest.get_translator("itemframes") local tmp = {} -screwdriver = screwdriver or {} +local sd_disallow = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil minetest.register_entity("itemframes:item",{ hp_max = 1, @@ -139,7 +138,7 @@ minetest.register_node("itemframes:frame",{ groups = {choppy = 2, dig_immediate = 2}, legacy_wallmounted = true, sounds = default.node_sound_wood_defaults(), - on_rotate = screwdriver.disallow, + on_rotate = sd_disallow or nil, after_place_node = function(pos, placer, itemstack) local meta = minetest.get_meta(pos) meta:set_string("owner",placer:get_player_name()) @@ -202,7 +201,7 @@ minetest.register_node("itemframes:pedestal",{ paramtype = "light", groups = {cracky = 3}, sounds = default.node_sound_stone_defaults(), - on_rotate = screwdriver.disallow, + on_rotate = sd_disallow or nil, after_place_node = function(pos, placer, itemstack) local meta = minetest.get_meta(pos) meta:set_string("owner",placer:get_player_name()) @@ -252,7 +251,7 @@ minetest.register_lbm({ name = "itemframes:maintain_entities", nodenames = {"itemframes:frame", "itemframes:pedestal"}, run_at_every_load = true, - action = function(pos, node) + action = function(pos1, node1) minetest.after(0, function(pos, node) local meta = minetest.get_meta(pos) @@ -271,7 +270,7 @@ minetest.register_lbm({ end end end, - pos, node) + pos1, node1) end }) diff --git a/itemframes/locale/itemframes.de.tr b/itemframes/locale/itemframes.de.tr new file mode 100644 index 00000000..062fe6fb --- /dev/null +++ b/itemframes/locale/itemframes.de.tr @@ -0,0 +1,9 @@ +# textdomain: itemframes + + +### init.lua ### + +Item frame=Ausstellrahmen +Item frame (owned by @1)=Ausstellrahmen (gehört @1) +Pedestal=Podest +Pedestal (owned by @1)=Podest (gehört @1) diff --git a/itemframes/locale/itemframes.es.tr b/itemframes/locale/itemframes.es.tr new file mode 100644 index 00000000..451ed9de --- /dev/null +++ b/itemframes/locale/itemframes.es.tr @@ -0,0 +1,9 @@ +# textdomain: itemframes + + +### init.lua ### + +Item frame=Marco para objetos +Item frame (owned by @1)=Marco para objetos (propiedad de @1) +Pedestal=Pedestal +Pedestal (owned by @1)=Pedestal (propiedad de @1) diff --git a/itemframes/locale/itemframes.fr.tr b/itemframes/locale/itemframes.fr.tr new file mode 100644 index 00000000..929c728e --- /dev/null +++ b/itemframes/locale/itemframes.fr.tr @@ -0,0 +1,9 @@ +# textdomain: itemframes + + +### init.lua ### + +Item frame=Cadre +Item frame (owned by @1)=Cadre (propriété de @1) +Pedestal=Piédestal +Pedestal (owned by @1)=Piédestal (propriété de @1) diff --git a/itemframes/locale/itemframes.it.tr b/itemframes/locale/itemframes.it.tr new file mode 100644 index 00000000..90d8fd9f --- /dev/null +++ b/itemframes/locale/itemframes.it.tr @@ -0,0 +1,9 @@ +# textdomain: itemframes + + +### init.lua ### + +Item frame= +Item frame (owned by @1)=%s (di proprietà di %s) +Pedestal= +Pedestal (owned by @1)=%s (di proprietà di %s) diff --git a/itemframes/locale/itemframes.ms.tr b/itemframes/locale/itemframes.ms.tr new file mode 100644 index 00000000..3d9c4e1a --- /dev/null +++ b/itemframes/locale/itemframes.ms.tr @@ -0,0 +1,9 @@ +# textdomain: itemframes + + +### init.lua ### + +Item frame=Bingkai Item +Item frame (owned by @1)=Bingkai Item (hak milik @1) +Pedestal=Kekaki +Pedestal (owned by @1)=Kekaki (hak milik @1) diff --git a/itemframes/locale/itemframes.pt.tr b/itemframes/locale/itemframes.pt.tr new file mode 100644 index 00000000..8f906cb4 --- /dev/null +++ b/itemframes/locale/itemframes.pt.tr @@ -0,0 +1,9 @@ +# textdomain: itemframes + + +### init.lua ### + +Item frame=Quadro de Item +Item frame (owned by @1)=Quadro de item (pertence a @l) +Pedestal=Pedestal +Pedestal (owned by @1)=Pedestal (pertence a @l) diff --git a/itemframes/locale/itemframes.pt_BR.tr b/itemframes/locale/itemframes.pt_BR.tr new file mode 100644 index 00000000..8f906cb4 --- /dev/null +++ b/itemframes/locale/itemframes.pt_BR.tr @@ -0,0 +1,9 @@ +# textdomain: itemframes + + +### init.lua ### + +Item frame=Quadro de Item +Item frame (owned by @1)=Quadro de item (pertence a @l) +Pedestal=Pedestal +Pedestal (owned by @1)=Pedestal (pertence a @l) diff --git a/itemframes/locale/itemframes.ru.tr b/itemframes/locale/itemframes.ru.tr new file mode 100644 index 00000000..32ac14e0 --- /dev/null +++ b/itemframes/locale/itemframes.ru.tr @@ -0,0 +1,9 @@ +# textdomain: itemframes + + +### init.lua ### + +Item frame=Рамка предметов +Item frame (owned by @1)=Рамка предметов (принадлежит @1) +Pedestal=Пьедестал +Pedestal (owned by @1)=Пьедестал (принадлежит @1) diff --git a/itemframes/locale/itemframes.zh_CN.tr b/itemframes/locale/itemframes.zh_CN.tr new file mode 100644 index 00000000..f8cba6de --- /dev/null +++ b/itemframes/locale/itemframes.zh_CN.tr @@ -0,0 +1,9 @@ +# textdomain: itemframes + + +### init.lua ### + +Item frame=项目框架 +Item frame (owned by @1)=物品框架(归@1所有) +Pedestal=底座 +Pedestal (owned by @1)=基座(归@1所有) diff --git a/itemframes/locale/template.txt b/itemframes/locale/template.txt new file mode 100644 index 00000000..0e61b28b --- /dev/null +++ b/itemframes/locale/template.txt @@ -0,0 +1,9 @@ +# textdomain: itemframes + + +### init.lua ### + +Item frame= +Item frame (owned by @1)= +Pedestal= +Pedestal (owned by @1)= diff --git a/itemframes/mod.conf b/itemframes/mod.conf new file mode 100644 index 00000000..32db2200 --- /dev/null +++ b/itemframes/mod.conf @@ -0,0 +1,3 @@ +name = itemframes +depends = default, homedecor_common +optional_depends = mesecons_mvps, screwdriver