Fix improper use of translation code in curtains

possible side effect: Some users may have unknown nodes because they
were being registered wrong to begin with.
This commit is contained in:
Vanessa Ezekowitz 2013-11-08 05:08:07 -05:00
parent 0063598f22
commit e3de39bd05

View File

@ -196,10 +196,11 @@ local curtaincolors = {
}
for c in ipairs(curtaincolors) do
local color = S(curtaincolors[c])
local color = curtaincolors[c]
local color_d = S(curtaincolors[c])
minetest.register_node("homedecor:curtain_"..color, {
description = S("Curtains (%s)"):format(color),
description = S("Curtains (%s)"):format(color_d),
tiles = { "homedecor_curtain_"..color..".png" },
inventory_image = "homedecor_curtain_"..color..".png",
wield_image = "homedecor_curtain_"..color..".png",
@ -216,6 +217,7 @@ minetest.register_node("homedecor:curtain_"..color, {
--wall_side = = <default>
},
})
minetest.register_alias("homedecor:curtain_"..color_d, "homedecor:curtain_"..color)
end