New translation system, part 7: Items, part 3

This commit is contained in:
Wuzzy 2019-03-08 00:00:09 +01:00
parent e4fbbeddb2
commit a29626881f
20 changed files with 253 additions and 220 deletions

View file

@ -1,3 +1,5 @@
local S = minetest.get_translator("mcl_farming")
local function create_soil(pos, inv)
if pos == nil then
return false
@ -23,11 +25,11 @@ local function create_soil(pos, inv)
return false
end
local hoe_longdesc = "Hoes are essential tools for growing crops. They are used to create farmland in order to plant seeds on it. Hoes can also be used as very weak weapons in a pinch."
local hoe_usagehelp = "Use the hoe on a cultivatable block (by rightclicking it) to turn it into farmland. Dirt, grass blocks and grass paths are cultivatable blocks. Using a hoe on coarse dirt turns it into dirt."
local hoe_longdesc = S("Hoes are essential tools for growing crops. They are used to create farmland in order to plant seeds on it. Hoes can also be used as very weak weapons in a pinch.")
local hoe_usagehelp = S("Use the hoe on a cultivatable block (by rightclicking it) to turn it into farmland. Dirt, grass blocks and grass paths are cultivatable blocks. Using a hoe on coarse dirt turns it into dirt.")
minetest.register_tool("mcl_farming:hoe_wood", {
description = "Wood Hoe",
description = S("Wood Hoe"),
_doc_items_longdesc = hoe_longdesc,
_doc_items_usagehelp = hoe_usagehelp,
_doc_items_hidden = false,
@ -79,7 +81,7 @@ minetest.register_craft({
})
minetest.register_tool("mcl_farming:hoe_stone", {
description = "Stone Hoe",
description = S("Stone Hoe"),
_doc_items_longdesc = hoe_longdesc,
_doc_items_usagehelp = hoe_usagehelp,
inventory_image = "farming_tool_stonehoe.png",
@ -125,7 +127,7 @@ minetest.register_craft({
})
minetest.register_tool("mcl_farming:hoe_iron", {
description = "Iron Hoe",
description = S("Iron Hoe"),
_doc_items_longdesc = hoe_longdesc,
_doc_items_usagehelp = hoe_usagehelp,
inventory_image = "farming_tool_steelhoe.png",
@ -179,7 +181,7 @@ minetest.register_craft({
})
minetest.register_tool("mcl_farming:hoe_gold", {
description = "Golden Hoe",
description = S("Golden Hoe"),
_doc_items_longdesc = hoe_longdesc,
_doc_items_usagehelp = hoe_usagehelp,
inventory_image = "farming_tool_goldhoe.png",
@ -234,7 +236,7 @@ minetest.register_craft({
})
minetest.register_tool("mcl_farming:hoe_diamond", {
description = "Diamond Hoe",
description = S("Diamond Hoe"),
_doc_items_longdesc = hoe_longdesc,
_doc_items_usagehelp = hoe_usagehelp,
inventory_image = "farming_tool_diamondhoe.png",