1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-28 04:40:22 +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},
})

View File

@ -20,6 +20,7 @@ dofile(farming.path .. "/hoes.lua")
farming.register_plant("farming:wheat", {
description = S("Wheat Seed"),
harvest_description = S("Wheat"),
paramtype2 = "meshoptions",
inventory_image = "farming_wheat_seed.png",
steps = 8,
@ -61,6 +62,7 @@ minetest.register_craft({
farming.register_plant("farming:cotton", {
description = S("Cotton Seed"),
harvest_description = S("Cotton"),
inventory_image = "farming_cotton_seed.png",
steps = 8,
minlight = 13,

View File

@ -153,16 +153,21 @@ minetest.register_node("farming:straw", {
sounds = default.node_sound_leaves_defaults(),
})
stairs.register_stair_and_slab(
"straw",
"farming:straw",
{snappy = 3, flammable = 4},
{"farming_straw.png"},
S("Straw Stair"),
S("Straw Slab"),
default.node_sound_leaves_defaults(),
true
)
do
local recipe = "farming:straw"
local groups = {snappy = 3, flammable = 4}
local images = {"farming_straw.png"}
local sounds = default.node_sound_leaves_defaults()
stairs.register_stair("straw", recipe, groups, images, S("Straw Stair"),
sounds, true)
stairs.register_stair_inner("straw", recipe, groups, images, "",
sounds, true, S("Inner Straw Stair"))
stairs.register_stair_outer("straw", recipe, groups, images, "",
sounds, true, S("Outer Straw Stair"))
stairs.register_slab("straw", recipe, groups, images, S("Straw Slab"),
sounds, true)
end
minetest.register_abm({
label = "Farming soil",