From 0e52553b8ae5b91ed9133e45028f3d225ac8413b Mon Sep 17 00:00:00 2001 From: Louis Royer <4259825-lroyer@users.noreply.gitlab.com> Date: Wed, 5 Aug 2020 00:42:05 +0200 Subject: [PATCH] MT5 translation for homedecor_tables - Fix luacheck warnings --- homedecor_tables/coffeetable.lua | 18 +++++++++---- homedecor_tables/depends.txt | 3 --- homedecor_tables/endtable.lua | 13 ++++++--- .../locale/homedecor_tables.de.tr | 27 +++++++++++++++++++ .../locale/homedecor_tables.es.tr | 27 +++++++++++++++++++ .../locale/homedecor_tables.fr.tr | 27 +++++++++++++++++++ .../locale/homedecor_tables.it.tr | 27 +++++++++++++++++++ .../locale/homedecor_tables.ms.tr | 27 +++++++++++++++++++ .../locale/homedecor_tables.pt.tr | 27 +++++++++++++++++++ .../locale/homedecor_tables.pt_BR.tr | 27 +++++++++++++++++++ .../locale/homedecor_tables.ru.tr | 27 +++++++++++++++++++ .../locale/homedecor_tables.zh_CN.tr | 27 +++++++++++++++++++ homedecor_tables/locale/template.txt | 27 +++++++++++++++++++ homedecor_tables/misc.lua | 2 +- homedecor_tables/mod.conf | 3 +++ 15 files changed, 297 insertions(+), 12 deletions(-) delete mode 100644 homedecor_tables/depends.txt create mode 100644 homedecor_tables/locale/homedecor_tables.de.tr create mode 100644 homedecor_tables/locale/homedecor_tables.es.tr create mode 100644 homedecor_tables/locale/homedecor_tables.fr.tr create mode 100644 homedecor_tables/locale/homedecor_tables.it.tr create mode 100644 homedecor_tables/locale/homedecor_tables.ms.tr create mode 100644 homedecor_tables/locale/homedecor_tables.pt.tr create mode 100644 homedecor_tables/locale/homedecor_tables.pt_BR.tr create mode 100644 homedecor_tables/locale/homedecor_tables.ru.tr create mode 100644 homedecor_tables/locale/homedecor_tables.zh_CN.tr create mode 100644 homedecor_tables/locale/template.txt create mode 100644 homedecor_tables/mod.conf diff --git a/homedecor_tables/coffeetable.lua b/homedecor_tables/coffeetable.lua index a9b4f200..3e73e664 100644 --- a/homedecor_tables/coffeetable.lua +++ b/homedecor_tables/coffeetable.lua @@ -1,6 +1,6 @@ -- formerly lrfurn coffee table component -local S = homedecor.gettext +local S = minetest.get_translator("homedecor_tables") local fdir_to_right = { { 1, 0 }, @@ -20,9 +20,10 @@ local function check_right(pos, fdir, long, placer) return false elseif minetest.is_protected(pos2, placer:get_player_name()) then if not long then - minetest.chat_send_player(placer:get_player_name(), S("Someone else owns the spot where other end goes!")) + minetest.chat_send_player(placer:get_player_name(), S("Someone else owns the spot where the other end goes!")) else - minetest.chat_send_player(placer:get_player_name(), S("Someone else owns the spot where the middle or far end goes!")) + minetest.chat_send_player(placer:get_player_name(), + S("Someone else owns the spot where the middle or far end goes!")) end return false end @@ -46,7 +47,14 @@ minetest.register_alias("lrfurn:coffeetable_front", "air") minetest.register_node(":lrfurn:coffeetable", { description = S("Coffee Table"), drawtype = "nodebox", - tiles = {"lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png"}, + tiles = { + "lrfurn_coffeetable_back.png", + "lrfurn_coffeetable_back.png", + "lrfurn_coffeetable_back.png", + "lrfurn_coffeetable_back.png", + "lrfurn_coffeetable_back.png", + "lrfurn_coffeetable_back.png" + }, paramtype = "light", paramtype2 = "facedir", groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, @@ -114,5 +122,5 @@ minetest.register_craft({ }) if minetest.settings:get("log_mods") then - minetest.log("action", "[lrfurn/coffeetable] "..S("Loaded!")) + minetest.log("action", "[lrfurn/coffeetable] Loaded!") end diff --git a/homedecor_tables/depends.txt b/homedecor_tables/depends.txt deleted file mode 100644 index fb5d6010..00000000 --- a/homedecor_tables/depends.txt +++ /dev/null @@ -1,3 +0,0 @@ -homedecor_common -default -basic_materials diff --git a/homedecor_tables/endtable.lua b/homedecor_tables/endtable.lua index c3bba977..d28b5c4b 100644 --- a/homedecor_tables/endtable.lua +++ b/homedecor_tables/endtable.lua @@ -1,11 +1,18 @@ -- formerly lrfurn endtable component -local S = homedecor.gettext +local S = minetest.get_translator("homedecor_tables") minetest.register_node(":lrfurn:endtable", { description = S("End Table"), drawtype = "nodebox", - tiles = {"lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png"}, + tiles = { + "lrfurn_coffeetable_back.png", + "lrfurn_coffeetable_back.png", + "lrfurn_coffeetable_back.png", + "lrfurn_coffeetable_back.png", + "lrfurn_coffeetable_back.png", + "lrfurn_coffeetable_back.png" + }, paramtype = "light", paramtype2 = "facedir", groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, @@ -50,5 +57,5 @@ minetest.register_craft({ }) if minetest.settings:get("log_mods") then - minetest.log("action", "[lrfurn/endtable] "..S("Loaded!")) + minetest.log("action", "[lrfurn/endtable] Loaded!") end diff --git a/homedecor_tables/locale/homedecor_tables.de.tr b/homedecor_tables/locale/homedecor_tables.de.tr new file mode 100644 index 00000000..8755fcb3 --- /dev/null +++ b/homedecor_tables/locale/homedecor_tables.de.tr @@ -0,0 +1,27 @@ +# textdomain: homedecor_tables + + +### coffeetable.lua ### + +Coffee Table=Kaffeetisch +No room to place the coffee table!=Kein Platz, um den Kaffeetisch zu platzieren! +Someone else owns the spot where the middle or far end goes!=Jemanden gehört schon die Stelle, wo das mittlere oder ferne Stück hingehen würde. +Someone else owns the spot where the other end goes!=Jemanden gehört schon die Stelle, wo das andere Ende hingehen würde. + +### endtable.lua ### + +End Table=Beitisch + +### misc.lua ### + +Large glass table piece=Großes Glastischteil +Large wooden table piece=Großes Holztischteil +Legs for Utility Table=Tischbeine für Werkzeugtisch +Small round glass table=Kleiner runder Glastisch +Small round wooden table=Kleiner runder Holztisch +Small square glass table=Kleiner quadratischer Glastisch +Small square wooden table=Kleiner quadratischer Holztisch +Table Legs (@1)=Tischbeine (@1) +Utility Table=Werkzeugtisch +brass=Messing +wrought iron=Schmiedeeisen diff --git a/homedecor_tables/locale/homedecor_tables.es.tr b/homedecor_tables/locale/homedecor_tables.es.tr new file mode 100644 index 00000000..1da8a3e3 --- /dev/null +++ b/homedecor_tables/locale/homedecor_tables.es.tr @@ -0,0 +1,27 @@ +# textdomain: homedecor_tables + + +### coffeetable.lua ### + +Coffee Table=Mesa de café +No room to place the coffee table!=¡No hay lugar para colocar la mesa de café! +Someone else owns the spot where the middle or far end goes!=Alguien ya es dueño del lugar donde va la cabecera. +Someone else owns the spot where the other end goes!=Alguien ya es dueño del lugar donde va la cabecera. + +### endtable.lua ### + +End Table=Mesa final + +### misc.lua ### + +Large glass table piece=Mesa grande de vídrio +Large wooden table piece=Mesa grande de madera +Legs for Utility Table=Patas para mesa utilitaria +Small round glass table=Mesa redonda pequeña de vídrio +Small round wooden table=Mesa redonda pequeña de madera +Small square glass table=Mesa cuadrada pequeña de vídrio +Small square wooden table=Mesa cuadrada pequeña de madera +Table Legs (@1)=Patas de mesa (@1) +Utility Table=Mesa utilitaria +brass=latón +wrought iron=hierro forjado diff --git a/homedecor_tables/locale/homedecor_tables.fr.tr b/homedecor_tables/locale/homedecor_tables.fr.tr new file mode 100644 index 00000000..3882f3da --- /dev/null +++ b/homedecor_tables/locale/homedecor_tables.fr.tr @@ -0,0 +1,27 @@ +# textdomain: homedecor_tables + + +### coffeetable.lua ### + +Coffee Table=Table basse +No room to place the coffee table!=Pas assez de place pour poser la table basse ! +Someone else owns the spot where the middle or far end goes!=Quelqu'un d'autre est propriétaire de l'endroit où va le milieu ou l'autre bout ! +Someone else owns the spot where the other end goes!=Quelqu'un d'autre est propriétaire de l'endroit où va l'autre bout ! + +### endtable.lua ### + +End Table=Extrémité de table + +### misc.lua ### + +Large glass table piece=Élément de grande table en verre +Large wooden table piece=Élément de grande table en bois +Legs for Utility Table=Pieds pour plan de travail +Small round glass table=Petite table ronde en verre +Small round wooden table=Petite table ronde en bois +Small square glass table=Petite table carrée en verre +Small square wooden table=Petite table carrée en bois +Table Legs (@1)=Pieds de table (@1) +Utility Table=Plan de travail +brass=laiton +wrought iron=fer forgé diff --git a/homedecor_tables/locale/homedecor_tables.it.tr b/homedecor_tables/locale/homedecor_tables.it.tr new file mode 100644 index 00000000..768d408d --- /dev/null +++ b/homedecor_tables/locale/homedecor_tables.it.tr @@ -0,0 +1,27 @@ +# textdomain: homedecor_tables + + +### coffeetable.lua ### + +Coffee Table=Tavolo +No room to place the coffee table!= +Someone else owns the spot where the middle or far end goes!= +Someone else owns the spot where the other end goes!= + +### endtable.lua ### + +End Table=Tavolo + +### misc.lua ### + +Large glass table piece= +Large wooden table piece= +Legs for Utility Table=Gambe per il tavolo da lavoro +Small round glass table=Altoparlante audio surround piccolo +Small round wooden table=Altoparlante audio surround piccolo +Small square glass table= +Small square wooden table=Bauletto in legno +Table Legs (@1)=Gambe in ottone del tavolo +Utility Table=Tavolo di lavoro +brass= +wrought iron=Palo di ferro battuto diff --git a/homedecor_tables/locale/homedecor_tables.ms.tr b/homedecor_tables/locale/homedecor_tables.ms.tr new file mode 100644 index 00000000..6b8a14c5 --- /dev/null +++ b/homedecor_tables/locale/homedecor_tables.ms.tr @@ -0,0 +1,27 @@ +# textdomain: homedecor_tables + + +### coffeetable.lua ### + +Coffee Table=Meja Kopi +No room to place the coffee table!=Tiada ruang untuk letak meja kopi! +Someone else owns the spot where the middle or far end goes!=Tempat untuk letak pertengahan atau hujung objek itu kawasan kepunyaan orang lain! +Someone else owns the spot where the other end goes!=Tempat untuk letak hujung objek itu kawasan kepunyaan orang lain! + +### endtable.lua ### + +End Table=Meja Hujung + +### misc.lua ### + +Large glass table piece=Kepingan Kaca Meja Besar +Large wooden table piece=Kepingan Meja Kayu Besar +Legs for Utility Table=Kaki untuk Meja Utiliti +Small round glass table=Kaca Meja Bulat Kecil +Small round wooden table=Kepingan Meja Kayu Bulat Kecil +Small square glass table=Kaca Meja Segi Empat Kecil +Small square wooden table=Kepingan Meja Kayu Segi Empat Kecil +Table Legs (@1)=Kaki Meja (@1) +Utility Table=Kepingan Meja Utiliti +brass=Loyang +wrought iron=Besi Tempaan diff --git a/homedecor_tables/locale/homedecor_tables.pt.tr b/homedecor_tables/locale/homedecor_tables.pt.tr new file mode 100644 index 00000000..4851e5c6 --- /dev/null +++ b/homedecor_tables/locale/homedecor_tables.pt.tr @@ -0,0 +1,27 @@ +# textdomain: homedecor_tables + + +### coffeetable.lua ### + +Coffee Table=Mesa de Café +No room to place the coffee table!=Sem espaço para colocar a mesa de café +Someone else owns the spot where the middle or far end goes!=Alguém já é proprietário do local onde a cabeceira vai. +Someone else owns the spot where the other end goes!=Alguém já é proprietário do local onde a cabeceira vai. + +### endtable.lua ### + +End Table=Mesa + +### misc.lua ### + +Large glass table piece=Mesa grande de vidro +Large wooden table piece=Mesa grande de madeira +Legs for Utility Table=Pernas para Mesa de Trabalho +Small round glass table=Mesa pequena circular de vidro +Small round wooden table=Mesa pequena circular de madeira +Small square glass table=Mesa pequena quadrada de vidro +Small square wooden table=Mesa pequena quadrada de madeira +Table Legs (@1)=Pernas de Mesa (@1) +Utility Table=Mesa de Trabalho +brass=latão +wrought iron=ferro forjado diff --git a/homedecor_tables/locale/homedecor_tables.pt_BR.tr b/homedecor_tables/locale/homedecor_tables.pt_BR.tr new file mode 100644 index 00000000..4851e5c6 --- /dev/null +++ b/homedecor_tables/locale/homedecor_tables.pt_BR.tr @@ -0,0 +1,27 @@ +# textdomain: homedecor_tables + + +### coffeetable.lua ### + +Coffee Table=Mesa de Café +No room to place the coffee table!=Sem espaço para colocar a mesa de café +Someone else owns the spot where the middle or far end goes!=Alguém já é proprietário do local onde a cabeceira vai. +Someone else owns the spot where the other end goes!=Alguém já é proprietário do local onde a cabeceira vai. + +### endtable.lua ### + +End Table=Mesa + +### misc.lua ### + +Large glass table piece=Mesa grande de vidro +Large wooden table piece=Mesa grande de madeira +Legs for Utility Table=Pernas para Mesa de Trabalho +Small round glass table=Mesa pequena circular de vidro +Small round wooden table=Mesa pequena circular de madeira +Small square glass table=Mesa pequena quadrada de vidro +Small square wooden table=Mesa pequena quadrada de madeira +Table Legs (@1)=Pernas de Mesa (@1) +Utility Table=Mesa de Trabalho +brass=latão +wrought iron=ferro forjado diff --git a/homedecor_tables/locale/homedecor_tables.ru.tr b/homedecor_tables/locale/homedecor_tables.ru.tr new file mode 100644 index 00000000..a9a965ce --- /dev/null +++ b/homedecor_tables/locale/homedecor_tables.ru.tr @@ -0,0 +1,27 @@ +# textdomain: homedecor_tables + + +### coffeetable.lua ### + +Coffee Table=Кофейный столик +No room to place the coffee table!=Нет места для установки кофейного столика! +Someone else owns the spot where the middle or far end goes!=Кому-то другому принадлежит точка, куда выходит средний или дальний конец! +Someone else owns the spot where the other end goes!=Кому-то другому принадлежит точка, где выходит другой конец! + +### endtable.lua ### + +End Table=Оконечный стол + +### misc.lua ### + +Large glass table piece=Большая стеклянная столешница +Large wooden table piece=Большая деревянная столешница +Legs for Utility Table=Ножки вспомогательного стола +Small round glass table=Маленький круглый стеклянный столик +Small round wooden table=Маленький круглый деревянный столик +Small square glass table=Маленький квадратный стеклянный столик +Small square wooden table=Маленький квадратный деревянный столик +Table Legs (@1)=Ножки стола (@1) +Utility Table=Вспомогательный стол +brass=латунь +wrought iron=кованное железо diff --git a/homedecor_tables/locale/homedecor_tables.zh_CN.tr b/homedecor_tables/locale/homedecor_tables.zh_CN.tr new file mode 100644 index 00000000..df898614 --- /dev/null +++ b/homedecor_tables/locale/homedecor_tables.zh_CN.tr @@ -0,0 +1,27 @@ +# textdomain: homedecor_tables + + +### coffeetable.lua ### + +Coffee Table=咖啡桌 +No room to place the coffee table!=没有地方放咖啡桌! +Someone else owns the spot where the middle or far end goes!=中间或远端去的地方是别人的! +Someone else owns the spot where the other end goes!=另一端去的地方是别人的! + +### endtable.lua ### + +End Table=结束表 + +### misc.lua ### + +Large glass table piece=大玻璃桌片 +Large wooden table piece=大木桌片 +Legs for Utility Table=通用桌腿 +Small round glass table=小圆形玻璃桌 +Small round wooden table=小圆桌 +Small square glass table=小方形玻璃桌 +Small square wooden table=小方木桌 +Table Legs (@1)=桌腿(@1) +Utility Table=效用表 +brass=黄铜 +wrought iron=锻铁 diff --git a/homedecor_tables/locale/template.txt b/homedecor_tables/locale/template.txt new file mode 100644 index 00000000..5fe784d1 --- /dev/null +++ b/homedecor_tables/locale/template.txt @@ -0,0 +1,27 @@ +# textdomain: homedecor_tables + + +### coffeetable.lua ### + +Coffee Table= +No room to place the coffee table!= +Someone else owns the spot where the middle or far end goes!= +Someone else owns the spot where the other end goes!= + +### endtable.lua ### + +End Table= + +### misc.lua ### + +Large glass table piece= +Large wooden table piece= +Legs for Utility Table= +Small round glass table= +Small round wooden table= +Small square glass table= +Small square wooden table= +Table Legs (@1)= +Utility Table= +brass= +wrought iron= diff --git a/homedecor_tables/misc.lua b/homedecor_tables/misc.lua index beb94c34..51fb3993 100644 --- a/homedecor_tables/misc.lua +++ b/homedecor_tables/misc.lua @@ -1,6 +1,6 @@ -- formerly homedecor's misc tables component -local S = homedecor.gettext +local S = minetest.get_translator("homedecor_tables") local materials = { { "glass", diff --git a/homedecor_tables/mod.conf b/homedecor_tables/mod.conf new file mode 100644 index 00000000..a652f4c6 --- /dev/null +++ b/homedecor_tables/mod.conf @@ -0,0 +1,3 @@ +name = homedecor_tables +description = Homedecor mod: tables +depends = homedecor_common, default, basic_materials