1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

MT5 translation for homedecor_windows_and_treatments

This commit is contained in:
Louis Royer 2020-08-05 00:55:23 +02:00
parent 204beaaaac
commit 4a72054c78
13 changed files with 197 additions and 17 deletions

View File

@ -1,5 +0,0 @@
homedecor_common
default
basic_materials
unifieddyes
building_blocks?

View File

@ -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", { homedecor.register("window_quartered", {
description = S("Window (quartered)"), description = S("Window (quartered)"),
@ -271,17 +272,17 @@ minetest.register_alias("homedecor:shutter_oak", "homedecor:shutter")
-- convert old shutters to param2 coloring -- convert old shutters to param2 coloring
homedecor.old_shutter_nodes = {} homedecor_windows_and_treatments.old_shutter_nodes = {}
for _, color in ipairs(shutters) do 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 end
minetest.register_lbm({ minetest.register_lbm({
name = ":homedecor:convert_shutters", name = ":homedecor:convert_shutters",
label = "Convert shutter static nodes to use param2 color", label = "Convert shutter static nodes to use param2 color",
run_at_every_load = false, run_at_every_load = false,
nodenames = homedecor.old_shutter_nodes, nodenames = homedecor_windows_and_treatments.old_shutter_nodes,
action = function(pos, node) action = function(pos, node)
local name = node.name local name = node.name
local color = string.sub(name, string.find(name, "_") + 1) local color = string.sub(name, string.find(name, "_") + 1)
@ -316,18 +317,18 @@ local curtaincolors = {
"violet", "violet",
} }
homedecor.old_static_curtain_nodes = {} homedecor_windows_and_treatments.old_static_curtain_nodes = {}
for _, color in ipairs(curtaincolors) do for _, color in ipairs(curtaincolors) do
table.insert(homedecor.old_static_curtain_nodes, "homedecor:curtain_"..color) table.insert(homedecor_windows_and_treatments.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_open_"..color)
end end
minetest.register_lbm({ minetest.register_lbm({
name = ":homedecor:convert_curtains", name = ":homedecor:convert_curtains",
label = "Convert static curtain nodes to use param2 color", label = "Convert static curtain nodes to use param2 color",
run_at_every_load = false, run_at_every_load = false,
nodenames = homedecor.old_static_curtain_nodes, nodenames = homedecor_windows_and_treatments.old_static_curtain_nodes,
action = function(pos, node) action = function(pos, node)
local name = node.name local name = node.name
local color = string.sub(name, 19) local color = string.sub(name, 19)
@ -423,15 +424,15 @@ unifieddyes.register_color_craft({
} }
}) })
local mats = { local mats_craft = {
{ "brass", "homedecor:pole_brass" }, { "brass", "homedecor:pole_brass" },
{ "wrought_iron", "homedecor:pole_wrought_iron" }, { "wrought_iron", "homedecor:pole_wrought_iron" },
{ "wood", "group:stick" } { "wood", "group:stick" }
} }
for i in ipairs(mats) do for i in ipairs(mats_craft) do
local material = mats[i][1] local material = mats_craft[i][1]
local ingredient = mats[i][2] local ingredient = mats_craft[i][2]
minetest.register_craft( { minetest.register_craft( {
output = "homedecor:curtainrod_"..material.." 3", output = "homedecor:curtainrod_"..material.." 3",
recipe = { recipe = {

View File

@ -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

View File

@ -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

View File

@ -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é

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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=кованное железо

View File

@ -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=锻铁

View File

@ -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=

View File

@ -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