From c1d9cc1de2adf615b66f1ef38934927ef541d058 Mon Sep 17 00:00:00 2001 From: Louis Royer <4259825-lroyer@users.noreply.gitlab.com> Date: Tue, 4 Aug 2020 20:58:26 +0200 Subject: [PATCH] MT5 translation for homedecor_climate_control - Add screwdriver in optional_depends - Add screwdriver in .luacheckrc --- .luacheckrc | 1 + homedecor_climate_control/depends.txt | 4 ---- homedecor_climate_control/init.lua | 4 ++-- .../locale/homedecor_climate_control.de.tr | 11 +++++++++++ .../locale/homedecor_climate_control.es.tr | 11 +++++++++++ .../locale/homedecor_climate_control.fr.tr | 11 +++++++++++ .../locale/homedecor_climate_control.ms.tr | 11 +++++++++++ .../locale/homedecor_climate_control.pt.tr | 11 +++++++++++ .../locale/homedecor_climate_control.pt_BR.tr | 11 +++++++++++ .../locale/homedecor_climate_control.ru.tr | 11 +++++++++++ .../locale/homedecor_climate_control.zh_CN.tr | 11 +++++++++++ homedecor_climate_control/locale/template.txt | 11 +++++++++++ homedecor_climate_control/mod.conf | 4 ++++ 13 files changed, 106 insertions(+), 6 deletions(-) delete mode 100644 homedecor_climate_control/depends.txt create mode 100644 homedecor_climate_control/locale/homedecor_climate_control.de.tr create mode 100644 homedecor_climate_control/locale/homedecor_climate_control.es.tr create mode 100644 homedecor_climate_control/locale/homedecor_climate_control.fr.tr create mode 100644 homedecor_climate_control/locale/homedecor_climate_control.ms.tr create mode 100644 homedecor_climate_control/locale/homedecor_climate_control.pt.tr create mode 100644 homedecor_climate_control/locale/homedecor_climate_control.pt_BR.tr create mode 100644 homedecor_climate_control/locale/homedecor_climate_control.ru.tr create mode 100644 homedecor_climate_control/locale/homedecor_climate_control.zh_CN.tr create mode 100644 homedecor_climate_control/locale/template.txt create mode 100644 homedecor_climate_control/mod.conf diff --git a/.luacheckrc b/.luacheckrc index e1a6f367..c0c0b9a1 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -17,6 +17,7 @@ read_globals = { "stairsplus", "stairs", "signs_lib", + "screwdriver", "beds", "technic", "mesecon", diff --git a/homedecor_climate_control/depends.txt b/homedecor_climate_control/depends.txt deleted file mode 100644 index f37b6553..00000000 --- a/homedecor_climate_control/depends.txt +++ /dev/null @@ -1,4 +0,0 @@ -homedecor_common -default -basic_materials -building_blocks? diff --git a/homedecor_climate_control/init.lua b/homedecor_climate_control/init.lua index bddf8584..cbb0aaa3 100644 --- a/homedecor_climate_control/init.lua +++ b/homedecor_climate_control/init.lua @@ -1,6 +1,6 @@ -- Nodes that would affect the local temperature e.g. fans, heater, A/C -local S = homedecor.gettext +local S = minetest.get_translator("homedecor_climate_control") homedecor.register("air_conditioner", { description = S("Air Conditioner"), @@ -52,7 +52,7 @@ homedecor.register("desk_fan", { inventory_image = "homedecor_desk_fan_inv.png", wield_image = "homedecor_desk_fan_inv.png", selection_box = { type = "regular" }, - on_rotate = screwdriver.disallow, + on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil, on_construct = function(pos) local meta = minetest.get_meta(pos) meta:set_string("active", "no") diff --git a/homedecor_climate_control/locale/homedecor_climate_control.de.tr b/homedecor_climate_control/locale/homedecor_climate_control.de.tr new file mode 100644 index 00000000..6575f7ab --- /dev/null +++ b/homedecor_climate_control/locale/homedecor_climate_control.de.tr @@ -0,0 +1,11 @@ +# textdomain: homedecor_climate_control + + +### init.lua ### + +Air Conditioner=Klimaanlage +Ceiling Fan=Deckenventilator +Desk Fan=Schreibtischventilator +Fan blades=Ventilatorblätter +Radiator heater=Heizkörper +Space heater=Heizgerät diff --git a/homedecor_climate_control/locale/homedecor_climate_control.es.tr b/homedecor_climate_control/locale/homedecor_climate_control.es.tr new file mode 100644 index 00000000..831ff0ae --- /dev/null +++ b/homedecor_climate_control/locale/homedecor_climate_control.es.tr @@ -0,0 +1,11 @@ +# textdomain: homedecor_climate_control + + +### init.lua ### + +Air Conditioner=Acondicionador de aire +Ceiling Fan=Ventilador de techo +Desk Fan=Ventilador de escritorio +Fan blades=Aspas de ventilador +Radiator heater=Radiador +Space heater=Calentador de espacios diff --git a/homedecor_climate_control/locale/homedecor_climate_control.fr.tr b/homedecor_climate_control/locale/homedecor_climate_control.fr.tr new file mode 100644 index 00000000..4faf18e6 --- /dev/null +++ b/homedecor_climate_control/locale/homedecor_climate_control.fr.tr @@ -0,0 +1,11 @@ +# textdomain: homedecor_climate_control + + +### init.lua ### + +Air Conditioner=Climatiseur +Ceiling Fan=Ventilateur (plafonnier) +Desk Fan=Ventilateur de bureau +Fan blades=Pales de ventilateur +Radiator heater=Radiateur +Space heater=Chaufferette diff --git a/homedecor_climate_control/locale/homedecor_climate_control.ms.tr b/homedecor_climate_control/locale/homedecor_climate_control.ms.tr new file mode 100644 index 00000000..f881d697 --- /dev/null +++ b/homedecor_climate_control/locale/homedecor_climate_control.ms.tr @@ -0,0 +1,11 @@ +# textdomain: homedecor_climate_control + + +### init.lua ### + +Air Conditioner=Pendingin Hawa +Ceiling Fan=Kipas Siling +Desk Fan=Kipas Meja +Fan blades=Bilah Kipas +Radiator heater=Pemanas Radiator +Space heater=Pemanas Ruang diff --git a/homedecor_climate_control/locale/homedecor_climate_control.pt.tr b/homedecor_climate_control/locale/homedecor_climate_control.pt.tr new file mode 100644 index 00000000..3d4ac55f --- /dev/null +++ b/homedecor_climate_control/locale/homedecor_climate_control.pt.tr @@ -0,0 +1,11 @@ +# textdomain: homedecor_climate_control + + +### init.lua ### + +Air Conditioner=Ar condicionado +Ceiling Fan=Ventilador de Teto +Desk Fan=Ventilador de Escrivaninha +Fan blades=Pás de ventilador +Radiator heater=Aquecedor de radiador +Space heater=Aquecedor de ambiente diff --git a/homedecor_climate_control/locale/homedecor_climate_control.pt_BR.tr b/homedecor_climate_control/locale/homedecor_climate_control.pt_BR.tr new file mode 100644 index 00000000..3d4ac55f --- /dev/null +++ b/homedecor_climate_control/locale/homedecor_climate_control.pt_BR.tr @@ -0,0 +1,11 @@ +# textdomain: homedecor_climate_control + + +### init.lua ### + +Air Conditioner=Ar condicionado +Ceiling Fan=Ventilador de Teto +Desk Fan=Ventilador de Escrivaninha +Fan blades=Pás de ventilador +Radiator heater=Aquecedor de radiador +Space heater=Aquecedor de ambiente diff --git a/homedecor_climate_control/locale/homedecor_climate_control.ru.tr b/homedecor_climate_control/locale/homedecor_climate_control.ru.tr new file mode 100644 index 00000000..e3e2f80c --- /dev/null +++ b/homedecor_climate_control/locale/homedecor_climate_control.ru.tr @@ -0,0 +1,11 @@ +# textdomain: homedecor_climate_control + + +### init.lua ### + +Air Conditioner=Кондиционер +Ceiling Fan=Потолочный вентилятор +Desk Fan=Настольный вентилятор +Fan blades=Лопасти вентилятора +Radiator heater=Масленый обогреватель +Space heater=Обогреватель diff --git a/homedecor_climate_control/locale/homedecor_climate_control.zh_CN.tr b/homedecor_climate_control/locale/homedecor_climate_control.zh_CN.tr new file mode 100644 index 00000000..d4824d01 --- /dev/null +++ b/homedecor_climate_control/locale/homedecor_climate_control.zh_CN.tr @@ -0,0 +1,11 @@ +# textdomain: homedecor_climate_control + + +### init.lua ### + +Air Conditioner=空调 +Ceiling Fan=吊扇 +Desk Fan=台扇 +Fan blades=风扇叶片 +Radiator heater=散热器加热器 +Space heater=暖气机 diff --git a/homedecor_climate_control/locale/template.txt b/homedecor_climate_control/locale/template.txt new file mode 100644 index 00000000..7adde387 --- /dev/null +++ b/homedecor_climate_control/locale/template.txt @@ -0,0 +1,11 @@ +# textdomain: homedecor_climate_control + + +### init.lua ### + +Air Conditioner= +Ceiling Fan= +Desk Fan= +Fan blades= +Radiator heater= +Space heater= diff --git a/homedecor_climate_control/mod.conf b/homedecor_climate_control/mod.conf new file mode 100644 index 00000000..889b90f4 --- /dev/null +++ b/homedecor_climate_control/mod.conf @@ -0,0 +1,4 @@ +name = homedecor_climate_control +description = Homedecor mod: climate control +depends = homedecor_common, default, basic_materials +optional_depends = building_blocks, screwdriver