forked from mtcontrib/homedecor_modpack
Make (almost) all items translatable (#60)
* Make all items translatable * add more
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
-- this component contains all of the random types of seating previously
|
||||
-- scattered among homedecor's other mods
|
||||
|
||||
local S = minetest.get_translator("homedecor_seating")
|
||||
|
||||
local dc_cbox = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, 0, 1 }
|
||||
@ -9,7 +11,7 @@ local dc_cbox = {
|
||||
homedecor.register("deckchair", {
|
||||
mesh = "homedecor_deckchair.obj",
|
||||
tiles = {"homedecor_deckchair.png"},
|
||||
description = "Deck Chair",
|
||||
description = S("Deck Chair"),
|
||||
groups = { snappy = 3, dig_tree=2 },
|
||||
expand = { forward="placeholder" },
|
||||
_sound_def = {
|
||||
@ -29,7 +31,7 @@ minetest.register_alias("homedecor:deckchair_head", "air")
|
||||
homedecor.register("deckchair_striped_blue", {
|
||||
mesh = "homedecor_deckchair.obj",
|
||||
tiles = {"homedecor_deckchair_striped_blue.png"},
|
||||
description = "Deck Chair (blue striped)",
|
||||
description = S("Deck Chair (blue striped)"),
|
||||
groups = { snappy = 3, dig_tree=2 },
|
||||
expand = { forward="placeholder" },
|
||||
_sound_def = {
|
||||
@ -45,7 +47,7 @@ homedecor.register("deckchair_striped_blue", {
|
||||
|
||||
homedecor.register("simple_bench", {
|
||||
tiles = { "homedecor_generic_wood_old.png" },
|
||||
description = "Simple Bench",
|
||||
description = S("Simple Bench"),
|
||||
groups = {snappy=3, dig_tree=2},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -82,7 +84,7 @@ homedecor.register("bench_large_1", {
|
||||
"homedecor_generic_wood_old.png",
|
||||
"homedecor_generic_metal_wrought_iron.png"
|
||||
},
|
||||
description = "Garden Bench (style 1)",
|
||||
description = S("Garden Bench (style 1)"),
|
||||
inventory_image = "homedecor_bench_large_1_inv.png",
|
||||
groups = { snappy = 3, dig_tree=2 },
|
||||
expand = { right="placeholder" },
|
||||
@ -111,7 +113,7 @@ local bl2_cbox = {
|
||||
}
|
||||
|
||||
homedecor.register("bench_large_2", {
|
||||
description = "Garden Bench (style 2)",
|
||||
description = S("Garden Bench (style 2)"),
|
||||
mesh = "homedecor_bench_large_2.obj",
|
||||
tiles = { "homedecor_generic_wood_old.png" },
|
||||
inventory_image = "homedecor_bench_large_2_inv.png",
|
||||
@ -134,7 +136,7 @@ local kc_cbox = {
|
||||
}
|
||||
|
||||
homedecor.register("kitchen_chair_wood", {
|
||||
description = "Kitchen chair",
|
||||
description = S("Kitchen chair"),
|
||||
mesh = "homedecor_kitchen_chair.obj",
|
||||
tiles = {
|
||||
homedecor.plain_wood,
|
||||
@ -156,7 +158,7 @@ homedecor.register("kitchen_chair_wood", {
|
||||
})
|
||||
|
||||
homedecor.register("kitchen_chair_padded", {
|
||||
description = "Kitchen chair",
|
||||
description = S("Kitchen chair"),
|
||||
mesh = "homedecor_kitchen_chair.obj",
|
||||
tiles = {
|
||||
homedecor.plain_wood,
|
||||
@ -196,8 +198,8 @@ local ofchairs_cbox = {
|
||||
}
|
||||
|
||||
local chairs = {
|
||||
{ "basic", "Basic office chair" },
|
||||
{ "upscale", "Upscale office chair" },
|
||||
{ "basic", S("Basic office chair") },
|
||||
{ "upscale", S("Upscale office chair") },
|
||||
}
|
||||
|
||||
for _, c in pairs(chairs) do
|
||||
|
Reference in New Issue
Block a user