New translation system, part 5: Items, part 1

This commit is contained in:
Wuzzy 2019-03-07 21:35:02 +01:00
parent 0cc038c545
commit 342202c979
9 changed files with 153 additions and 138 deletions

View file

@ -1,4 +1,4 @@
-- 3D bed
local S = minetest.get_translator("mcl_beds")
local nodebox = {
bottom = {
@ -15,22 +15,22 @@ local nodebox = {
local colors = {
-- { ID, decription, wool, dye }
{ "red", "Red Bed", "mcl_wool:red", "mcl_dye:red" },
{ "blue", "Blue Bed", "mcl_wool:blue", "mcl_dye:blue" },
{ "cyan", "Cyan Bed", "mcl_wool:cyan", "mcl_dye:cyan" },
{ "grey", "Grey Bed", "mcl_wool:grey", "mcl_dye:dark_grey" },
{ "silver", "Light Grey Bed", "mcl_wool:silver", "mcl_dye:grey" },
{ "black", "Black Bed", "mcl_wool:black", "mcl_dye:black" },
{ "yellow", "Yellow Bed", "mcl_wool:yellow", "mcl_dye:yellow" },
{ "green", "Green Bed", "mcl_wool:green", "mcl_dye:dark_green" },
{ "magenta", "Magenta Bed", "mcl_wool:magenta", "mcl_dye:magenta" },
{ "orange", "Orange Bed", "mcl_wool:orange", "mcl_dye:orange" },
{ "purple", "Purple Bed", "mcl_wool:purple", "mcl_dye:violet" },
{ "brown", "Brown Bed", "mcl_wool:brown", "mcl_dye:brown" },
{ "pink", "Pink Bed", "mcl_wool:pink", "mcl_dye:pink" },
{ "lime", "Lime Bed", "mcl_wool:lime", "mcl_dye:green" },
{ "light_blue", "Light Blue Bed", "mcl_wool:light_blue", "mcl_dye:lightblue" },
{ "white", "White Bed", "mcl_wool:white", "mcl_dye:white" },
{ "red", S("Red Bed"), "mcl_wool:red", "mcl_dye:red" },
{ "blue", S("Blue Bed"), "mcl_wool:blue", "mcl_dye:blue" },
{ "cyan", S("Cyan Bed"), "mcl_wool:cyan", "mcl_dye:cyan" },
{ "grey", S("Grey Bed"), "mcl_wool:grey", "mcl_dye:dark_grey" },
{ "silver", S("Light Grey Bed"), "mcl_wool:silver", "mcl_dye:grey" },
{ "black", S("Black Bed"), "mcl_wool:black", "mcl_dye:black" },
{ "yellow", S("Yellow Bed"), "mcl_wool:yellow", "mcl_dye:yellow" },
{ "green", S("Green Bed"), "mcl_wool:green", "mcl_dye:dark_green" },
{ "magenta", S("Magenta Bed"), "mcl_wool:magenta", "mcl_dye:magenta" },
{ "orange", S("Orange Bed"), "mcl_wool:orange", "mcl_dye:orange" },
{ "purple", S("Purple Bed"), "mcl_wool:purple", "mcl_dye:violet" },
{ "brown", S("Brown Bed"), "mcl_wool:brown", "mcl_dye:brown" },
{ "pink", S("Pink Bed"), "mcl_wool:pink", "mcl_dye:pink" },
{ "lime", S("Lime Bed"), "mcl_wool:lime", "mcl_dye:green" },
{ "light_blue", S("Light Blue Bed"), "mcl_wool:light_blue", "mcl_dye:lightblue" },
{ "white", S("White Bed"), "mcl_wool:white", "mcl_dye:white" },
}
for c=1, #colors do