1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-29 21:30:26 +02:00

Fix more translation strings (#2487)

This commit is contained in:
sfan5
2019-09-18 20:38:27 +02:00
committed by GitHub
parent c42a525ce8
commit b4c7522248
9 changed files with 56 additions and 34 deletions

View File

@ -257,6 +257,9 @@ farming.register_plant = function(name, def)
if not def.description then
def.description = S("Seed")
end
if not def.harvest_description then
def.harvest_description = pname:gsub("^%l", string.upper)
end
if not def.inventory_image then
def.inventory_image = "unknown_item.png"
end
@ -325,7 +328,7 @@ farming.register_plant = function(name, def)
-- Register harvest
minetest.register_craftitem(":" .. mname .. ":" .. pname, {
description = pname:gsub("^%l", string.upper),
description = def.harvest_description,
inventory_image = mname .. "_" .. pname .. ".png",
groups = def.groups or {flammable = 2},
})