From 4a72054c78a7e85b33bbe2f1048090adc4e2fbd3 Mon Sep 17 00:00:00 2001 From: Louis Royer <4259825-lroyer@users.noreply.gitlab.com> Date: Wed, 5 Aug 2020 00:55:23 +0200 Subject: [PATCH] MT5 translation for homedecor_windows_and_treatments --- homedecor_windows_and_treatments/depends.txt | 5 ---- homedecor_windows_and_treatments/init.lua | 25 ++++++++++--------- .../homedecor_windows_and_treatments.de.tr | 18 +++++++++++++ .../homedecor_windows_and_treatments.es.tr | 18 +++++++++++++ .../homedecor_windows_and_treatments.fr.tr | 18 +++++++++++++ .../homedecor_windows_and_treatments.it.tr | 18 +++++++++++++ .../homedecor_windows_and_treatments.ms.tr | 18 +++++++++++++ .../homedecor_windows_and_treatments.pt.tr | 18 +++++++++++++ .../homedecor_windows_and_treatments.pt_BR.tr | 18 +++++++++++++ .../homedecor_windows_and_treatments.ru.tr | 18 +++++++++++++ .../homedecor_windows_and_treatments.zh_CN.tr | 18 +++++++++++++ .../locale/template.txt | 18 +++++++++++++ homedecor_windows_and_treatments/mod.conf | 4 +++ 13 files changed, 197 insertions(+), 17 deletions(-) delete mode 100644 homedecor_windows_and_treatments/depends.txt create mode 100644 homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.de.tr create mode 100644 homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.es.tr create mode 100644 homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.fr.tr create mode 100644 homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.it.tr create mode 100644 homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.ms.tr create mode 100644 homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.pt.tr create mode 100644 homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.pt_BR.tr create mode 100644 homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.ru.tr create mode 100644 homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.zh_CN.tr create mode 100644 homedecor_windows_and_treatments/locale/template.txt create mode 100644 homedecor_windows_and_treatments/mod.conf diff --git a/homedecor_windows_and_treatments/depends.txt b/homedecor_windows_and_treatments/depends.txt deleted file mode 100644 index 8c8316ab..00000000 --- a/homedecor_windows_and_treatments/depends.txt +++ /dev/null @@ -1,5 +0,0 @@ -homedecor_common -default -basic_materials -unifieddyes -building_blocks? diff --git a/homedecor_windows_and_treatments/init.lua b/homedecor_windows_and_treatments/init.lua index 3f17e48e..350ed45a 100644 --- a/homedecor_windows_and_treatments/init.lua +++ b/homedecor_windows_and_treatments/init.lua @@ -1,5 +1,6 @@ +local S = minetest.get_translator("homedecor_windows_and_treatments") -local S = homedecor.gettext +homedecor_windows_and_treatments = {} homedecor.register("window_quartered", { description = S("Window (quartered)"), @@ -271,17 +272,17 @@ minetest.register_alias("homedecor:shutter_oak", "homedecor:shutter") -- convert old shutters to param2 coloring -homedecor.old_shutter_nodes = {} +homedecor_windows_and_treatments.old_shutter_nodes = {} for _, color in ipairs(shutters) do - table.insert(homedecor.old_shutter_nodes, "homedecor:shutter_"..color) + table.insert(homedecor_windows_and_treatments.old_shutter_nodes, "homedecor:shutter_"..color) end minetest.register_lbm({ name = ":homedecor:convert_shutters", label = "Convert shutter static nodes to use param2 color", run_at_every_load = false, - nodenames = homedecor.old_shutter_nodes, + nodenames = homedecor_windows_and_treatments.old_shutter_nodes, action = function(pos, node) local name = node.name local color = string.sub(name, string.find(name, "_") + 1) @@ -316,18 +317,18 @@ local curtaincolors = { "violet", } -homedecor.old_static_curtain_nodes = {} +homedecor_windows_and_treatments.old_static_curtain_nodes = {} for _, color in ipairs(curtaincolors) do - table.insert(homedecor.old_static_curtain_nodes, "homedecor:curtain_"..color) - table.insert(homedecor.old_static_curtain_nodes, "homedecor:curtain_open_"..color) + table.insert(homedecor_windows_and_treatments.old_static_curtain_nodes, "homedecor:curtain_"..color) + table.insert(homedecor_windows_and_treatments.old_static_curtain_nodes, "homedecor:curtain_open_"..color) end minetest.register_lbm({ name = ":homedecor:convert_curtains", label = "Convert static curtain nodes to use param2 color", run_at_every_load = false, - nodenames = homedecor.old_static_curtain_nodes, + nodenames = homedecor_windows_and_treatments.old_static_curtain_nodes, action = function(pos, node) local name = node.name local color = string.sub(name, 19) @@ -423,15 +424,15 @@ unifieddyes.register_color_craft({ } }) -local mats = { +local mats_craft = { { "brass", "homedecor:pole_brass" }, { "wrought_iron", "homedecor:pole_wrought_iron" }, { "wood", "group:stick" } } -for i in ipairs(mats) do - local material = mats[i][1] - local ingredient = mats[i][2] +for i in ipairs(mats_craft) do + local material = mats_craft[i][1] + local ingredient = mats_craft[i][2] minetest.register_craft( { output = "homedecor:curtainrod_"..material.." 3", recipe = { diff --git a/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.de.tr b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.de.tr new file mode 100644 index 00000000..6baf79c5 --- /dev/null +++ b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.de.tr @@ -0,0 +1,18 @@ +# textdomain: homedecor_windows_and_treatments + + +### init.lua ### + +Curtain Rod (@1)=Gardinenstange (@1) +Curtains=Gardinen +Curtains (open)=Gardinen +Stained Glass=Buntglas +Window (plain)=Fenster (schlicht) +Window (quartered)=Fenster (geviertelt) +Window Blinds (thick)=Jalousie (dick) +Window Blinds (thin)=Jalousie (dünn) +Window flowerbox=Fensterblumenkasten +Wooden Shutter=Holzrolladen +brass=Messing +wood=Holz +wrought iron=Schmiedeeisen diff --git a/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.es.tr b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.es.tr new file mode 100644 index 00000000..4f51a052 --- /dev/null +++ b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.es.tr @@ -0,0 +1,18 @@ +# textdomain: homedecor_windows_and_treatments + + +### init.lua ### + +Curtain Rod (@1)=Palo de cortinas (@1) +Curtains=Cortinas +Curtains (open)=Cortinas +Stained Glass=Vídrio coloreado +Window (plain)=Ventana (lisa) +Window (quartered)=Ventana (cuarteada) +Window Blinds (thick)=Persianas (gruesas) +Window Blinds (thin)=Persianas (finas) +Window flowerbox=Caja de flores de ventana +Wooden Shutter=Postigo de madera +brass=latón +wood=madera +wrought iron=hierro forjado diff --git a/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.fr.tr b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.fr.tr new file mode 100644 index 00000000..034c9077 --- /dev/null +++ b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.fr.tr @@ -0,0 +1,18 @@ +# textdomain: homedecor_windows_and_treatments + + +### init.lua ### + +Curtain Rod (@1)=Tringle à rideaux (@1) +Curtains=Rideaux +Curtains (open)=Rideaux +Stained Glass=Vitreaux +Window (plain)=Fenêtre +Window (quartered)=Fenêtre à petits carreaux +Window Blinds (thick)=Store (épais) +Window Blinds (thin)=Store (fin) +Window flowerbox=Jardinière +Wooden Shutter=Store en bois +brass=laiton +wood=bois +wrought iron=fer forgé diff --git a/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.it.tr b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.it.tr new file mode 100644 index 00000000..95a625b3 --- /dev/null +++ b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.it.tr @@ -0,0 +1,18 @@ +# textdomain: homedecor_windows_and_treatments + + +### init.lua ### + +Curtain Rod (@1)=Tende (%s) +Curtains=Tende (%s) +Curtains (open)=Tende (%s) +Stained Glass= +Window (plain)= +Window (quartered)= +Window Blinds (thick)=Luce fosforescente bianca (spessa) +Window Blinds (thin)=Luce fosforescente bianca (sottile) +Window flowerbox= +Wooden Shutter=Persiana in legno (rossa) +brass= +wood= +wrought iron=Palo di ferro battuto diff --git a/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.ms.tr b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.ms.tr new file mode 100644 index 00000000..1ab8a563 --- /dev/null +++ b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.ms.tr @@ -0,0 +1,18 @@ +# textdomain: homedecor_windows_and_treatments + + +### init.lua ### + +Curtain Rod (@1)=Alang Langsir +Curtains=Langsir +Curtains (open)=Langsir (Terbuka) +Stained Glass=Kaca Berwarna +Window (plain)=Tingkap (Biasa) +Window (quartered)=Tingkap (Berpalang) +Window Blinds (thick)=Bidai Tingkap (Tebal) +Window Blinds (thin)=Bidai Tingkap (Nipis) +Window flowerbox=Kotak Bunga Tingkap +Wooden Shutter=Pengatup Kayu +brass=Loyang +wood=Kayu +wrought iron=Besi Tempaan diff --git a/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.pt.tr b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.pt.tr new file mode 100644 index 00000000..76b2ce18 --- /dev/null +++ b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.pt.tr @@ -0,0 +1,18 @@ +# textdomain: homedecor_windows_and_treatments + + +### init.lua ### + +Curtain Rod (@1)=Suporte de Cortina (@1) +Curtains=Cortinas +Curtains (open)=Cortinas +Stained Glass=Vitral +Window (plain)=Janela (Sem Acabamento) +Window (quartered)=Janela (dividida em 4) +Window Blinds (thick)=Persiana (grossa) +Window Blinds (thin)=Persiana (fina) +Window flowerbox=Janela com Caixa de Flores +Wooden Shutter=Obturador de Madeira +brass=latão +wood=madeira +wrought iron=ferro forjado diff --git a/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.pt_BR.tr b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.pt_BR.tr new file mode 100644 index 00000000..76b2ce18 --- /dev/null +++ b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.pt_BR.tr @@ -0,0 +1,18 @@ +# textdomain: homedecor_windows_and_treatments + + +### init.lua ### + +Curtain Rod (@1)=Suporte de Cortina (@1) +Curtains=Cortinas +Curtains (open)=Cortinas +Stained Glass=Vitral +Window (plain)=Janela (Sem Acabamento) +Window (quartered)=Janela (dividida em 4) +Window Blinds (thick)=Persiana (grossa) +Window Blinds (thin)=Persiana (fina) +Window flowerbox=Janela com Caixa de Flores +Wooden Shutter=Obturador de Madeira +brass=latão +wood=madeira +wrought iron=ferro forjado diff --git a/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.ru.tr b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.ru.tr new file mode 100644 index 00000000..f0bb9e67 --- /dev/null +++ b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.ru.tr @@ -0,0 +1,18 @@ +# textdomain: homedecor_windows_and_treatments + + +### init.lua ### + +Curtain Rod (@1)=Карниз для штор (@1) +Curtains=Шторы +Curtains (open)=Шторы +Stained Glass=Витражное стекло +Window (plain)=Окно (простое) +Window (quartered)=Окно (разделённое) +Window Blinds (thick)=Жалюзи (широкие) +Window Blinds (thin)=Жалюзи (узкие) +Window flowerbox=Оконный цветочный ящик +Wooden Shutter=Деревянные ставни +brass=латунь +wood=дерево +wrought iron=кованное железо diff --git a/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.zh_CN.tr b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.zh_CN.tr new file mode 100644 index 00000000..2a6a51ef --- /dev/null +++ b/homedecor_windows_and_treatments/locale/homedecor_windows_and_treatments.zh_CN.tr @@ -0,0 +1,18 @@ +# textdomain: homedecor_windows_and_treatments + + +### init.lua ### + +Curtain Rod (@1)=窗帘杆(@1) +Curtains=窗帘 +Curtains (open)=窗帘(打开) +Stained Glass=彩色玻璃 +Window (plain)=窗口(普通) +Window (quartered)=窗户(四分之一) +Window Blinds (thick)=百叶窗(厚) +Window Blinds (thin)=百叶窗(薄) +Window flowerbox=窗花箱 +Wooden Shutter=木快门 +brass=黄铜 +wood=木材 +wrought iron=锻铁 diff --git a/homedecor_windows_and_treatments/locale/template.txt b/homedecor_windows_and_treatments/locale/template.txt new file mode 100644 index 00000000..4efd4a54 --- /dev/null +++ b/homedecor_windows_and_treatments/locale/template.txt @@ -0,0 +1,18 @@ +# textdomain: homedecor_windows_and_treatments + + +### init.lua ### + +Curtain Rod (@1)= +Curtains= +Curtains (open)= +Stained Glass= +Window (plain)= +Window (quartered)= +Window Blinds (thick)= +Window Blinds (thin)= +Window flowerbox= +Wooden Shutter= +brass= +wood= +wrought iron= diff --git a/homedecor_windows_and_treatments/mod.conf b/homedecor_windows_and_treatments/mod.conf new file mode 100644 index 00000000..66e2374e --- /dev/null +++ b/homedecor_windows_and_treatments/mod.conf @@ -0,0 +1,4 @@ +name = homedecor_windows_and_treatments +description = Homedecor mod: windows and treatments +depends = homedecor_common, default, basic_materials, unifieddyes +optional_depends = building_blocks