Add missing translations.

This commit is contained in:
Diego Martínez 2017-01-29 18:41:03 -03:00
parent dc7b60c11f
commit 27e1175fb0
25 changed files with 162 additions and 111 deletions

View File

@ -1,2 +1,3 @@
default default
moreblocks? homedecor_i18n
moreblocks?

View File

@ -1,6 +1,9 @@
local S = homedecor_i18n.gettext
minetest.register_node("building_blocks:Adobe", { minetest.register_node("building_blocks:Adobe", {
tiles = {"building_blocks_Adobe.png"}, tiles = {"building_blocks_Adobe.png"},
description = "Adobe", description = S("Adobe"),
is_ground_content = true, is_ground_content = true,
groups = {crumbly=3}, groups = {crumbly=3},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
@ -8,7 +11,7 @@ minetest.register_node("building_blocks:Adobe", {
minetest.register_node("building_blocks:Roofing", { minetest.register_node("building_blocks:Roofing", {
tiles = {"building_blocks_Roofing.png"}, tiles = {"building_blocks_Roofing.png"},
is_ground_content = true, is_ground_content = true,
description = "Roof block", description = S("Roof block"),
groups = {snappy=3}, groups = {snappy=3},
}) })
minetest.register_craft({ minetest.register_craft({
@ -150,7 +153,7 @@ minetest.register_craft({
}) })
minetest.register_node("building_blocks:smoothglass", { minetest.register_node("building_blocks:smoothglass", {
drawtype = "glasslike", drawtype = "glasslike",
description = "Streak Free Glass", description = S("Streak Free Glass"),
tiles = {"building_blocks_sglass.png"}, tiles = {"building_blocks_sglass.png"},
inventory_image = minetest.inventorycube("building_blocks_sglass.png"), inventory_image = minetest.inventorycube("building_blocks_sglass.png"),
paramtype = "light", paramtype = "light",
@ -161,7 +164,7 @@ minetest.register_node("building_blocks:smoothglass", {
}) })
minetest.register_node("building_blocks:grate", { minetest.register_node("building_blocks:grate", {
drawtype = "glasslike", drawtype = "glasslike",
description = "Grate", description = S("Grate"),
tiles = {"building_blocks_grate.png"}, tiles = {"building_blocks_grate.png"},
inventory_image = minetest.inventorycube("building_blocks_grate.png"), inventory_image = minetest.inventorycube("building_blocks_grate.png"),
paramtype = "light", paramtype = "light",
@ -171,7 +174,7 @@ minetest.register_node("building_blocks:grate", {
}) })
minetest.register_node("building_blocks:Fireplace", { minetest.register_node("building_blocks:Fireplace", {
description = "Fireplace", description = S("Fireplace"),
tiles = { tiles = {
"building_blocks_cast_iron.png", "building_blocks_cast_iron.png",
"building_blocks_cast_iron.png", "building_blocks_cast_iron.png",
@ -188,7 +191,7 @@ minetest.register_node("building_blocks:Fireplace", {
minetest.register_node("building_blocks:woodglass", { minetest.register_node("building_blocks:woodglass", {
drawtype = "glasslike", drawtype = "glasslike",
description = "Wood Framed Glass", description = S("Wood Framed Glass"),
tiles = {"building_blocks_wglass.png"}, tiles = {"building_blocks_wglass.png"},
inventory_image = minetest.inventorycube("building_blocks_wglass.png"), inventory_image = minetest.inventorycube("building_blocks_wglass.png"),
paramtype = "light", paramtype = "light",
@ -199,7 +202,7 @@ minetest.register_node("building_blocks:woodglass", {
}) })
minetest.register_node("building_blocks:terrycloth_towel", { minetest.register_node("building_blocks:terrycloth_towel", {
drawtype = "raillike", drawtype = "raillike",
description = "Terrycloth towel", description = S("Terrycloth towel"),
tiles = {"building_blocks_towel.png"}, tiles = {"building_blocks_towel.png"},
inventory_image = "building_blocks_towel_inv.png", inventory_image = "building_blocks_towel_inv.png",
paramtype = "light", paramtype = "light",
@ -215,7 +218,7 @@ minetest.register_node("building_blocks:terrycloth_towel", {
}) })
minetest.register_node("building_blocks:Tarmac_spread", { minetest.register_node("building_blocks:Tarmac_spread", {
drawtype = "raillike", drawtype = "raillike",
description = "Tarmac Spread", description = S("Tarmac Spread"),
tiles = {"building_blocks_tar.png"}, tiles = {"building_blocks_tar.png"},
inventory_image = "building_blocks_tar_spread_inv.png", inventory_image = "building_blocks_tar_spread_inv.png",
paramtype = "light", paramtype = "light",
@ -232,7 +235,7 @@ minetest.register_node("building_blocks:Tarmac_spread", {
}) })
minetest.register_node("building_blocks:BWtile", { minetest.register_node("building_blocks:BWtile", {
drawtype = "raillike", drawtype = "raillike",
description = "Chess board tiling", description = S("Chess board tiling"),
tiles = {"building_blocks_BWtile.png"}, tiles = {"building_blocks_BWtile.png"},
inventory_image = "building_blocks_bwtile_inv.png", inventory_image = "building_blocks_bwtile_inv.png",
paramtype = "light", paramtype = "light",
@ -248,7 +251,9 @@ minetest.register_node("building_blocks:BWtile", {
}) })
minetest.register_node("building_blocks:brobble_spread", { minetest.register_node("building_blocks:brobble_spread", {
drawtype = "raillike", drawtype = "raillike",
description = "Brobble Spread", -- Translators: "Brobble" is a portmanteau of "Brick" and "Cobble".
-- Translate however you see fit.
description = S("Brobble Spread"),
tiles = {"building_blocks_brobble.png"}, tiles = {"building_blocks_brobble.png"},
inventory_image = "building_blocks_brobble_spread_inv.png", inventory_image = "building_blocks_brobble_spread_inv.png",
paramtype = "light", paramtype = "light",
@ -264,7 +269,7 @@ minetest.register_node("building_blocks:brobble_spread", {
}) })
minetest.register_node("building_blocks:gravel_spread", { minetest.register_node("building_blocks:gravel_spread", {
drawtype = "raillike", drawtype = "raillike",
description = "Gravel Spread", description = S("Gravel Spread"),
tiles = {"default_gravel.png"}, tiles = {"default_gravel.png"},
inventory_image = "building_blocks_gravel_spread_inv.png", inventory_image = "building_blocks_gravel_spread_inv.png",
paramtype = "light", paramtype = "light",
@ -285,7 +290,7 @@ minetest.register_node("building_blocks:gravel_spread", {
minetest.register_node("building_blocks:hardwood", { minetest.register_node("building_blocks:hardwood", {
tiles = {"building_blocks_hardwood.png"}, tiles = {"building_blocks_hardwood.png"},
is_ground_content = true, is_ground_content = true,
description = "Hardwood", description = S("Hardwood"),
groups = {choppy=1,flammable=1}, groups = {choppy=1,flammable=1},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
}) })
@ -448,44 +453,44 @@ else
bb_stairs.register_stair_and_slab("marble","building_blocks:Marble", bb_stairs.register_stair_and_slab("marble","building_blocks:Marble",
{cracky=3}, {cracky=3},
{"building_blocks_marble.png"}, {"building_blocks_marble.png"},
"Marble stair", S("Marble stair"),
"Marble slab" S("Marble slab")
) )
bb_stairs.register_stair_and_slab("hardwood","building_blocks:hardwood", bb_stairs.register_stair_and_slab("hardwood","building_blocks:hardwood",
{choppy=1,flammable=1}, {choppy=1,flammable=1},
{"building_blocks_hardwood.png"}, {"building_blocks_hardwood.png"},
"Hardwood stair", S("Hardwood stair"),
"Hardwood slab" S("Hardwood slab")
) )
bb_stairs.register_stair_and_slab("fakegrass","building_blocks:fakegrass", bb_stairs.register_stair_and_slab("fakegrass","building_blocks:fakegrass",
{crumbly=3}, {crumbly=3},
{"default_grass.png"}, {"default_grass.png"},
"Grass stair", S("Grass stair"),
"Grass slab" S("Grass slab")
) )
bb_stairs.register_stair_and_slab("tar","building_blocks:Tar", bb_stairs.register_stair_and_slab("tar","building_blocks:Tar",
{crumbly=1}, {crumbly=1},
{"building_blocks_tar.png"}, {"building_blocks_tar.png"},
"Tar stair", S("Tar stair"),
"Tar slab" S("Tar slab")
) )
bb_stairs.register_stair_and_slab("grate","building_blocks:grate", bb_stairs.register_stair_and_slab("grate","building_blocks:grate",
{cracky=1}, {cracky=1},
{"building_blocks_grate.png"}, {"building_blocks_grate.png"},
"Grate Stair", S("Grate Stair"),
"Grate Slab" S("Grate Slab")
) )
bb_stairs.register_stair_and_slab("Adobe", "building_blocks:Adobe", bb_stairs.register_stair_and_slab("Adobe", "building_blocks:Adobe",
{crumbly=3}, {crumbly=3},
{"building_blocks_Adobe.png"}, {"building_blocks_Adobe.png"},
"Adobe stair", S("Adobe stair"),
"Adobe slab" S("Adobe slab")
) )
bb_stairs.register_stair_and_slab("Roofing", "building_blocks:Roofing", bb_stairs.register_stair_and_slab("Roofing", "building_blocks:Roofing",
{snappy=3}, {snappy=3},
{"building_blocks_Roofing.png"}, {"building_blocks_Roofing.png"},
"Roofing stair", S("Roofing stair"),
"Roofing slab" S("Roofing slab")
) )
end end
@ -537,14 +542,14 @@ minetest.register_alias("building_blocks:faggot", "building_blocks:sticks")
minetest.register_alias("marble", "building_blocks:Marble") minetest.register_alias("marble", "building_blocks:Marble")
minetest.register_node("building_blocks:Tar", { minetest.register_node("building_blocks:Tar", {
description = "Tar", description = S("Tar"),
tiles = {"building_blocks_tar.png"}, tiles = {"building_blocks_tar.png"},
is_ground_content = true, is_ground_content = true,
groups = {crumbly=1, tar_block = 1}, groups = {crumbly=1, tar_block = 1},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
}) })
minetest.register_node("building_blocks:Marble", { minetest.register_node("building_blocks:Marble", {
description = "Marble", description = S("Marble"),
tiles = {"building_blocks_marble.png"}, tiles = {"building_blocks_marble.png"},
is_ground_content = true, is_ground_content = true,
groups = {cracky=3, marble = 1}, groups = {cracky=3, marble = 1},
@ -568,7 +573,7 @@ minetest.register_craft({
}) })
minetest.register_tool("building_blocks:knife", { minetest.register_tool("building_blocks:knife", {
description = "Tar Knife", description = S("Tar Knife"),
inventory_image = "building_blocks_knife.png", inventory_image = "building_blocks_knife.png",
tool_capabilities = { tool_capabilities = {
max_drop_level=0, max_drop_level=0,
@ -590,7 +595,7 @@ minetest.register_craft({
if not minetest.get_modpath("technic") then if not minetest.get_modpath("technic") then
minetest.register_node( ":technic:granite", { minetest.register_node( ":technic:granite", {
description = "Granite", description = S("Granite"),
tiles = { "technic_granite.png" }, tiles = { "technic_granite.png" },
is_ground_content = true, is_ground_content = true,
groups = {cracky=1}, groups = {cracky=1},
@ -608,7 +613,7 @@ if not minetest.get_modpath("technic") then
if minetest.get_modpath("moreblocks") then if minetest.get_modpath("moreblocks") then
stairsplus:register_all("technic", "granite", "technic:granite", { stairsplus:register_all("technic", "granite", "technic:granite", {
description="Granite", description=S("Granite"),
groups={cracky=1, not_in_creative_inventory=1}, groups={cracky=1, not_in_creative_inventory=1},
tiles={"technic_granite.png"}, tiles={"technic_granite.png"},
}) })

View File

@ -1 +1,2 @@
default default
homedecor

View File

@ -1,3 +1,6 @@
local S = homedecor_i18n.gettext
local chains_sbox = { local chains_sbox = {
type = "fixed", type = "fixed",
fixed = { -0.1, -0.625, -0.1, 0.1, 0.5, 0.1 } fixed = { -0.1, -0.625, -0.1, 0.1, 0.5, 0.1 }
@ -12,7 +15,7 @@ local topchains_sbox = {
} }
minetest.register_node("chains:chain", { minetest.register_node("chains:chain", {
description = "Hanging chain (wrought iron)", description = S("Hanging chain (wrought iron)"),
drawtype = "mesh", drawtype = "mesh",
mesh = "chains.obj", mesh = "chains.obj",
tiles = {"chains_wrought_iron.png"}, tiles = {"chains_wrought_iron.png"},
@ -26,7 +29,7 @@ minetest.register_node("chains:chain", {
}) })
minetest.register_node("chains:chain_brass", { minetest.register_node("chains:chain_brass", {
description = "Hanging chain (brass)", description = S("Hanging chain (brass)"),
drawtype = "mesh", drawtype = "mesh",
mesh = "chains.obj", mesh = "chains.obj",
tiles = {"chains_brass.png"}, tiles = {"chains_brass.png"},
@ -40,7 +43,7 @@ minetest.register_node("chains:chain_brass", {
}) })
minetest.register_node("chains:chain_top", { minetest.register_node("chains:chain_top", {
description = "Hanging chain (ceiling mount, wrought iron)", description = S("Hanging chain (ceiling mount, wrought iron)"),
drawtype = "mesh", drawtype = "mesh",
mesh = "top_chains.obj", mesh = "top_chains.obj",
tiles = {"chains_wrought_iron.png"}, tiles = {"chains_wrought_iron.png"},
@ -54,7 +57,7 @@ minetest.register_node("chains:chain_top", {
}) })
minetest.register_node("chains:chain_top_brass", { minetest.register_node("chains:chain_top_brass", {
description = "Hanging chain (ceiling mount, brass)", description = S("Hanging chain (ceiling mount, brass)"),
drawtype = "mesh", drawtype = "mesh",
mesh = "top_chains.obj", mesh = "top_chains.obj",
tiles = {"chains_brass.png"}, tiles = {"chains_brass.png"},
@ -68,7 +71,7 @@ minetest.register_node("chains:chain_top_brass", {
}) })
minetest.register_node("chains:chandelier", { minetest.register_node("chains:chandelier", {
description = "Chandelier (wrought iron)", description = S("Chandelier (wrought iron)"),
paramtype = "light", paramtype = "light",
light_source = default.LIGHT_MAX-2, light_source = default.LIGHT_MAX-2,
walkable = false, walkable = false,
@ -95,7 +98,7 @@ minetest.register_node("chains:chandelier", {
}) })
minetest.register_node("chains:chandelier_brass", { minetest.register_node("chains:chandelier_brass", {
description = "Chandelier (brass)", description = S("Chandelier (brass)"),
paramtype = "light", paramtype = "light",
light_source = default.LIGHT_MAX-2, light_source = default.LIGHT_MAX-2,
walkable = false, walkable = false,

View File

@ -1,3 +1,6 @@
local S = homedecor_i18n.gettext
-- Amiga 500 lookalike -- Amiga 500 lookalike
computer.register("computer:shefriendSOO", { computer.register("computer:shefriendSOO", {
description = "SheFriendSOO", description = "SheFriendSOO",
@ -157,7 +160,7 @@ local mo_sbox = {
} }
minetest.register_node("computer:monitor", { minetest.register_node("computer:monitor", {
description = "Monitor and keyboard", description = S("Monitor and keyboard"),
inventory_image = "computer_monitor_inv.png", inventory_image = "computer_monitor_inv.png",
drawtype = "mesh", drawtype = "mesh",
mesh = "computer_monitor.obj", mesh = "computer_monitor.obj",
@ -175,7 +178,6 @@ minetest.register_node("computer:monitor", {
}) })
minetest.register_node("computer:monitor_on", { minetest.register_node("computer:monitor_on", {
description = "Monitor and keyboard",
drawtype = "mesh", drawtype = "mesh",
mesh = "computer_monitor.obj", mesh = "computer_monitor.obj",
tiles = {"monitor_display.png^[transformFX", "monitor_plastic.png", "computer_black.png", "monitor_plastic.png"}, tiles = {"monitor_display.png^[transformFX", "monitor_plastic.png", "computer_black.png", "monitor_plastic.png"},
@ -200,7 +202,7 @@ minetest.register_alias("computer:monitor_desktop", "computer:monitor")
--WIFI Router (linksys look-a-like) --WIFI Router (linksys look-a-like)
minetest.register_node("computer:router", { minetest.register_node("computer:router", {
description = "WIFI Router", description = S("WIFI Router"),
inventory_image = "computer_router_inv.png", inventory_image = "computer_router_inv.png",
tiles = {"computer_router_t.png","computer_router_bt.png","computer_router_l.png","computer_router_r.png","computer_router_b.png", tiles = {"computer_router_t.png","computer_router_bt.png","computer_router_l.png","computer_router_r.png","computer_router_b.png",
{name="computer_router_f_animated.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0}},}, --"computer_router_f.png"}, {name="computer_router_f_animated.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0}},}, --"computer_router_f.png"},
@ -228,7 +230,7 @@ local pct_cbox = {
--Modern PC Tower --Modern PC Tower
minetest.register_node("computer:tower", { minetest.register_node("computer:tower", {
description = "Computer Tower", description = S("Computer Tower"),
inventory_image = "computer_tower_inv.png", inventory_image = "computer_tower_inv.png",
drawtype = "mesh", drawtype = "mesh",
mesh = "computer_tower.obj", mesh = "computer_tower.obj",
@ -245,7 +247,7 @@ minetest.register_alias("computer:tower_on", "computer:tower")
-- Printer/scaner combo -- Printer/scaner combo
minetest.register_node("computer:printer", { minetest.register_node("computer:printer", {
description = "Printer Scaner Combo", description = S("Printer-Scanner Combo"),
inventory_image = "computer_printer_inv.png", inventory_image = "computer_printer_inv.png",
tiles = {"computer_printer_t.png","computer_printer_bt.png","computer_printer_l.png", tiles = {"computer_printer_t.png","computer_printer_bt.png","computer_printer_l.png",
"computer_printer_r.png","computer_printer_b.png","computer_printer_f.png"}, "computer_printer_r.png","computer_printer_b.png","computer_printer_f.png"},
@ -273,7 +275,7 @@ minetest.register_node("computer:printer", {
--Rack Server --Rack Server
minetest.register_node("computer:server", { minetest.register_node("computer:server", {
drawtype = "nodebox", drawtype = "nodebox",
description = "Rack Server", description = S("Rack Server"),
tiles = { tiles = {
'computer_server_t.png', 'computer_server_t.png',
'computer_server_bt.png', 'computer_server_bt.png',
@ -303,7 +305,8 @@ minetest.register_node("computer:server", {
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
local pos = pointed_thing.above local pos = pointed_thing.above
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name ~= "air" then if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name ~= "air" then
minetest.chat_send_player( placer:get_player_name(), "Not enough vertical space to place a server!" ) minetest.chat_send_player( placer:get_player_name(),
S("Not enough vertical space to place a server!" ))
return itemstack return itemstack
end end
return minetest.item_place(itemstack, placer, pointed_thing) return minetest.item_place(itemstack, placer, pointed_thing)
@ -312,7 +315,6 @@ minetest.register_node("computer:server", {
minetest.register_node("computer:server_on", { minetest.register_node("computer:server_on", {
drawtype = "nodebox", drawtype = "nodebox",
description = "Rack Server",
tiles = { tiles = {
'computer_server_t.png', 'computer_server_t.png',
'computer_server_bt.png', 'computer_server_bt.png',

View File

@ -1,3 +1,2 @@
default default
intllib? homedecor_i18n

View File

@ -4,8 +4,7 @@
-- This file defines some items in order to not have to depend on other mods. -- This file defines some items in order to not have to depend on other mods.
-- Boilerplate to support localized strings if intllib mod is installed. local S = homedecor_i18n.gettext
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
if (not minetest.get_modpath("homedecor")) then if (not minetest.get_modpath("homedecor")) then

View File

@ -1,3 +1,6 @@
local S = homedecor_i18n.gettext
local shapes = { local shapes = {
{ { x = {0, 1, 0, 1}, y = {0, 0, 1, 1} } }, { { x = {0, 1, 0, 1}, y = {0, 0, 1, 1} } },
@ -35,7 +38,7 @@ local buttons = "button[3,4.5;0.6,0.6;left;<]"
.."button[4.2,5.3;0.6,0.6;drop;V]" .."button[4.2,5.3;0.6,0.6;drop;V]"
.."button[4.8,4.5;0.6,0.6;rotateright;R]" .."button[4.8,4.5;0.6,0.6;rotateright;R]"
.."button[5.4,4.5;0.6,0.6;right;>]" .."button[5.4,4.5;0.6,0.6;right;>]"
.."button[3.5,3;2,2;new;New Game]" .."button[3.5,3;2,2;new;"..minetest.formspec_escape(S("New Game")).."]"
local formsize = "size[5.9,5.7]" local formsize = "size[5.9,5.7]"
local boardx, boardy = 0, 0 local boardx, boardy = 0, 0
@ -241,7 +244,7 @@ local function step(pos, fields)
end end
minetest.register_node("computer:tetris_arcade", { minetest.register_node("computer:tetris_arcade", {
description="Tetris Arcade", description=S("Tetris Arcade"),
drawtype = "mesh", drawtype = "mesh",
mesh = "tetris_arcade.obj", mesh = "tetris_arcade.obj",
tiles = {"tetris_arcade.png"}, tiles = {"tetris_arcade.png"},
@ -259,7 +262,8 @@ minetest.register_node("computer:tetris_arcade", {
}, },
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("formspec", formsize.."button[2,2.5;2,2;new;New Game]" meta:set_string("formspec", formsize
.."button[2,2.5;2,2;new;"..minetest.formspec_escape(S("New Game")).."]"
..default.gui_bg..default.gui_bg_img..default.gui_slots) ..default.gui_bg..default.gui_bg_img..default.gui_slots)
end, end,
on_timer = function(pos) on_timer = function(pos)
@ -275,7 +279,7 @@ minetest.register_node("computer:tetris_arcade", {
return itemstack return itemstack
end end
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name ~= "air" then if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name ~= "air" then
minetest.chat_send_player(placer:get_player_name(), "No room for place the Arcade!") minetest.chat_send_player(placer:get_player_name(), S("No room for place the Arcade!"))
return itemstack return itemstack
end end
local dir = placer:get_look_dir() local dir = placer:get_look_dir()

View File

@ -1 +1,2 @@
default default
homedecor

View File

@ -1,3 +1,6 @@
local S = homedecor_i18n.gettext
screwdriver = screwdriver or {} screwdriver = screwdriver or {}
local function start_smoke(pos, node, clicker, chimney) local function start_smoke(pos, node, clicker, chimney)
@ -64,12 +67,16 @@ local function stop_smoke(pos)
end end
-- FLAME TYPES -- FLAME TYPES
local flame_types = {"fake", "ice"} local flame_types = {
{ "fake", S("Fake fire") },
{ "ice", S("Ice fire") },
}
for _, f in ipairs(flame_types) do for _, f in ipairs(flame_types) do
minetest.register_node("fake_fire:"..f.."_fire", { local name, desc = unpack(f)
inventory_image = f.."_fire_inv.png", minetest.register_node("fake_fire:"..name.."_fire", {
description = f.." fire", inventory_image = name.."_fire_inv.png",
description = desc,
drawtype = "plantlike", drawtype = "plantlike",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
@ -80,7 +87,7 @@ for _, f in ipairs(flame_types) do
light_source = 14, light_source = 14,
waving = 1, waving = 1,
tiles = { tiles = {
{name=f.."_fire_animated.png", animation={type="vertical_frames", {name=name.."_fire_animated.png", animation={type="vertical_frames",
aspect_w=16, aspect_h=16, length=1.5}}, aspect_w=16, aspect_h=16, length=1.5}},
}, },
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
@ -99,7 +106,7 @@ end
minetest.register_node("fake_fire:fancy_fire", { minetest.register_node("fake_fire:fancy_fire", {
inventory_image = "fancy_fire_inv.png", inventory_image = "fancy_fire_inv.png",
description = "Fancy Fire", description = S("Fancy Fire"),
drawtype = "mesh", drawtype = "mesh",
mesh = "fancy_fire.obj", mesh = "fancy_fire.obj",
paramtype = "light", paramtype = "light",
@ -136,7 +143,7 @@ minetest.register_node("fake_fire:fancy_fire", {
-- EMBERS -- EMBERS
minetest.register_node("fake_fire:embers", { minetest.register_node("fake_fire:embers", {
description = "Glowing Embers", description = S("Glowing Embers"),
tiles = { tiles = {
{name="embers_animated.png", animation={type="vertical_frames", {name="embers_animated.png", animation={type="vertical_frames",
aspect_w=16, aspect_h=16, length=2}}, aspect_w=16, aspect_h=16, length=2}},
@ -181,7 +188,7 @@ end
-- FLINT and STEEL -- FLINT and STEEL
minetest.register_tool("fake_fire:flint_and_steel", { minetest.register_tool("fake_fire:flint_and_steel", {
description = "Flint and steel", description = S("Flint and steel"),
inventory_image = "flint_and_steel.png", inventory_image = "flint_and_steel.png",
liquids_pointable = false, liquids_pointable = false,
stack_max = 1, stack_max = 1,

View File

@ -1 +1,2 @@
default default
homedecor_i18n

View File

@ -1,3 +1,6 @@
local S = homedecor_i18n.gettext
local inbox = {} local inbox = {}
screwdriver = screwdriver or {} screwdriver = screwdriver or {}
@ -19,7 +22,7 @@ minetest.register_node("inbox:empty", {
paramtype = "light", paramtype = "light",
drawtype = "mesh", drawtype = "mesh",
mesh = "inbox_mailbox.obj", mesh = "inbox_mailbox.obj",
description = "Mailbox", description = S("Mailbox"),
tiles = { tiles = {
"inbox_red_metal.png", "inbox_red_metal.png",
"inbox_white_metal.png", "inbox_white_metal.png",
@ -36,7 +39,7 @@ minetest.register_node("inbox:empty", {
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local owner = placer:get_player_name() local owner = placer:get_player_name()
meta:set_string("owner", owner) meta:set_string("owner", owner)
meta:set_string("infotext", owner.."'s Mailbox") meta:set_string("infotext", S("@1's Mailbox", owner))
local inv = meta:get_inventory() local inv = meta:get_inventory()
inv:set_size("main", 8*4) inv:set_size("main", 8*4)
inv:set_size("drop", 1) inv:set_size("drop", 1)

View File

@ -1,2 +1,3 @@
default default
homedecor_i18n
mesecons_mvps? mesecons_mvps?

View File

@ -1,3 +1,6 @@
local S = homedecor_i18n.gettext
local tmp = {} local tmp = {}
screwdriver = screwdriver or {} screwdriver = screwdriver or {}
@ -98,7 +101,7 @@ local drop_item = function(pos, node)
end end
minetest.register_node("itemframes:frame",{ minetest.register_node("itemframes:frame",{
description = "Item frame", description = S("Item frame"),
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -121,7 +124,7 @@ minetest.register_node("itemframes:frame",{
after_place_node = function(pos, placer, itemstack) after_place_node = function(pos, placer, itemstack)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("owner",placer:get_player_name()) meta:set_string("owner",placer:get_player_name())
meta:set_string("infotext","Item frame (owned by "..placer:get_player_name()..")") meta:set_string("infotext", S("Item frame (owned by @1)", placer:get_player_name()))
end, end,
on_rightclick = function(pos, node, clicker, itemstack) on_rightclick = function(pos, node, clicker, itemstack)
if not itemstack then return end if not itemstack then return end
@ -159,7 +162,7 @@ minetest.register_node("itemframes:frame",{
minetest.register_node("itemframes:pedestal",{ minetest.register_node("itemframes:pedestal",{
description = "Pedestal", description = S("Pedestal"),
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "fixed", fixed = { type = "fixed", fixed = {
@ -181,7 +184,7 @@ minetest.register_node("itemframes:pedestal",{
after_place_node = function(pos, placer, itemstack) after_place_node = function(pos, placer, itemstack)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("owner",placer:get_player_name()) meta:set_string("owner",placer:get_player_name())
meta:set_string("infotext","Pedestal (owned by "..placer:get_player_name()..")") meta:set_string("infotext", S("Pedestal (owned by @1)", placer:get_player_name()))
end, end,
on_rightclick = function(pos, node, clicker, itemstack) on_rightclick = function(pos, node, clicker, itemstack)
if not itemstack then return end if not itemstack then return end

View File

@ -1,3 +1,4 @@
wool wool
bucket bucket
homedecor_i18n
unifieddyes unifieddyes

View File

@ -1,8 +1,10 @@
local S = homedecor_i18n.gettext
lavalamp = {} lavalamp = {}
minetest.register_node("lavalamp:lavalamp", { minetest.register_node("lavalamp:lavalamp", {
description = "Lava Lamp", description = S("Lava Lamp"),
drawtype = "mesh", drawtype = "mesh",
mesh = "lavalamp.obj", mesh = "lavalamp.obj",
tiles = { tiles = {
@ -45,7 +47,7 @@ minetest.register_node("lavalamp:lavalamp", {
}) })
minetest.register_node("lavalamp:lavalamp_off", { minetest.register_node("lavalamp:lavalamp_off", {
description = "Lava Lamp (off)", description = S("Lava Lamp (off)"),
drawtype = "mesh", drawtype = "mesh",
mesh = "lavalamp.obj", mesh = "lavalamp.obj",
tiles = { tiles = {

View File

@ -1,4 +1,6 @@
local S = homedecor_i18n.gettext
local armchair_cbox = { local armchair_cbox = {
type = "fixed", type = "fixed",
fixed = { fixed = {
@ -7,12 +9,11 @@ local armchair_cbox = {
} }
} }
for i in ipairs(lrfurn.colors) do for i, c in ipairs(lrfurn.colors) do
local colour = lrfurn.colors[i][1] local colour, coldesc, hue = unpack(c)
local hue = lrfurn.colors[i][2]
minetest.register_node("lrfurn:armchair_"..colour, { minetest.register_node("lrfurn:armchair_"..colour, {
description = "Armchair ("..colour..")", description = S("Armchair (@1)", coldesc),
drawtype = "mesh", drawtype = "mesh",
mesh = "lrfurn_armchair.obj", mesh = "lrfurn_armchair.obj",
tiles = { tiles = {
@ -56,5 +57,5 @@ for i in ipairs(lrfurn.colors) do
end end
if minetest.setting_get("log_mods") then if minetest.setting_get("log_mods") then
minetest.log("action", "armchairs loaded") minetest.log("action", "[lrfurn/armchairs] "..S("Loaded!"))
end end

View File

@ -1,5 +1,8 @@
local S = homedecor_i18n.gettext
minetest.register_node("lrfurn:coffeetable_back", { minetest.register_node("lrfurn:coffeetable_back", {
description = "Coffee Table", description = S("Coffee Table"),
drawtype = "nodebox", drawtype = "nodebox",
tiles = {"lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png"}, tiles = {"lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png"},
paramtype = "light", paramtype = "light",
@ -45,7 +48,8 @@ minetest.register_node("lrfurn:coffeetable_back", {
end end
minetest.set_node(pos, node) minetest.set_node(pos, node)
else else
minetest.chat_send_player(placer:get_player_name(), "No room to place the coffee table!") minetest.chat_send_player(placer:get_player_name(),
S("No room to place the coffee table!"))
minetest.set_node(pos, {name = "air"}) minetest.set_node(pos, {name = "air"})
return true return true
end end
@ -122,5 +126,5 @@ minetest.register_craft({
}) })
if minetest.setting_get("log_mods") then if minetest.setting_get("log_mods") then
minetest.log("action", "coffeetable loaded") minetest.log("action", "[lrfurn/coffeetable] "..S("Loaded!"))
end end

View File

@ -1,2 +1,3 @@
default default
wool wool
homedecor_i18n

View File

@ -1,5 +1,8 @@
local S = homedecor_i18n.gettext
minetest.register_node("lrfurn:endtable", { minetest.register_node("lrfurn:endtable", {
description = "End Table", description = S("End Table"),
drawtype = "nodebox", drawtype = "nodebox",
tiles = {"lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png"}, tiles = {"lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png"},
paramtype = "light", paramtype = "light",
@ -46,5 +49,5 @@ minetest.register_craft({
}) })
if minetest.setting_get("log_mods") then if minetest.setting_get("log_mods") then
minetest.log("action", "endtable loaded") minetest.log("action", "[lrfurn/endtable] "..S("Loaded!"))
end end

View File

@ -1,3 +1,6 @@
local S = homedecor_i18n.gettext
lrfurn = {} lrfurn = {}
screwdriver = screwdriver or {} screwdriver = screwdriver or {}
@ -9,21 +12,21 @@ lrfurn.fdir_to_fwd = {
} }
lrfurn.colors = { lrfurn.colors = {
{ "black", 0xff181818 }, { "black", S("black"), 0xff181818 },
{ "brown", 0xff251005 }, { "brown", S("brown"), 0xff251005 },
{ "blue", 0xff0000d0 }, { "blue", S("blue"), 0xff0000d0 },
{ "cyan", 0xff009fa7 }, { "cyan", S("cyan"), 0xff009fa7 },
{ "dark_grey", 0xff101010 }, { "dark_grey", S("dark grey"), 0xff101010 },
{ "dark_green", 0xff007000 }, { "dark_green", S("dark green"), 0xff007000 },
{ "green", 0xff00d000 }, { "green", S("green"), 0xff00d000 },
{ "grey", 0xff303030 }, { "grey", S("grey"), 0xff303030 },
{ "magenta", 0xffe0048b }, { "magenta", S("magenta"), 0xffe0048b },
{ "orange", 0xffee9000 }, { "orange", S("orange"), 0xffee9000 },
{ "pink", 0xffff90b0 }, { "pink", S("pink"), 0xffff90b0 },
{ "red", 0xff800000 }, { "red", S("red"), 0xff800000 },
{ "violet", 0xff9000d0 }, { "violet", S("violet"), 0xff9000d0 },
{ "white", 0xffffffff }, { "white", S("white"), 0xffffffff },
{ "yellow", 0xffdde000 } { "yellow", S("yellow"), 0xffdde000 }
} }
function lrfurn.check_forward(pos, fdir, long, placer) function lrfurn.check_forward(pos, fdir, long, placer)

View File

@ -1,4 +1,6 @@
local S = homedecor_i18n.gettext
local longsofa_sbox = { local longsofa_sbox = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 2.5} fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 2.5}
@ -12,12 +14,11 @@ local longsofa_cbox = {
} }
} }
for i in ipairs(lrfurn.colors) do for i, c in ipairs(lrfurn.colors) do
local colour = lrfurn.colors[i][1] local colour, coldesc, hue = unpack(c)
local hue = lrfurn.colors[i][2]
minetest.register_node("lrfurn:longsofa_"..colour, { minetest.register_node("lrfurn:longsofa_"..colour, {
description = "Long Sofa ("..colour..")", description = S("Long Sofa (@1)", coldesc),
drawtype = "mesh", drawtype = "mesh",
mesh = "lrfurn_sofa_long.obj", mesh = "lrfurn_sofa_long.obj",
tiles = { tiles = {
@ -41,7 +42,8 @@ for i in ipairs(lrfurn.colors) do
minetest.set_node(pos, {name = "lrfurn:longsofa_"..colour, param2 = fdir}) minetest.set_node(pos, {name = "lrfurn:longsofa_"..colour, param2 = fdir})
itemstack:take_item() itemstack:take_item()
else else
minetest.chat_send_player(placer:get_player_name(), "No room to place the sofa!") minetest.chat_send_player(placer:get_player_name(),
S("No room to place the sofa!"))
minetest.set_node(pos, { name = "air" }) minetest.set_node(pos, { name = "air" })
end end
return itemstack return itemstack
@ -82,5 +84,5 @@ for i in ipairs(lrfurn.colors) do
end end
if minetest.setting_get("log_mods") then if minetest.setting_get("log_mods") then
minetest.log("action", "long sofas loaded") minetest.log("action", "[lrfurn/longsofas] "..S("Loaded!"))
end end

View File

@ -1,4 +1,5 @@
local S = homedecor_i18n.gettext
local sofa_sbox = { local sofa_sbox = {
type = "fixed", type = "fixed",
@ -13,12 +14,11 @@ local sofa_cbox = {
} }
} }
for i in ipairs(lrfurn.colors) do for i, c in ipairs(lrfurn.colors) do
local colour = lrfurn.colors[i][1] local colour, coldesc, hue = unpack(c)
local hue = lrfurn.colors[i][2]
minetest.register_node("lrfurn:sofa_"..colour, { minetest.register_node("lrfurn:sofa_"..colour, {
description = "Sofa ("..colour..")", description = S("Sofa (@1)", coldesc),
drawtype = "mesh", drawtype = "mesh",
mesh = "lrfurn_sofa_short.obj", mesh = "lrfurn_sofa_short.obj",
tiles = { tiles = {
@ -83,5 +83,5 @@ for i in ipairs(lrfurn.colors) do
end end
if minetest.setting_get("log_mods") then if minetest.setting_get("log_mods") then
minetest.log("action", "sofas loaded") minetest.log("action", "[lrfurn/sofas] "..S("Loaded!"))
end end

View File

@ -1 +1,2 @@
default default
homedecor

View File

@ -1,7 +1,10 @@
local S = homedecor_i18n.gettext
screwdriver = screwdriver or {} screwdriver = screwdriver or {}
minetest.register_node("plasmascreen:stand", { minetest.register_node("plasmascreen:stand", {
description = "Plasma Screen TV Stand", description = S("Plasma Screen TV Stand"),
tiles = {"plasmascreen_back.png"}, tiles = {"plasmascreen_back.png"},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
@ -94,7 +97,7 @@ local function checkwall(pos)
end end
minetest.register_node("plasmascreen:tv", { minetest.register_node("plasmascreen:tv", {
description = "Plasma TV", description = S("Plasma TV"),
drawtype = "mesh", drawtype = "mesh",
mesh = "plasmascreen_tv.obj", mesh = "plasmascreen_tv.obj",
tiles = { tiles = {
@ -130,7 +133,7 @@ minetest.register_node("plasmascreen:tv", {
}) })
minetest.register_node("plasmascreen:tv_off", { minetest.register_node("plasmascreen:tv_off", {
description = "Plasma TV (off)", description = S("Plasma TV (off)"),
drawtype = "mesh", drawtype = "mesh",
mesh = "plasmascreen_tv.obj", mesh = "plasmascreen_tv.obj",
tiles = { tiles = {