forked from nalc/homedecor_modpack
MT5 translation for homedecor_doors_and_gates
- add screwdriver optional_depends - fix luacheck warnings - french translation
This commit is contained in:
parent
4d6458b684
commit
512ae9ec67
@ -1,8 +0,0 @@
|
||||
homedecor_common
|
||||
homedecor_misc?
|
||||
homedecor_3d_extras?
|
||||
default
|
||||
basic_materials
|
||||
dye
|
||||
doors
|
||||
mesecons?
|
@ -1,13 +1,15 @@
|
||||
-- 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")
|
||||
homedecor_doors_and_gates = {}
|
||||
|
||||
-- new doors using minetest_game doors API
|
||||
|
||||
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},
|
||||
sounds = {
|
||||
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},
|
||||
sounds = {
|
||||
main = default.node_sound_wood_defaults(),
|
||||
@ -29,8 +32,9 @@ local door_list = {
|
||||
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},
|
||||
sounds = {
|
||||
main = default.node_sound_glass_defaults(),
|
||||
@ -40,8 +44,9 @@ local door_list = {
|
||||
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},
|
||||
sounds = {
|
||||
main = default.node_sound_glass_defaults(),
|
||||
@ -51,8 +56,9 @@ local door_list = {
|
||||
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},
|
||||
sounds = {
|
||||
main = default.node_sound_glass_defaults(),
|
||||
@ -62,8 +68,9 @@ local door_list = {
|
||||
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},
|
||||
sounds = {
|
||||
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},
|
||||
sounds = {
|
||||
main = default.node_sound_metal_defaults(),
|
||||
@ -84,8 +92,9 @@ local door_list = {
|
||||
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},
|
||||
sounds = {
|
||||
main = default.node_sound_wood_defaults(),
|
||||
@ -96,8 +105,9 @@ local door_list = {
|
||||
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},
|
||||
sounds = {
|
||||
main = default.node_sound_wood_defaults(),
|
||||
@ -109,8 +119,9 @@ local door_list = {
|
||||
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},
|
||||
sounds = {
|
||||
main = default.node_sound_wood_defaults(),
|
||||
@ -118,8 +129,9 @@ local door_list = {
|
||||
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},
|
||||
sounds = {
|
||||
main = default.node_sound_wood_defaults(),
|
||||
@ -307,7 +319,7 @@ for i, g in ipairs(gate_list) do
|
||||
fixed = gate_models_closed[i]
|
||||
},
|
||||
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
|
||||
end,
|
||||
}
|
||||
@ -316,7 +328,7 @@ for i, g in ipairs(gate_list) do
|
||||
def.mesecons = {
|
||||
effector = {
|
||||
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
|
||||
@ -340,14 +352,14 @@ for i, g in ipairs(gate_list) do
|
||||
}
|
||||
def.drop = "homedecor:gate_"..gate.."_closed"
|
||||
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
|
||||
end
|
||||
|
||||
if mesecons_mp then
|
||||
def.mesecons.effector = {
|
||||
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
|
||||
|
||||
@ -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_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
|
||||
@ -432,7 +444,7 @@ homedecor.register("door_japanese_open", {
|
||||
mesh = "homedecor_door_japanese_open.obj",
|
||||
groups = { snappy = 3, not_in_creative_inventory = 1 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_rotate = screwdriver.disallow,
|
||||
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1.5, -0.5, -0.0625, 0.5, 1.5, 0},
|
||||
|
@ -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=
|
@ -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=
|
@ -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é
|
@ -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=
|
@ -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=
|
@ -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=
|
@ -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=
|
@ -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=
|
@ -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=
|
23
homedecor_doors_and_gates/locale/template.txt
Normal file
23
homedecor_doors_and_gates/locale/template.txt
Normal 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=
|
4
homedecor_doors_and_gates/mod.conf
Normal file
4
homedecor_doors_and_gates/mod.conf
Normal 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
|
Loading…
Reference in New Issue
Block a user