Add translation for mechanisms
parent
ff37bf612a
commit
3bde6fa0d7
|
@ -81,6 +81,12 @@ Mailbox=
|
|||
Send your goods to@n@1=
|
||||
The mailbox is full.=
|
||||
|
||||
### mechanisms.lua ###
|
||||
|
||||
Lever=
|
||||
Stone Pressure Plate=
|
||||
Wooden Pressure Plate=
|
||||
|
||||
### rope.lua ###
|
||||
|
||||
Rope=
|
||||
|
|
|
@ -81,6 +81,12 @@ Mailbox=Boite aux lettres
|
|||
Send your goods to@n@1=Envoyer vos biens à@n@1
|
||||
The mailbox is full.=La boite aux lettres est pleine.
|
||||
|
||||
### mechanisms.lua ###
|
||||
|
||||
Lever=Levier
|
||||
Stone Pressure Plate=Plaque de pression en pierre
|
||||
Wooden Pressure Plate=Plaque de pression en bois
|
||||
|
||||
### rope.lua ###
|
||||
|
||||
Rope=Corde
|
||||
|
|
|
@ -5,12 +5,14 @@ minetest.setting_set("nodetimer_interval", 0.1)
|
|||
local plate = {}
|
||||
screwdriver = screwdriver or {}
|
||||
|
||||
local S = minetest.get_translator("xdecor")
|
||||
|
||||
local function door_toggle(pos_actuator, pos_door, player)
|
||||
local player_name = player:get_player_name()
|
||||
local actuator = minetest.get_node(pos_actuator)
|
||||
local door = doors.get(pos_door)
|
||||
if not door then return end
|
||||
|
||||
|
||||
if actuator.name:sub(-4) == "_off" then
|
||||
minetest.set_node(pos_actuator,
|
||||
{name = actuator.name:gsub("_off", "_on"), param2 = actuator.param2})
|
||||
|
@ -53,9 +55,9 @@ function plate.timer(pos)
|
|||
return true
|
||||
end
|
||||
|
||||
function plate.register(material, desc, def)
|
||||
function plate.register(material, desc, def, fulldesc)
|
||||
xdecor.register("pressure_" .. material .. "_off", {
|
||||
description = desc .. " Pressure Plate",
|
||||
description = fulldesc or (desc .. " Pressure Plate"),
|
||||
tiles = {"xdecor_pressure_" .. material .. ".png"},
|
||||
drawtype = "nodebox",
|
||||
node_box = xdecor.pixelbox(16, {{1, 0, 1, 14, 1, 14}}),
|
||||
|
@ -81,15 +83,15 @@ end
|
|||
plate.register("wood", "Wooden", {
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 2}
|
||||
})
|
||||
}, S("Wooden Pressure Plate"))
|
||||
|
||||
plate.register("stone", "Stone", {
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
groups = {cracky = 3, oddly_breakable_by_hand = 2}
|
||||
})
|
||||
}, S("Stone Pressure Plate"))
|
||||
|
||||
xdecor.register("lever_off", {
|
||||
description = "Lever",
|
||||
description = S("Lever"),
|
||||
tiles = {"xdecor_lever_off.png"},
|
||||
drawtype = "nodebox",
|
||||
node_box = xdecor.pixelbox(16, {{2, 1, 15, 12, 14, 1}}),
|
||||
|
|
Loading…
Reference in New Issue