MT5 translation for homedecor_doors_and_gates

- add screwdriver optional_depends
- fix luacheck warnings
- french translation
This commit is contained in:
Louis Royer 2020-08-04 21:41:13 +02:00
parent 4d6458b684
commit 512ae9ec67
13 changed files with 275 additions and 37 deletions

View File

@ -1,8 +0,0 @@
homedecor_common
homedecor_misc?
homedecor_3d_extras?
default
basic_materials
dye
doors
mesecons?

View File

@ -1,13 +1,15 @@
-- Node definitions for Homedecor doors -- Node definitions for Homedecor doors
local S = homedecor.gettext local S = minetest.get_translator("homedecor_doors_and_gates")
local mesecons_mp = minetest.get_modpath("mesecons") local mesecons_mp = minetest.get_modpath("mesecons")
homedecor_doors_and_gates = {}
-- new doors using minetest_game doors API -- new doors using minetest_game doors API
local door_list = { local door_list = {
{ name = "wood_plain", {
description = "Plain Wooden Door", name = "wood_plain",
description = S("Plain Wooden Door"),
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = { sounds = {
main = default.node_sound_wood_defaults(), main = default.node_sound_wood_defaults(),
@ -16,8 +18,9 @@ local door_list = {
} }
}, },
{ name = "exterior_fancy", {
description = "Fancy Wood/Glass Door", name = "exterior_fancy",
description = S("Fancy Wood/Glass Door"),
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = { sounds = {
main = default.node_sound_wood_defaults(), main = default.node_sound_wood_defaults(),
@ -29,8 +32,9 @@ local door_list = {
custom_model = "homedecor_door_fancy" custom_model = "homedecor_door_fancy"
}, },
{ name = "french_oak", {
description = "French door, Oak-colored", name = "french_oak",
description = S("French door, Oak-colored"),
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = { sounds = {
main = default.node_sound_glass_defaults(), main = default.node_sound_glass_defaults(),
@ -40,8 +44,9 @@ local door_list = {
custom_model = "homedecor_door_french" custom_model = "homedecor_door_french"
}, },
{ name = "french_mahogany", {
description = "French door, Mahogany-colored", name = "french_mahogany",
description = S("French door, Mahogany-colored"),
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = { sounds = {
main = default.node_sound_glass_defaults(), main = default.node_sound_glass_defaults(),
@ -51,8 +56,9 @@ local door_list = {
custom_model = "homedecor_door_french" custom_model = "homedecor_door_french"
}, },
{ name = "french_white", {
description = "French door, White", name = "french_white",
description = S("French door, White"),
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = { sounds = {
main = default.node_sound_glass_defaults(), main = default.node_sound_glass_defaults(),
@ -62,8 +68,9 @@ local door_list = {
custom_model = "homedecor_door_french" custom_model = "homedecor_door_french"
}, },
{ name = "basic_panel", {
description = "Basic white panel Door", name = "basic_panel",
description = S("Basic white panel Door"),
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = { sounds = {
main = default.node_sound_wood_defaults(), main = default.node_sound_wood_defaults(),
@ -72,8 +79,9 @@ local door_list = {
} }
}, },
{ name = "wrought_iron", {
description = "Wrought Iron Gate/Door", name = "wrought_iron",
description = S("Wrought Iron Gate/Door"),
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = { sounds = {
main = default.node_sound_metal_defaults(), main = default.node_sound_metal_defaults(),
@ -84,8 +92,9 @@ local door_list = {
custom_model = "homedecor_door_wrought_iron" custom_model = "homedecor_door_wrought_iron"
}, },
{ name = "carolina", {
description = "Wooden Carolina door", name = "carolina",
description = S("Wooden Carolina door"),
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = { sounds = {
main = default.node_sound_wood_defaults(), main = default.node_sound_wood_defaults(),
@ -96,8 +105,9 @@ local door_list = {
alpha = true alpha = true
}, },
{ name = "woodglass", {
description = "Wooden door with glass insert, type 3", name = "woodglass",
description = S("Wooden door with glass insert, type 3"),
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = { sounds = {
main = default.node_sound_wood_defaults(), main = default.node_sound_wood_defaults(),
@ -109,8 +119,9 @@ local door_list = {
custom_model = "homedecor_door_wood_glass_3" custom_model = "homedecor_door_wood_glass_3"
}, },
{ name = "closet_mahogany", {
description = "Mahogany Closet Door", name = "closet_mahogany",
description = S("Mahogany Closet Door"),
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = { sounds = {
main = default.node_sound_wood_defaults(), main = default.node_sound_wood_defaults(),
@ -118,8 +129,9 @@ local door_list = {
custom_model = "homedecor_door_closet" custom_model = "homedecor_door_closet"
}, },
{ name = "closet_oak", {
description = "Oak Closet Door", name = "closet_oak",
description = S("Oak Closet Door"),
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = { sounds = {
main = default.node_sound_wood_defaults(), main = default.node_sound_wood_defaults(),
@ -307,7 +319,7 @@ for i, g in ipairs(gate_list) do
fixed = gate_models_closed[i] fixed = gate_models_closed[i]
}, },
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
homedecor.flip_gate(pos, node, clicker, gate, "closed") homedecor_doors_and_gates.flip_gate(pos, node, clicker, gate, "closed")
return itemstack return itemstack
end, end,
} }
@ -316,7 +328,7 @@ for i, g in ipairs(gate_list) do
def.mesecons = { def.mesecons = {
effector = { effector = {
rules = mesecon.rules.pplate, rules = mesecon.rules.pplate,
action_on = function(pos,node) homedecor.flip_gate(pos,node,nil,gate, "closed") end action_on = function(pos,node) homedecor_doors_and_gates.flip_gate(pos,node,nil,gate, "closed") end
} }
} }
end end
@ -340,14 +352,14 @@ for i, g in ipairs(gate_list) do
} }
def.drop = "homedecor:gate_"..gate.."_closed" def.drop = "homedecor:gate_"..gate.."_closed"
def.on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) def.on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
homedecor.flip_gate(pos, node, clicker, gate, "open") homedecor_doors_and_gates.flip_gate(pos, node, clicker, gate, "open")
return itemstack return itemstack
end end
if mesecons_mp then if mesecons_mp then
def.mesecons.effector = { def.mesecons.effector = {
rules = mesecon.rules.pplate, rules = mesecon.rules.pplate,
action_off = function(pos,node) homedecor.flip_gate(pos,node,nil,gate, "open") end action_off = function(pos,node) homedecor_doors_and_gates.flip_gate(pos,node,nil,gate, "open") end
} }
end end
@ -363,7 +375,7 @@ minetest.register_alias("homedecor:fence_picket_gate_closed", "homedecor:g
minetest.register_alias("homedecor:fence_picket_gate_white_open", "homedecor:gate_picket_white_open") minetest.register_alias("homedecor:fence_picket_gate_white_open", "homedecor:gate_picket_white_open")
minetest.register_alias("homedecor:fence_picket_gate_white_closed", "homedecor:gate_picket_white_closed") minetest.register_alias("homedecor:fence_picket_gate_white_closed", "homedecor:gate_picket_white_closed")
function homedecor.flip_gate(pos, node, player, gate, oc) function homedecor_doors_and_gates.flip_gate(pos, node, player, gate, oc)
local fdir = node.param2 or 0 local fdir = node.param2 or 0
@ -432,7 +444,7 @@ homedecor.register("door_japanese_open", {
mesh = "homedecor_door_japanese_open.obj", mesh = "homedecor_door_japanese_open.obj",
groups = { snappy = 3, not_in_creative_inventory = 1 }, groups = { snappy = 3, not_in_creative_inventory = 1 },
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.disallow, on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil,
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-1.5, -0.5, -0.0625, 0.5, 1.5, 0}, fixed = {-1.5, -0.5, -0.0625, 0.5, 1.5, 0},

View File

@ -0,0 +1,23 @@
# textdomain: homedecor_doors_and_gates
### init.lua ###
"Half" Door=„Halbe“ Tür
"Half" Door (white)=„Halbe“ Tür (weiß)
Barbed Wire Fence Gate=Stacheldrahtzauntor
Basic white panel Door=
Chainlink Fence Gate=Maschendrahtzauntor
Fancy Wood/Glass Door=
French door, Mahogany-colored=
French door, Oak-colored=
French door, White=
Japanese-style door=Tür im japanischen Stil
Mahogany Closet Door=
Oak Closet Door=
Plain Wooden Door=
Unpainted Picket Fence Gate=Unlackiertes Lattenzauntor
White Picket Fence Gate=Weißes Lattenzauntor
Wooden Carolina door=
Wooden door with glass insert, type 3=
Wrought Iron Gate/Door=

View File

@ -0,0 +1,23 @@
# textdomain: homedecor_doors_and_gates
### init.lua ###
"Half" Door=
"Half" Door (white)=
Barbed Wire Fence Gate=Cerca de alambre de espino
Basic white panel Door=
Chainlink Fence Gate=Cerca de eslabón de cadena
Fancy Wood/Glass Door=
French door, Mahogany-colored=
French door, Oak-colored=
French door, White=
Japanese-style door=Puerta estilo japonés
Mahogany Closet Door=
Oak Closet Door=
Plain Wooden Door=
Unpainted Picket Fence Gate=Cerca de piquete sin pintar
White Picket Fence Gate=Cerca de piquete blanca
Wooden Carolina door=
Wooden door with glass insert, type 3=
Wrought Iron Gate/Door=

View File

@ -0,0 +1,23 @@
# textdomain: homedecor_doors_and_gates
### init.lua ###
"Half" Door=Demi-porte
"Half" Door (white)=Demi-porte (blanche)
Barbed Wire Fence Gate=Portillon en fil barbelé
Basic white panel Door=Porte blanche simple à panneaux
Chainlink Fence Gate=Portillon grillagé
Fancy Wood/Glass Door=Porte chic en bois et verre
French door, Mahogany-colored=Porte française, couleur acajou
French door, Oak-colored=Porte française, couleur chêne
French door, White=Porte française, blanche
Japanese-style door=Porte japonaise
Mahogany Closet Door=Porte de placard en acajou
Oak Closet Door=Porte de placard en chêne
Plain Wooden Door=Porte en bois simple
Unpainted Picket Fence Gate=Portillon en piquets bruts
White Picket Fence Gate=Portillon en piquets blancs
Wooden Carolina door=Porte en pin de caroline
Wooden door with glass insert, type 3=Porte en bois avec fenêtre en verre, type 3
Wrought Iron Gate/Door=Porte en fer forgé

View File

@ -0,0 +1,23 @@
# textdomain: homedecor_doors_and_gates
### init.lua ###
"Half" Door=
"Half" Door (white)=
Barbed Wire Fence Gate=Cancello della recinzione di filo spinato
Basic white panel Door=
Chainlink Fence Gate=Cancello della rete metallica
Fancy Wood/Glass Door=
French door, Mahogany-colored=
French door, Oak-colored=
French door, White=
Japanese-style door=
Mahogany Closet Door=
Oak Closet Door=
Plain Wooden Door=
Unpainted Picket Fence Gate=Cancello della recinzione non verniciata di paletti
White Picket Fence Gate=Cancello della recinzione di paletti bianca
Wooden Carolina door=
Wooden door with glass insert, type 3=
Wrought Iron Gate/Door=

View File

@ -0,0 +1,23 @@
# textdomain: homedecor_doors_and_gates
### init.lua ###
"Half" Door=Pintu "Separuh"
"Half" Door (white)=Pintu "Separuh" (Putih)
Barbed Wire Fence Gate=Pintu Pagar Dawai Berduri
Basic white panel Door=
Chainlink Fence Gate=Pintu Pagar Dawai Berangkai
Fancy Wood/Glass Door=
French door, Mahogany-colored=
French door, Oak-colored=
French door, White=
Japanese-style door=Pintu Gaya Jepun
Mahogany Closet Door=
Oak Closet Door=
Plain Wooden Door=
Unpainted Picket Fence Gate=Pintu Pagar Pancang Tidak Bercat
White Picket Fence Gate=Pintu Pagar Pancang Putih
Wooden Carolina door=
Wooden door with glass insert, type 3=
Wrought Iron Gate/Door=

View File

@ -0,0 +1,23 @@
# textdomain: homedecor_doors_and_gates
### init.lua ###
"Half" Door=
"Half" Door (white)=
Barbed Wire Fence Gate=Porteira de Arame Farpado
Basic white panel Door=
Chainlink Fence Gate=Porteira de Tela de Arame
Fancy Wood/Glass Door=
French door, Mahogany-colored=
French door, Oak-colored=
French door, White=
Japanese-style door=Porta estilo japonês
Mahogany Closet Door=
Oak Closet Door=
Plain Wooden Door=
Unpainted Picket Fence Gate=Porteira de Madeira Não Pintada
White Picket Fence Gate=Porteira Branca de Piquete
Wooden Carolina door=
Wooden door with glass insert, type 3=
Wrought Iron Gate/Door=

View File

@ -0,0 +1,23 @@
# textdomain: homedecor_doors_and_gates
### init.lua ###
"Half" Door=
"Half" Door (white)=
Barbed Wire Fence Gate=Porteira de Arame Farpado
Basic white panel Door=
Chainlink Fence Gate=Porteira de Tela de Arame
Fancy Wood/Glass Door=
French door, Mahogany-colored=
French door, Oak-colored=
French door, White=
Japanese-style door=Porta estilo japonês
Mahogany Closet Door=
Oak Closet Door=
Plain Wooden Door=
Unpainted Picket Fence Gate=Porteira de Madeira Não Pintada
White Picket Fence Gate=Porteira Branca de Piquete
Wooden Carolina door=
Wooden door with glass insert, type 3=
Wrought Iron Gate/Door=

View File

@ -0,0 +1,23 @@
# textdomain: homedecor_doors_and_gates
### init.lua ###
"Half" Door=Полуразмерная дверь
"Half" Door (white)=Полуразмерная дверь (белая)
Barbed Wire Fence Gate=Ворота для забора из колючей проволоки
Basic white panel Door=
Chainlink Fence Gate=Ворота для цепного забора
Fancy Wood/Glass Door=
French door, Mahogany-colored=
French door, Oak-colored=
French door, White=
Japanese-style door=Дверь в японском стиле
Mahogany Closet Door=
Oak Closet Door=
Plain Wooden Door=
Unpainted Picket Fence Gate=Некрашеные ворота для забора из частокола
White Picket Fence Gate=Белые ворота для забора из частокола
Wooden Carolina door=
Wooden door with glass insert, type 3=
Wrought Iron Gate/Door=

View File

@ -0,0 +1,23 @@
# textdomain: homedecor_doors_and_gates
### init.lua ###
"Half" Door=\半门
"Half" Door (white)=\半门(白色)
Barbed Wire Fence Gate=铁丝网栅栏门
Basic white panel Door=
Chainlink Fence Gate=铁链栅栏门
Fancy Wood/Glass Door=
French door, Mahogany-colored=
French door, Oak-colored=
French door, White=
Japanese-style door=日式门
Mahogany Closet Door=
Oak Closet Door=
Plain Wooden Door=
Unpainted Picket Fence Gate=未上漆的尖桩栅栏门
White Picket Fence Gate=白色尖桩栅栏门
Wooden Carolina door=
Wooden door with glass insert, type 3=
Wrought Iron Gate/Door=

View File

@ -0,0 +1,23 @@
# textdomain: homedecor_doors_and_gates
### init.lua ###
"Half" Door=
"Half" Door (white)=
Barbed Wire Fence Gate=
Basic white panel Door=
Chainlink Fence Gate=
Fancy Wood/Glass Door=
French door, Mahogany-colored=
French door, Oak-colored=
French door, White=
Japanese-style door=
Mahogany Closet Door=
Oak Closet Door=
Plain Wooden Door=
Unpainted Picket Fence Gate=
White Picket Fence Gate=
Wooden Carolina door=
Wooden door with glass insert, type 3=
Wrought Iron Gate/Door=

View File

@ -0,0 +1,4 @@
name = homedecor_doors_and_gates
description = Homedecor mod: doors and gates
depends = homedecor_common, default, basic_materials, dye, doors
optional_depends = homedecor_misc, homedecor_3d_extras, mesecons, screwdriver