1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-16 20:50:22 +02:00

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,4 +1,6 @@
local S = homedecor_i18n.gettext
local longsofa_sbox = {
type = "fixed",
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
local colour = lrfurn.colors[i][1]
local hue = lrfurn.colors[i][2]
for i, c in ipairs(lrfurn.colors) do
local colour, coldesc, hue = unpack(c)
minetest.register_node("lrfurn:longsofa_"..colour, {
description = "Long Sofa ("..colour..")",
description = S("Long Sofa (@1)", coldesc),
drawtype = "mesh",
mesh = "lrfurn_sofa_long.obj",
tiles = {
@ -41,7 +42,8 @@ for i in ipairs(lrfurn.colors) do
minetest.set_node(pos, {name = "lrfurn:longsofa_"..colour, param2 = fdir})
itemstack:take_item()
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" })
end
return itemstack
@ -82,5 +84,5 @@ for i in ipairs(lrfurn.colors) do
end
if minetest.setting_get("log_mods") then
minetest.log("action", "long sofas loaded")
minetest.log("action", "[lrfurn/longsofas] "..S("Loaded!"))
end