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

Add missing translations.

This commit is contained in:
Diego Martínez 2017-01-31 02:34:41 -03:00
parent dafc731078
commit 9e2ebe373a
12 changed files with 120 additions and 76 deletions

View File

@ -155,12 +155,16 @@ minetest.register_node("fake_fire:embers", {
}) })
-- CHIMNEYS -- CHIMNEYS
local materials = {"stone", "sandstone"} local materials = {
{ "stone", S("Stone chimney top") },
{ "sandstone", S("Sandstone chimney top") },
}
for _, m in ipairs(materials) do for _, mat in ipairs(materials) do
minetest.register_node("fake_fire:chimney_top_"..m, { local name, desc = unpack(mat)
description = "Chimney Top - "..m, minetest.register_node("fake_fire:chimney_top_"..name, {
tiles = {"default_"..m..".png^chimney_top.png", "default_"..m..".png"}, description = desc,
tiles = {"default_"..name..".png^chimney_top.png", "default_"..name..".png"},
groups = {snappy=3}, groups = {snappy=3},
paramtype = "light", paramtype = "light",
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
@ -181,8 +185,8 @@ for _, m in ipairs(materials) do
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = 'fake_fire:chimney_top_'..m, output = 'fake_fire:chimney_top_'..name,
recipe = {"default:torch", "stairs:slab_"..m} recipe = {"default:torch", "stairs:slab_"..name}
}) })
end end
@ -206,7 +210,7 @@ minetest.register_tool("fake_fire:flint_and_steel", {
minetest.set_node(pointed_thing.above, {name="fake_fire:fake_fire"}) minetest.set_node(pointed_thing.above, {name="fake_fire:fake_fire"})
end end
else else
minetest.chat_send_player(user:get_player_name(), "This area is protected!") minetest.chat_send_player(user:get_player_name(), S("This area is protected!"))
end end
else else
return return

View File

@ -1,25 +1,27 @@
local S = homedecor_i18n.gettext
local clock_sbox = { local clock_sbox = {
type = "fixed", type = "fixed",
fixed = { -8/32, -8/32, 14/32, 8/32, 8/32, 16/32 } fixed = { -8/32, -8/32, 14/32, 8/32, 8/32, 16/32 }
} }
local clock_materials = { local clock_materials = {
{ "plastic", "homedecor_generic_plastic.png" }, { "plastic", S("Plastic analog clock"), "homedecor_generic_plastic.png" },
{ "wood", "default_wood.png" } { "wood", S("Wooden analog clock"), "default_wood.png" }
} }
for i in ipairs(clock_materials) do for _, mat in ipairs(clock_materials) do
local m1 = clock_materials[i][1] local name, desc, tex = unpack(mat)
local m2 = clock_materials[i][2] homedecor.register("analog_clock_"..name, {
homedecor.register("analog_clock_"..m1, { description = desc,
description = "Analog clock ("..m1..")",
mesh = "homedecor_analog_clock.obj", mesh = "homedecor_analog_clock.obj",
tiles = { tiles = {
"homedecor_analog_clock_face.png", "homedecor_analog_clock_face.png",
m2, tex,
"homedecor_analog_clock_back.png" "homedecor_analog_clock_back.png"
}, },
inventory_image = "homedecor_analog_clock_"..m1.."_inv.png", inventory_image = "homedecor_analog_clock_"..name.."_inv.png",
walkable = false, walkable = false,
selection_box = clock_sbox, selection_box = clock_sbox,
groups = {snappy=3}, groups = {snappy=3},
@ -28,7 +30,7 @@ for i in ipairs(clock_materials) do
end end
homedecor.register("digital_clock", { homedecor.register("digital_clock", {
description = "Digital clock", description = S("Digital clock"),
tiles = { tiles = {
"homedecor_digital_clock_edges.png", "homedecor_digital_clock_edges.png",
"homedecor_digital_clock_edges.png", "homedecor_digital_clock_edges.png",
@ -50,7 +52,7 @@ homedecor.register("digital_clock", {
}) })
homedecor.register("alarm_clock", { homedecor.register("alarm_clock", {
description = "Alarm clock", description = S("Alarm clock"),
tiles = { tiles = {
"homedecor_alarm_clock_top.png", "homedecor_alarm_clock_top.png",
"homedecor_alarm_clock_bottom.png", "homedecor_alarm_clock_bottom.png",
@ -77,7 +79,7 @@ local gf_cbox = {
} }
homedecor.register("grandfather_clock", { homedecor.register("grandfather_clock", {
description = "Grandfather Clock", description = S("Grandfather Clock"),
mesh = "homedecor_grandfather_clock.obj", mesh = "homedecor_grandfather_clock.obj",
tiles = { tiles = {
"default_glass.png", "default_glass.png",

View File

@ -1,5 +1,8 @@
local S = homedecor_i18n.gettext
minetest.register_node("homedecor:cobweb_corner", { minetest.register_node("homedecor:cobweb_corner", {
description = "Cobweb", description = S("Cobweb"),
drawtype = "torchlike", drawtype = "torchlike",
tiles = { "homedecor_cobweb_torchlike.png" }, tiles = { "homedecor_cobweb_torchlike.png" },
inventory_image = "homedecor_cobweb.png", inventory_image = "homedecor_cobweb.png",
@ -23,7 +26,7 @@ minetest.register_node("homedecor:cobweb_corner", {
}) })
minetest.register_node("homedecor:cobweb_centered", { minetest.register_node("homedecor:cobweb_centered", {
description = "Cobweb", description = S("Cobweb"),
drawtype = "nodebox", drawtype = "nodebox",
tiles = { "homedecor_cobweb.png" }, tiles = { "homedecor_cobweb.png" },
inventory_image = "homedecor_cobweb.png", inventory_image = "homedecor_cobweb.png",
@ -50,7 +53,7 @@ minetest.register_node("homedecor:cobweb_centered", {
}) })
minetest.register_node("homedecor:cobweb_flat", { minetest.register_node("homedecor:cobweb_flat", {
description = "Cobweb", description = S("Cobweb"),
drawtype = "nodebox", drawtype = "nodebox",
tiles = { "homedecor_cobweb.png" }, tiles = { "homedecor_cobweb.png" },
inventory_image = "homedecor_cobweb.png", inventory_image = "homedecor_cobweb.png",
@ -77,7 +80,7 @@ minetest.register_node("homedecor:cobweb_flat", {
}) })
minetest.register_node("homedecor:cobweb_plantlike", { minetest.register_node("homedecor:cobweb_plantlike", {
description = "Cobweb", description = S("Cobweb"),
drawtype = "plantlike", drawtype = "plantlike",
tiles = { "homedecor_cobweb_plantlike.png" }, tiles = { "homedecor_cobweb_plantlike.png" },
inventory_image = "homedecor_cobweb.png", inventory_image = "homedecor_cobweb.png",

View File

@ -1,5 +1,8 @@
local S = homedecor_i18n.gettext
homedecor.register("power_outlet", { homedecor.register("power_outlet", {
description = "Power Outlet", description = S("Power Outlet"),
tiles = { tiles = {
"homedecor_outlet_edges.png", "homedecor_outlet_edges.png",
"homedecor_outlet_edges.png", "homedecor_outlet_edges.png",
@ -26,7 +29,7 @@ homedecor.register("power_outlet", {
}) })
homedecor.register("light_switch", { homedecor.register("light_switch", {
description = "Light switch", description = S("Light switch"),
tiles = { tiles = {
"homedecor_light_switch_edges.png", "homedecor_light_switch_edges.png",
"homedecor_light_switch_edges.png", "homedecor_light_switch_edges.png",
@ -58,7 +61,7 @@ homedecor.register("light_switch", {
homedecor.register("doorbell", { homedecor.register("doorbell", {
tiles = { "homedecor_doorbell.png" }, tiles = { "homedecor_doorbell.png" },
inventory_image = "homedecor_doorbell_inv.png", inventory_image = "homedecor_doorbell_inv.png",
description = "Doorbell", description = S("Doorbell"),
groups = {snappy=3}, groups = {snappy=3},
walkable = false, walkable = false,
node_box = { node_box = {

View File

@ -1,8 +1,10 @@
local S = homedecor_i18n.gettext
homedecor.register("coatrack_wallmount", { homedecor.register("coatrack_wallmount", {
tiles = { homedecor.plain_wood }, tiles = { homedecor.plain_wood },
inventory_image = "homedecor_coatrack_wallmount_inv.png", inventory_image = "homedecor_coatrack_wallmount_inv.png",
description = "Coatrack (wallmounted)", description = S("Wall-mounted coat rack"),
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
node_box = { node_box = {
@ -28,7 +30,7 @@ homedecor.register("coat_tree", {
"homedecor_generic_wood_old.png" "homedecor_generic_wood_old.png"
}, },
inventory_image = "homedecor_coatrack_inv.png", inventory_image = "homedecor_coatrack_inv.png",
description = "Coat tree", description = S("Coat tree"),
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
expand = { top="placeholder" }, expand = { top="placeholder" },
@ -40,9 +42,16 @@ homedecor.register("coat_tree", {
on_rotate = screwdriver.rotate_simple on_rotate = screwdriver.rotate_simple
}) })
for _, color in pairs({ "green", "brown", "grey" }) do local mat_colors = {
{ "green", S("Green welcome mat") },
{ "brown", S("Brown welcome mat") },
{ "grey", S("Grey welcome mat") },
}
for _, mat in ipairs(mat_colors) do
local color, desc = unpack(mat)
homedecor.register("welcome_mat_"..color, { homedecor.register("welcome_mat_"..color, {
description = "Welcome Mat ("..color..")", description = desc,
tiles = { tiles = {
"homedecor_welcome_mat_"..color..".png", "homedecor_welcome_mat_"..color..".png",
"homedecor_welcome_mat_bottom.png", "homedecor_welcome_mat_bottom.png",

View File

@ -1,4 +1,6 @@
local S = homedecor_i18n.gettext
local cutlery_cbox = { local cutlery_cbox = {
type = "fixed", type = "fixed",
fixed = { fixed = {
@ -12,7 +14,7 @@ homedecor.register("cutlery_set", {
mesh = "homedecor_cutlery_set.obj", mesh = "homedecor_cutlery_set.obj",
tiles = { "homedecor_cutlery_set.png" }, tiles = { "homedecor_cutlery_set.png" },
inventory_image = "homedecor_cutlery_set_inv.png", inventory_image = "homedecor_cutlery_set_inv.png",
description = "Cutlery set", description = S("Cutlery set"),
groups = {snappy=3}, groups = {snappy=3},
selection_box = cutlery_cbox, selection_box = cutlery_cbox,
walkable = false, walkable = false,
@ -33,14 +35,19 @@ local fbottle_cbox = {
} }
} }
local bottle_colors = {"brown", "green"} local bottle_colors = {
{ "brown", S("Brown bottle"), S("Four brown bottles") },
{ "green", S("Green bottle"), S("Four green bottles") },
}
for _, b in ipairs(bottle_colors) do for _, b in ipairs(bottle_colors) do
homedecor.register("bottle_"..b, { local name, desc, desc4 = unpack(b)
tiles = { "homedecor_bottle_"..b..".png" },
inventory_image = "homedecor_bottle_"..b.."_inv.png", homedecor.register("bottle_"..name, {
description = "Bottle ("..b..")", tiles = { "homedecor_bottle_"..name..".png" },
inventory_image = "homedecor_bottle_"..name.."_inv.png",
description = desc,
mesh = "homedecor_bottle.obj", mesh = "homedecor_bottle.obj",
walkable = false, walkable = false,
groups = {snappy=3}, groups = {snappy=3},
@ -50,13 +57,13 @@ for _, b in ipairs(bottle_colors) do
-- 4-bottle sets -- 4-bottle sets
homedecor.register("4_bottles_"..b, { homedecor.register("4_bottles_"..name, {
tiles = { tiles = {
"homedecor_bottle_"..b..".png", "homedecor_bottle_"..name..".png",
"homedecor_bottle_"..b..".png" "homedecor_bottle_"..name..".png"
}, },
inventory_image = "homedecor_4_bottles_"..b.."_inv.png", inventory_image = "homedecor_4_bottles_"..name.."_inv.png",
description = "Four "..b.." bottles", description = desc4,
mesh = "homedecor_4_bottles.obj", mesh = "homedecor_4_bottles.obj",
walkable = false, walkable = false,
groups = {snappy=3}, groups = {snappy=3},
@ -71,7 +78,7 @@ homedecor.register("4_bottles_multi", {
"homedecor_bottle_green.png" "homedecor_bottle_green.png"
}, },
inventory_image = "homedecor_4_bottles_multi_inv.png", inventory_image = "homedecor_4_bottles_multi_inv.png",
description = "Four misc brown/green bottles", description = S("Four misc brown/green bottles"),
mesh = "homedecor_4_bottles.obj", mesh = "homedecor_4_bottles.obj",
groups = {snappy=3}, groups = {snappy=3},
walkable = false, walkable = false,
@ -81,7 +88,7 @@ homedecor.register("4_bottles_multi", {
local wine_cbox = homedecor.nodebox.slab_z(-0.75) local wine_cbox = homedecor.nodebox.slab_z(-0.75)
homedecor.register("wine_rack", { homedecor.register("wine_rack", {
description = "Wine Rack", description = S("Wine rack"),
mesh = "homedecor_wine_rack.obj", mesh = "homedecor_wine_rack.obj",
tiles = { tiles = {
"homedecor_generic_wood_red.png", "homedecor_generic_wood_red.png",
@ -98,7 +105,7 @@ homedecor.register("wine_rack", {
}) })
homedecor.register("dartboard", { homedecor.register("dartboard", {
description = "Dartboard", description = S("Dartboard"),
mesh = "homedecor_dartboard.obj", mesh = "homedecor_dartboard.obj",
tiles = { "homedecor_dartboard.png" }, tiles = { "homedecor_dartboard.png" },
inventory_image = "homedecor_dartboard_inv.png", inventory_image = "homedecor_dartboard_inv.png",
@ -114,7 +121,7 @@ homedecor.register("dartboard", {
}) })
homedecor.register("beer_tap", { homedecor.register("beer_tap", {
description = "Beer tap", description = S("Beer tap"),
mesh = "homedecor_beer_taps.obj", mesh = "homedecor_beer_taps.obj",
tiles = { tiles = {
"homedecor_generic_metal_bright.png", "homedecor_generic_metal_bright.png",
@ -137,9 +144,11 @@ homedecor.register("beer_tap", {
wielditem:take_item() wielditem:take_item()
puncher:set_wielded_item(wielditem) puncher:set_wielded_item(wielditem)
inv:add_item("main", "homedecor:beer_mug 1") inv:add_item("main", "homedecor:beer_mug 1")
minetest.chat_send_player(puncher:get_player_name(), "Ahh, a frosty cold beer - look in your inventory for it!") minetest.chat_send_player(puncher:get_player_name(),
S("Ahh, a frosty cold beer - look in your inventory for it!"))
else else
minetest.chat_send_player(puncher:get_player_name(), "No room in your inventory to add a beer mug!") minetest.chat_send_player(puncher:get_player_name(),
S("No room in your inventory to add a beer mug!"))
end end
end end
end end
@ -160,7 +169,7 @@ local beer_cbox = {
} }
homedecor.register("beer_mug", { homedecor.register("beer_mug", {
description = "Beer mug", description = S("Beer mug"),
drawtype = "mesh", drawtype = "mesh",
mesh = "homedecor_beer_mug.obj", mesh = "homedecor_beer_mug.obj",
tiles = { "homedecor_beer_mug.png" }, tiles = { "homedecor_beer_mug.png" },
@ -178,7 +187,7 @@ local svm_cbox = {
} }
homedecor.register("soda_machine", { homedecor.register("soda_machine", {
description = "Soda Vending Machine", description = S("Soda vending machine"),
mesh = "homedecor_soda_machine.obj", mesh = "homedecor_soda_machine.obj",
tiles = {"homedecor_soda_machine.png"}, tiles = {"homedecor_soda_machine.png"},
groups = {snappy=3}, groups = {snappy=3},
@ -201,7 +210,7 @@ homedecor.register("soda_machine", {
pos=pos, max_hear_distance = 5 pos=pos, max_hear_distance = 5
}) })
else else
minetest.chat_send_player(puncher:get_player_name(), "Please insert a coin in the machine.") minetest.chat_send_player(puncher:get_player_name(), S("Please insert a coin in the machine."))
end end
end end
}) })

View File

@ -1,4 +1,6 @@
local S = homedecor_i18n.gettext
-- vectors to place one node next to or behind another -- vectors to place one node next to or behind another
homedecor.fdir_to_right = { homedecor.fdir_to_right = {
@ -53,7 +55,7 @@ homedecor.wall_fdir_to_fwd = {
local placeholder_node = "homedecor:expansion_placeholder" local placeholder_node = "homedecor:expansion_placeholder"
minetest.register_node(placeholder_node, { minetest.register_node(placeholder_node, {
description = "Expansion placeholder (you hacker you!)", description = S("Expansion placeholder (you hacker you!)"),
groups = { not_in_creative_inventory=1 }, groups = { not_in_creative_inventory=1 },
drawtype = "airlike", drawtype = "airlike",
paramtype = "light", paramtype = "light",
@ -193,13 +195,15 @@ function homedecor.bed_expansion(pos, placer, itemstack, pointed_thing, trybunks
local placer_name = placer:get_player_name() local placer_name = placer:get_player_name()
if not (def and def.buildable_to) then if not (def and def.buildable_to) then
minetest.chat_send_player( placer:get_player_name(), "Not enough room - the space for the headboard is occupied!" ) minetest.chat_send_player( placer:get_player_name(),
S("Not enough room - the space for the headboard is occupied!"))
minetest.set_node(pos, {name = "air"}) minetest.set_node(pos, {name = "air"})
return true return true
end end
if minetest.is_protected(forwardpos, placer_name) then if minetest.is_protected(forwardpos, placer_name) then
minetest.chat_send_player( placer:get_player_name(), "Someone already owns the spot where the headboard goes." ) minetest.chat_send_player( placer:get_player_name(),
S("Someone already owns the spot where the headboard goes."))
return true return true
end end
@ -270,12 +274,12 @@ function homedecor.place_banister(itemstack, placer, pointed_thing)
local placer_name = placer:get_player_name() local placer_name = placer:get_player_name()
if not (adef and adef.buildable_to) then if not (adef and adef.buildable_to) then
minetest.chat_send_player(placer_name, "Not enough room - the upper space is occupied!" ) minetest.chat_send_player(placer_name, S("Not enough room - the upper space is occupied!" ))
return itemstack return itemstack
end end
if minetest.is_protected(abovepos, placer_name) then if minetest.is_protected(abovepos, placer_name) then
minetest.chat_send_player(placer_name, "Someone already owns that spot." ) minetest.chat_send_player(placer_name, S("Someone already owns that spot."))
return itemstack return itemstack
end end

View File

@ -96,7 +96,7 @@ local cp_cbox = {
} }
homedecor.register("copper_pans", { homedecor.register("copper_pans", {
description = "Copper pans", description = S("Copper pans"),
mesh = "homedecor_copper_pans.obj", mesh = "homedecor_copper_pans.obj",
tiles = { "homedecor_polished_copper.png" }, tiles = { "homedecor_polished_copper.png" },
inventory_image = "homedecor_copper_pans_inv.png", inventory_image = "homedecor_copper_pans_inv.png",
@ -115,7 +115,7 @@ homedecor.register("kitchen_faucet", {
mesh = "homedecor_kitchen_faucet.obj", mesh = "homedecor_kitchen_faucet.obj",
tiles = { "homedecor_generic_metal_bright.png" }, tiles = { "homedecor_generic_metal_bright.png" },
inventory_image = "homedecor_kitchen_faucet_inv.png", inventory_image = "homedecor_kitchen_faucet_inv.png",
description = "Kitchen Faucet", description = S("Kitchen Faucet"),
groups = {snappy=3}, groups = {snappy=3},
selection_box = kf_cbox, selection_box = kf_cbox,
walkable = false, walkable = false,

View File

@ -331,7 +331,7 @@ homedecor.register("ceiling_lantern", {
tiles = { "homedecor_light.png", "homedecor_generic_metal_wrought_iron.png" }, tiles = { "homedecor_light.png", "homedecor_generic_metal_wrought_iron.png" },
use_texture_alpha = true, use_texture_alpha = true,
inventory_image = "homedecor_ceiling_lantern_inv.png", inventory_image = "homedecor_ceiling_lantern_inv.png",
description = "Ceiling Lantern", description = S("Ceiling Lantern"),
groups = {snappy=3}, groups = {snappy=3},
light_source = 11, light_source = 11,
selection_box = cl_cbox, selection_box = cl_cbox,

View File

@ -23,7 +23,7 @@ local desk_cbox = {
fixed = { -0.5, -0.5, -0.5, 1.5, 0.5, 0.5 } fixed = { -0.5, -0.5, -0.5, 1.5, 0.5, 0.5 }
} }
homedecor.register("desk", { homedecor.register("desk", {
description = "Desk", description = S("Desk"),
mesh = "homedecor_desk.obj", mesh = "homedecor_desk.obj",
tiles = { tiles = {
homedecor.plain_wood, homedecor.plain_wood,
@ -49,7 +49,7 @@ local globe_cbox = {
} }
homedecor.register("desk_globe", { homedecor.register("desk_globe", {
description = "Desk globe", description = S("Desk globe"),
mesh = "homedecor_desk_globe.obj", mesh = "homedecor_desk_globe.obj",
tiles = { tiles = {
"homedecor_generic_wood_red.png", "homedecor_generic_wood_red.png",
@ -65,7 +65,7 @@ homedecor.register("desk_globe", {
}) })
homedecor.register("calendar", { homedecor.register("calendar", {
description = "Calendar", description = S("Calendar"),
mesh = "homedecor_calendar.obj", mesh = "homedecor_calendar.obj",
tiles = {"homedecor_calendar.png"}, tiles = {"homedecor_calendar.png"},
inventory_image = "homedecor_calendar_inv.png", inventory_image = "homedecor_calendar_inv.png",
@ -81,11 +81,11 @@ homedecor.register("calendar", {
groups = {choppy=2,attached_node=1}, groups = {choppy=2,attached_node=1},
legacy_wallmounted = true, legacy_wallmounted = true,
sounds = default.node_sound_defaults(), sounds = default.node_sound_defaults(),
infotext = "Date (right-click to update):\n" .. os.date("%Y-%m-%d"), -- ISO 8601 format infotext = S("Date (right-click to update):\n@1", os.date("%Y-%m-%d")), -- ISO 8601 format
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local date = os.date("%Y-%m-%d") local date = os.date("%Y-%m-%d")
meta:set_string("infotext", "Date (right-click to update):\n"..date) meta:set_string("infotext", S("Date (right-click to update):\n@1", date))
return itemstack return itemstack
end end
}) })
@ -104,12 +104,18 @@ local ofchairs_cbox = {
} }
} }
for _, c in pairs({"basic", "upscale"}) do local chairs = {
homedecor.register("office_chair_"..c, { { "basic", S("Basic office chair") },
description = "Office chair ("..c..")", { "upscale", S("Upscale office chair") },
}
for _, c in pairs(chairs) do
local name, desc = unpack(c)
homedecor.register("office_chair_"..name, {
description = desc,
drawtype = "mesh", drawtype = "mesh",
tiles = { "homedecor_office_chair_"..c..".png" }, tiles = { "homedecor_office_chair_"..name..".png" },
mesh = "homedecor_office_chair_"..c..".obj", mesh = "homedecor_office_chair_"..name..".obj",
groups = { snappy = 3 }, groups = { snappy = 3 },
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = ofchairs_sbox, selection_box = ofchairs_sbox,

View File

@ -1,4 +1,6 @@
local S = homedecor_i18n.gettext
local tg_cbox = { local tg_cbox = {
type = "fixed", type = "fixed",
fixed = { -0.35, -0.5, -0.35, 0.35, 0.4, 0.35 } fixed = { -0.35, -0.5, -0.35, 0.35, 0.4, 0.35 }
@ -9,7 +11,7 @@ homedecor.register("trash_can_green", {
mesh = "homedecor_trash_can_green.obj", mesh = "homedecor_trash_can_green.obj",
tiles = { "homedecor_pool_table_baize.png" }, tiles = { "homedecor_pool_table_baize.png" },
inventory_image = "homedecor_trash_can_green_inv.png", inventory_image = "homedecor_trash_can_green_inv.png",
description = "Trash Can (green)", description = S("Green Trash Can"),
groups = {snappy=3}, groups = {snappy=3},
selection_box = tg_cbox, selection_box = tg_cbox,
collision_box = tg_cbox, collision_box = tg_cbox,
@ -29,7 +31,7 @@ homedecor.register("trash_can_green_open", {
on_punch = function(pos, node, puncher, pointed_thing) on_punch = function(pos, node, puncher, pointed_thing)
minetest.set_node(pos, {name = "homedecor:trash_can_green", param2 = node.param2}) minetest.set_node(pos, {name = "homedecor:trash_can_green", param2 = node.param2})
end, end,
infotext="Trash Can", infotext=S("Trash Can"),
inventory= { inventory= {
size = 9, size = 9,
formspec = "size[8,9]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots .. formspec = "size[8,9]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots ..
@ -57,7 +59,7 @@ homedecor.register("trash_can", {
mesh = "homedecor_trash_can.obj", mesh = "homedecor_trash_can.obj",
tiles = { "homedecor_trash_can.png" }, tiles = { "homedecor_trash_can.png" },
inventory_image = "homedecor_trash_can_inv.png", inventory_image = "homedecor_trash_can_inv.png",
description = "Trash Can (small)", description = S("Small Trash Can"),
groups = {snappy=3}, groups = {snappy=3},
selection_box = trash_cbox, selection_box = trash_cbox,
collision_box = trash_cbox, collision_box = trash_cbox,

View File

@ -1,4 +1,6 @@
local S = homedecor_i18n.gettext
local wd_cbox = { local wd_cbox = {
type = "fixed", type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 } fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
@ -12,14 +14,14 @@ homedecor.register("wardrobe", {
"homedecor_wardrobe_doors.png" "homedecor_wardrobe_doors.png"
}, },
inventory_image = "homedecor_wardrobe_inv.png", inventory_image = "homedecor_wardrobe_inv.png",
description = "Wardrobe", description = S("Wardrobe"),
groups = {snappy=3}, groups = {snappy=3},
selection_box = wd_cbox, selection_box = wd_cbox,
collision_box = wd_cbox, collision_box = wd_cbox,
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
expand = { top="placeholder" }, expand = { top="placeholder" },
on_rotate = screwdriver.rotate_simple, on_rotate = screwdriver.rotate_simple,
infotext = "Wardrobe", infotext = S("Wardrobe"),
inventory = { inventory = {
size = 10 size = 10
}, },
@ -34,9 +36,9 @@ homedecor.register("wardrobe", {
"image_button_exit["..(i-1)..".5,2;1.1,2;homedecor_clothes_fe"..skins[i].."_preview.png;fe"..skins[i]..";]" "image_button_exit["..(i-1)..".5,2;1.1,2;homedecor_clothes_fe"..skins[i].."_preview.png;fe"..skins[i]..";]"
end end
meta:set_string("formspec", "size[5.5,8.5]"..default.gui_bg..default.gui_bg_img..default.gui_slots.. meta:set_string("formspec", "size[5.5,8.5]"..default.gui_bg..default.gui_bg_img..default.gui_slots..
"vertlabel[0,0.5;CLOTHES]".. "vertlabel[0,0.5;"..minetest.formspec_escape(S("Clothes")).."]"..
clothes_strings.. clothes_strings..
"vertlabel[0,5.2;STORAGE]".. "vertlabel[0,5.2;"..minetest.formspec_escape(S("Storage")).."]"..
"list[current_name;main;0.5,4.5;5,2;]".. "list[current_name;main;0.5,4.5;5,2;]"..
"list[current_player;main;0.5,6.8;5,2;]" .. "list[current_player;main;0.5,6.8;5,2;]" ..
"listring[]") "listring[]")