New translation system, part 8: Items, part 4

This commit is contained in:
Wuzzy 2019-03-08 00:22:28 +01:00
parent a29626881f
commit 47c817d75a
22 changed files with 248 additions and 262 deletions

View file

@ -1,8 +1,10 @@
-- Nodes
local S = minetest.get_translator("mcl_ocean")
minetest.register_node("mcl_ocean:sea_lantern", {
description = "Sea Lantern",
_doc_items_longdesc = "Sea lanterns are decorative light sources which look great underwater but can be placed anywhere.",
description = S("Sea Lantern"),
_doc_items_longdesc = S("Sea lanterns are decorative light sources which look great underwater but can be placed anywhere."),
paramtype2 = "facedir",
is_ground_content = false,
stack_max = 64,
@ -23,8 +25,8 @@ minetest.register_node("mcl_ocean:sea_lantern", {
})
minetest.register_node("mcl_ocean:prismarine", {
description = "Prismarine",
_doc_items_longdesc = "Prismarine is used as a building block. It slowly changes its color.",
description = S("Prismarine"),
_doc_items_longdesc = S("Prismarine is used as a building block. It slowly changes its color."),
stack_max = 64,
is_ground_content = false,
-- Texture should have 22 frames for smooth transitions.
@ -36,7 +38,7 @@ minetest.register_node("mcl_ocean:prismarine", {
})
minetest.register_node("mcl_ocean:prismarine_brick", {
description = "Prismarine Bricks",
description = S("Prismarine Bricks"),
_doc_items_longdesc = doc.sub.items.temp.build,
stack_max = 64,
is_ground_content = false,
@ -48,7 +50,7 @@ minetest.register_node("mcl_ocean:prismarine_brick", {
})
minetest.register_node("mcl_ocean:prismarine_dark", {
description = "Dark Prismarine",
description = S("Dark Prismarine"),
_doc_items_longdesc = doc.sub.items.temp.build,
stack_max = 64,
is_ground_content = false,
@ -62,7 +64,7 @@ minetest.register_node("mcl_ocean:prismarine_dark", {
-- Craftitems
minetest.register_craftitem("mcl_ocean:prismarine_crystals", {
description = "Prismarine Crystals",
description = S("Prismarine Crystals"),
_doc_items_longdesc = doc.sub.items.temp.craftitem,
inventory_image = "mcl_ocean_prismarine_crystals.png",
stack_max = 64,
@ -70,7 +72,7 @@ minetest.register_craftitem("mcl_ocean:prismarine_crystals", {
})
minetest.register_craftitem("mcl_ocean:prismarine_shard", {
description = "Prismarine Shard",
description = S("Prismarine Shard"),
_doc_items_longdesc = doc.sub.items.temp.craftitem,
inventory_image = "mcl_ocean_prismarine_shard.png",
stack_max = 64,