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,7 +1,8 @@
-- Building blocks and decorative nodes
local S = minetest.get_translator("mcl_end")
minetest.register_node("mcl_end:end_stone", {
description = "End Stone",
description = S("End Stone"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"mcl_end_end_stone.png"},
stack_max = 64,
@ -12,7 +13,7 @@ minetest.register_node("mcl_end:end_stone", {
})
minetest.register_node("mcl_end:end_bricks", {
description = "End Stone Bricks",
description = S("End Stone Bricks"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"mcl_end_end_bricks.png"},
is_ground_content = false,
@ -24,7 +25,7 @@ minetest.register_node("mcl_end:end_bricks", {
})
minetest.register_node("mcl_end:purpur_block", {
description = "Purpur Block",
description = S("Purpur Block"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"mcl_end_purpur_block.png"},
is_ground_content = false,
@ -36,7 +37,7 @@ minetest.register_node("mcl_end:purpur_block", {
})
minetest.register_node("mcl_end:purpur_pillar", {
description = "Purpur Pillar",
description = S("Purpur Pillar"),
_doc_items_longdesc = doc.sub.items.temp.build,
stack_max = 64,
paramtype2 = "facedir",
@ -50,8 +51,8 @@ minetest.register_node("mcl_end:purpur_pillar", {
})
minetest.register_node("mcl_end:end_rod", {
description = "End Rod",
_doc_items_longdesc = "End rods are decorational light sources.",
description = S("End Rod"),
_doc_items_longdesc = S("End rods are decorational light sources."),
tiles = {
"mcl_end_end_rod_top.png",
"mcl_end_end_rod_bottom.png",
@ -125,8 +126,8 @@ minetest.register_node("mcl_end:end_rod", {
})
minetest.register_node("mcl_end:dragon_egg", {
description = "Dragon Egg",
_doc_items_longdesc = "A dragon egg is a decorational item which can be placed.",
description = S("Dragon Egg"),
_doc_items_longdesc = S("A dragon egg is a decorational item which can be placed."),
tiles = {
"mcl_end_dragon_egg.png",
"mcl_end_dragon_egg.png",

View file

@ -1,6 +1,7 @@
-- Chorus plants
-- This includes chorus flowers, chorus plant stem nodes and chorus fruit
local S = minetest.get_translator("mcl_end")
--- Plant parts ---
@ -24,9 +25,9 @@ local function round(num, idp)
end
minetest.register_node("mcl_end:chorus_flower", {
description = "Chorus Flower",
_doc_items_longdesc = "A chorus flower is the living part of a chorus plant. It can grow into a tall chorus plant, step by step. When it grows, it may die on old age eventually. It also dies when it is unable to grow.",
_doc_items_usagehelp = "Place it and wait for it to grow. It can only be placed on top of end stone, on top of a chorus plant stem, or at the side of exactly a chorus plant stem.",
description = S("Chorus Flower"),
_doc_items_longdesc = S("A chorus flower is the living part of a chorus plant. It can grow into a tall chorus plant, step by step. When it grows, it may die on old age eventually. It also dies when it is unable to grow."),
_doc_items_usagehelp = S("Place it and wait for it to grow. It can only be placed on top of end stone, on top of a chorus plant stem, or at the side of exactly a chorus plant stem."),
tiles = {
"mcl_end_chorus_flower.png",
"mcl_end_chorus_flower.png",
@ -108,8 +109,8 @@ minetest.register_node("mcl_end:chorus_flower", {
})
minetest.register_node("mcl_end:chorus_flower_dead", {
description = "Dead Chorus Flower",
_doc_items_longdesc = "This is a part of a chorus plant. It doesn't grow. Chorus flowers die of old age or when they are unable to grow. A dead chorus flower can be harvested to obtain a fresh chorus flower which is able to grow again.",
description = S("Dead Chorus Flower"),
_doc_items_longdesc = S("This is a part of a chorus plant. It doesn't grow. Chorus flowers die of old age or when they are unable to grow. A dead chorus flower can be harvested to obtain a fresh chorus flower which is able to grow again."),
tiles = {
"mcl_end_chorus_flower_dead.png",
"mcl_end_chorus_flower_dead.png",
@ -131,8 +132,8 @@ minetest.register_node("mcl_end:chorus_flower_dead", {
})
minetest.register_node("mcl_end:chorus_plant", {
description = "Chorus Plant Stem",
_doc_items_longdesc = "A chorus plant stem is the part of a chorus plant which holds the whole plant together. It needs end stone as its soil. Stems are grown from chorus flowers.",
description = S("Chorus Plant Stem"),
_doc_items_longdesc = S("A chorus plant stem is the part of a chorus plant which holds the whole plant together. It needs end stone as its soil. Stems are grown from chorus flowers."),
tiles = {
"mcl_end_chorus_plant.png",
"mcl_end_chorus_plant.png",
@ -356,8 +357,8 @@ local eat_chorus_fruit = function(itemstack, player, pointed_thing)
end
minetest.register_craftitem("mcl_end:chorus_fruit", {
description = "Chorus Fruit",
_doc_items_longdesc = "A chorus fruit is an edible fruit from the chorus plant which is home to the End. Eating it teleports you to the top of a random solid block nearby, provided you won't end up inside a liquid, solid or harmful blocks. Teleportation might fail if there are very few or no places to teleport to.",
description = S("Chorus Fruit"),
_doc_items_longdesc = S("A chorus fruit is an edible fruit from the chorus plant which is home to the End. Eating it teleports you to the top of a random solid block nearby, provided you won't end up inside a liquid, solid or harmful blocks. Teleportation might fail if there are very few or no places to teleport to."),
wield_image = "mcl_end_chorus_fruit.png",
inventory_image = "mcl_end_chorus_fruit.png",
on_place = eat_chorus_fruit,
@ -368,7 +369,7 @@ minetest.register_craftitem("mcl_end:chorus_fruit", {
})
minetest.register_craftitem("mcl_end:chorus_fruit_popped", {
description = "Popped Chorus Fruit",
description = S("Popped Chorus Fruit"),
_doc_items_longdesc = doc.sub.items.temp.craftitem,
wield_image = "mcl_end_chorus_fruit_popped.png",
inventory_image = "mcl_end_chorus_fruit_popped.png",

View file

@ -1,4 +1,5 @@
-- Eye of Ender
local S = minetest.get_translator("mcl_end")
minetest.register_entity("mcl_end:ender_eye", {
physical = false,
@ -72,9 +73,9 @@ minetest.register_entity("mcl_end:ender_eye", {
})
minetest.register_craftitem("mcl_end:ender_eye", {
description = "Eye of Ender",
_doc_items_longdesc = "This item is used to locate End portal shrines in the Overworld and to activate End portals." .. "\n" .. "NOTE: The End dimension is currently incomplete and boring.",
_doc_items_usagehelp = "Use the attack key to release the eye of ender. It will rise and fly in the horizontal direction of the closest end portal shrine. If you're very close, the eye of ender will take the direct path to the End portal shrine instead. After a few seconds, it stops. It may drop as an item, but there's a 20% chance it shatters." .. "\n" .. "To activate an End portal, eyes of ender need to be placed into each block of an intact End portal frame.",
description = S("Eye of Ender"),
_doc_items_longdesc = S("This item is used to locate End portal shrines in the Overworld and to activate End portals." .. "\n" .. "NOTE: The End dimension is currently incomplete and boring."),
_doc_items_usagehelp = S("Use the attack key to release the eye of ender. It will rise and fly in the horizontal direction of the closest end portal shrine. If you're very close, the eye of ender will take the direct path to the End portal shrine instead. After a few seconds, it stops. It may drop as an item, but there's a 20% chance it shatters.") .. "\n" .. S("To activate an End portal, eyes of ender need to be placed into each block of an intact End portal frame."),
wield_image = "mcl_end_ender_eye.png",
inventory_image = "mcl_end_ender_eye.png",
stack_max = 64,