1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-17 05:10:25 +02:00

Make (almost) all items translatable (#60)

* Make all items translatable

* add more
This commit is contained in:
Niklp
2023-08-22 00:47:26 +02:00
committed by GitHub
parent ecd67f0eab
commit 80b4f242e0
24 changed files with 176 additions and 24 deletions

View File

@ -43,9 +43,9 @@ homedecor.register("ceiling_tile", {
})
local rug_types = {
{ "small", "homedecor_small_rug.obj" },
{ "large", homedecor.box.slab_y(0.0625) },
{ "persian", homedecor.box.slab_y(0.0625) },
{ S("small"), "homedecor_small_rug.obj" },
{ S("large"), homedecor.box.slab_y(0.0625) },
{ S("persian"), homedecor.box.slab_y(0.0625) },
}
for _, rt in ipairs(rug_types) do
@ -69,7 +69,7 @@ for _, rt in ipairs(rug_types) do
end
homedecor.register("rug_"..s, {
description = S("Rug (@1)", S(s)),
description = S("Rug (@1)", s),
mesh = mesh,
tiles = tiles,
node_box = nodebox,
@ -83,11 +83,11 @@ for _, rt in ipairs(rug_types) do
})
end
local pot_colors = { "black", "green", "terracotta" }
local pot_colors = { S("black"), S("green"), S("terracotta") }
for _, p in ipairs(pot_colors) do
homedecor.register("flower_pot_"..p, {
description = S("Flower Pot (@1)", S(p)),
description = S("Flower Pot (@1)", p),
mesh = "homedecor_flowerpot.obj",
tiles = {
"homedecor_flower_pot_"..p..".png",
@ -525,7 +525,7 @@ for _, side in ipairs({"diagonal_left", "diagonal_right", "horizontal"}) do
end
homedecor.register("spiral_staircase", {
description = "Spiral Staircase",
description = S("Spiral Staircase"),
mesh = "homedecor_spiral_staircase.obj",
wield_scale = { x=0.4, y=0.4, z=0.4 },
tiles = {