Add support for MT 5 game translation (rebasing ) (#2466)

rebased #2368
master
Yves Quemener 2019-09-11 02:09:51 +09:00 committed by sfan5
parent 257695124a
commit 40c39fdbaa
1 changed files with 16 additions and 11 deletions

View File

@ -1,3 +1,5 @@
-- flowers/init.lua
-- Minetest 0.4 mod: default -- Minetest 0.4 mod: default
-- See README.txt for licensing and other information. -- See README.txt for licensing and other information.
@ -6,6 +8,9 @@
flowers = {} flowers = {}
-- Load support for MT game translation.
local S = minetest.get_translator("flowers")
-- Map Generation -- Map Generation
@ -58,49 +63,49 @@ end
flowers.datas = { flowers.datas = {
{ {
"rose", "rose",
"Red Rose", S("Red Rose"),
{-2 / 16, -0.5, -2 / 16, 2 / 16, 5 / 16, 2 / 16}, {-2 / 16, -0.5, -2 / 16, 2 / 16, 5 / 16, 2 / 16},
{color_red = 1, flammable = 1} {color_red = 1, flammable = 1}
}, },
{ {
"tulip", "tulip",
"Orange Tulip", S("Orange Tulip"),
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16}, {-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
{color_orange = 1, flammable = 1} {color_orange = 1, flammable = 1}
}, },
{ {
"dandelion_yellow", "dandelion_yellow",
"Yellow Dandelion", S("Yellow Dandelion"),
{-4 / 16, -0.5, -4 / 16, 4 / 16, -2 / 16, 4 / 16}, {-4 / 16, -0.5, -4 / 16, 4 / 16, -2 / 16, 4 / 16},
{color_yellow = 1, flammable = 1} {color_yellow = 1, flammable = 1}
}, },
{ {
"chrysanthemum_green", "chrysanthemum_green",
"Green Chrysanthemum", S("Green Chrysanthemum"),
{-4 / 16, -0.5, -4 / 16, 4 / 16, -1 / 16, 4 / 16}, {-4 / 16, -0.5, -4 / 16, 4 / 16, -1 / 16, 4 / 16},
{color_green = 1, flammable = 1} {color_green = 1, flammable = 1}
}, },
{ {
"geranium", "geranium",
"Blue Geranium", S("Blue Geranium"),
{-2 / 16, -0.5, -2 / 16, 2 / 16, 2 / 16, 2 / 16}, {-2 / 16, -0.5, -2 / 16, 2 / 16, 2 / 16, 2 / 16},
{color_blue = 1, flammable = 1} {color_blue = 1, flammable = 1}
}, },
{ {
"viola", "viola",
"Viola", S("Viola"),
{-5 / 16, -0.5, -5 / 16, 5 / 16, -1 / 16, 5 / 16}, {-5 / 16, -0.5, -5 / 16, 5 / 16, -1 / 16, 5 / 16},
{color_violet = 1, flammable = 1} {color_violet = 1, flammable = 1}
}, },
{ {
"dandelion_white", "dandelion_white",
"White Dandelion", S("White Dandelion"),
{-5 / 16, -0.5, -5 / 16, 5 / 16, -2 / 16, 5 / 16}, {-5 / 16, -0.5, -5 / 16, 5 / 16, -2 / 16, 5 / 16},
{color_white = 1, flammable = 1} {color_white = 1, flammable = 1}
}, },
{ {
"tulip_black", "tulip_black",
"Black Tulip", S("Black Tulip"),
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16}, {-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
{color_black = 1, flammable = 1} {color_black = 1, flammable = 1}
}, },
@ -180,7 +185,7 @@ minetest.register_abm({
-- --
minetest.register_node("flowers:mushroom_red", { minetest.register_node("flowers:mushroom_red", {
description = "Red Mushroom", description = S("Red Mushroom"),
tiles = {"flowers_mushroom_red.png"}, tiles = {"flowers_mushroom_red.png"},
inventory_image = "flowers_mushroom_red.png", inventory_image = "flowers_mushroom_red.png",
wield_image = "flowers_mushroom_red.png", wield_image = "flowers_mushroom_red.png",
@ -199,7 +204,7 @@ minetest.register_node("flowers:mushroom_red", {
}) })
minetest.register_node("flowers:mushroom_brown", { minetest.register_node("flowers:mushroom_brown", {
description = "Brown Mushroom", description = S("Brown Mushroom"),
tiles = {"flowers_mushroom_brown.png"}, tiles = {"flowers_mushroom_brown.png"},
inventory_image = "flowers_mushroom_brown.png", inventory_image = "flowers_mushroom_brown.png",
wield_image = "flowers_mushroom_brown.png", wield_image = "flowers_mushroom_brown.png",
@ -267,7 +272,7 @@ minetest.register_alias("mushroom:red_natural", "flowers:mushroom_red")
-- --
local waterlily_def = { local waterlily_def = {
description = "Waterlily", description = S("Waterlily"),
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",