Fix drop string translations
This commit is contained in:
parent
bd441a0a2f
commit
e995c29bda
13
init.lua
13
init.lua
@ -1,4 +1,5 @@
|
|||||||
local S = minetest.get_translator("doc_items")
|
local S = minetest.get_translator("doc_items")
|
||||||
|
local N = function(s) return s end
|
||||||
|
|
||||||
doc.sub.items = {}
|
doc.sub.items = {}
|
||||||
|
|
||||||
@ -835,15 +836,15 @@ doc.add_category("nodes", {
|
|||||||
local dropstring = ""
|
local dropstring = ""
|
||||||
local dropstring_base = ""
|
local dropstring_base = ""
|
||||||
if max == nil then
|
if max == nil then
|
||||||
dropstring_base = S("This block will drop the following items when mined: %s.")
|
dropstring_base = N("This block will drop the following items when mined: @1.")
|
||||||
elseif max == 1 then
|
elseif max == 1 then
|
||||||
if #data.def.drop.items == 1 then
|
if #data.def.drop.items == 1 then
|
||||||
dropstring_base = S("This block will drop the following when mined: %s.")
|
dropstring_base = N("This block will drop the following when mined: @1.")
|
||||||
else
|
else
|
||||||
dropstring_base = S("This block will randomly drop one of the following when mined: %s.")
|
dropstring_base = N("This block will randomly drop one of the following when mined: @1.")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
dropstring_base = S("This block will randomly drop up to %d drops of the following possible drops when mined: %s.")
|
dropstring_base = N("This block will randomly drop up to @1 drops of the following possible drops when mined: @2.")
|
||||||
end
|
end
|
||||||
-- Save calculated probabilities into a table for later output
|
-- Save calculated probabilities into a table for later output
|
||||||
local probtables = {}
|
local probtables = {}
|
||||||
@ -957,9 +958,9 @@ doc.add_category("nodes", {
|
|||||||
pcount = pcount + 1
|
pcount = pcount + 1
|
||||||
end
|
end
|
||||||
if max ~= nil and max > 1 then
|
if max ~= nil and max > 1 then
|
||||||
datastring = datastring .. string.format(dropstring_base, max, dropstring)
|
datastring = datastring .. S(dropstring_base, max, dropstring)
|
||||||
else
|
else
|
||||||
datastring = datastring .. string.format(dropstring_base, dropstring)
|
datastring = datastring .. S(dropstring_base, dropstring)
|
||||||
end
|
end
|
||||||
datastring = newline(datastring)
|
datastring = newline(datastring)
|
||||||
end
|
end
|
||||||
|
@ -90,13 +90,13 @@ This block points to liquids.=Mit diesem Block zeigt man auf Flüssigkeiten.
|
|||||||
This block will drop as an item when a falling block ends up inside it.=Dieser Block wird sich als Gegenstand abwerfen, wenn ein fallender Block in ihn landet.
|
This block will drop as an item when a falling block ends up inside it.=Dieser Block wird sich als Gegenstand abwerfen, wenn ein fallender Block in ihn landet.
|
||||||
This block will drop as an item when it is not attached to a surrounding block.=Dieser Block wird sich als Gegenstand abwerfen, wenn er nicht an einen benachbarten Block befestigt ist.
|
This block will drop as an item when it is not attached to a surrounding block.=Dieser Block wird sich als Gegenstand abwerfen, wenn er nicht an einen benachbarten Block befestigt ist.
|
||||||
This block will drop as an item when no collidable block is below it.=Dieser Block wird sich als Gegenstand abwerfen, wenn kein kollidierender Block unter ihn liegt.
|
This block will drop as an item when no collidable block is below it.=Dieser Block wird sich als Gegenstand abwerfen, wenn kein kollidierender Block unter ihn liegt.
|
||||||
This block will drop the following items when mined: %s.=Dieser Block wird nach dem Abbauen die folgenden Gegenstände abwerfen: %s.
|
This block will drop the following items when mined: @1.=Dieser Block wird nach dem Abbauen die folgenden Gegenstände abwerfen: @1.
|
||||||
This block will drop the following when mined: @1×@2.=Dieser Block wird nach dem Abbauen folgendes abwerfen: @1×@2.
|
This block will drop the following when mined: @1×@2.=Dieser Block wird nach dem Abbauen folgendes abwerfen: @1×@2.
|
||||||
This block will drop the following when mined: @1.=Dieser Block wird nach dem Abbauen folgendes abwerfen: @1.
|
This block will drop the following when mined: @1.=Dieser Block wird nach dem Abbauen folgendes abwerfen: @1.
|
||||||
This block will drop the following when mined: %s.=Dieser Block wird nach dem Abbauen folgendes abwerfen: %s.
|
This block will drop the following when mined: @1.=Dieser Block wird nach dem Abbauen folgendes abwerfen: @1.
|
||||||
This block will make you bounce off with an elasticity of @1%.=Dieser Block wird Sie mit einer Elastizität von @1% abprallen lassen.
|
This block will make you bounce off with an elasticity of @1%.=Dieser Block wird Sie mit einer Elastizität von @1% abprallen lassen.
|
||||||
This block will randomly drop one of the following when mined: %s.=Dieser Block wird nach dem Abbauen zufällig eines von den folgenden Dingen abwerfen: %s.
|
This block will randomly drop one of the following when mined: @1.=Dieser Block wird nach dem Abbauen zufällig eines von den folgenden Dingen abwerfen: @1.
|
||||||
This block will randomly drop up to %d drops of the following possible drops when mined: %s.=Dieser Block nach dem Abbauen wird zufällig bis zu %d Abwürfe von den folgenden möglichen Abwürfen abwerfen: %s.
|
This block will randomly drop up to @1 drops of the following possible drops when mined: @2.=Dieser Block nach dem Abbauen wird zufällig bis zu @1 Abwürfe von den folgenden möglichen Abwürfen abwerfen: @2.
|
||||||
This block won't drop anything when mined.=Dieser Block wird nach dem Abbauen nichts abwerfen.
|
This block won't drop anything when mined.=Dieser Block wird nach dem Abbauen nichts abwerfen.
|
||||||
This is a decorational block.=Dieser Block dient zur Dekoration.
|
This is a decorational block.=Dieser Block dient zur Dekoration.
|
||||||
This is a melee weapon which deals damage by punching.=Dies ist eine Nahkampfwaffe, welche Schaden durch Schläge verursacht.
|
This is a melee weapon which deals damage by punching.=Dies ist eine Nahkampfwaffe, welche Schaden durch Schläge verursacht.
|
||||||
|
@ -89,13 +89,13 @@ This block points to liquids. =
|
|||||||
This block will drop as an item when a falling block ends up inside it. =
|
This block will drop as an item when a falling block ends up inside it. =
|
||||||
This block will drop as an item when it is not attached to a surrounding block. =
|
This block will drop as an item when it is not attached to a surrounding block. =
|
||||||
This block will drop as an item when no collidable block is below it. =
|
This block will drop as an item when no collidable block is below it. =
|
||||||
This block will drop the following items when mined: %s. =
|
This block will drop the following items when mined: @1. =
|
||||||
This block will drop the following when mined: @1×@2. =
|
This block will drop the following when mined: @1×@2. =
|
||||||
This block will drop the following when mined: @1. =
|
This block will drop the following when mined: @1. =
|
||||||
This block will drop the following when mined: %s. =
|
This block will drop the following when mined: @1. =
|
||||||
This block will make you bounce off with an elasticity of @1%. =
|
This block will make you bounce off with an elasticity of @1%. =
|
||||||
This block will randomly drop one of the following when mined: %s. =
|
This block will randomly drop one of the following when mined: @1. =
|
||||||
This block will randomly drop up to %d drops of the following possible drops when mined: %s. =
|
This block will randomly drop up to @1 drops of the following possible drops when mined: @2. =
|
||||||
This block won't drop anything when mined. =
|
This block won't drop anything when mined. =
|
||||||
This is a decorational block. =
|
This is a decorational block. =
|
||||||
This is a melee weapon which deals damage by punching. =
|
This is a melee weapon which deals damage by punching. =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user