Add missing translation for some redstone nodes

This commit is contained in:
Wuzzy 2019-12-09 22:02:35 +01:00
parent f04170d66b
commit 47f7b21190
6 changed files with 21 additions and 9 deletions

View file

@ -287,16 +287,18 @@ for _, state in pairs{mesecon.state.on, mesecon.state.off} do
nodedef.groups = table.copy(nodedef.groups)
nodedef.groups.not_in_creative_inventory = 1
local extra_desc = {}
if mode == "sub" then
table.insert(extra_desc, "Subtract")
if mode == "sub" or state == mesecon.state.on then
nodedef.inventory_image = nil
end
if state == mesecon.state.on then
table.insert(extra_desc, "Powered")
nodedef.inventory_image = nil
local desc = nodedef.description
if mode ~= "sub" and state == mesecon.state.on then
desc = S("Redstone Comparator (Powered)")
elseif mode == "sub" and state ~= mesecon.state.on then
desc = S("Redstone Comparator (Subtract)")
elseif mode == "sub" and state == mesecon.state.on then
desc = S("Redstone Comparator (Subtract, Powered)")
end
nodedef.description = nodedef.description..
" ("..table.concat(extra_desc, ", ")..")"
nodedef.description = desc
end
minetest.register_node(nodename, nodedef)

View file

@ -7,3 +7,6 @@ The side inputs are only powered by normal redstone power. The redstone comparat
Transmission mode:@nThe front torch is unlit and lowered. The output is powered if, and only if the main input is powered. The two side inputs are ignored.=Übertragungsmodus:@nDie vordere Fackel ist eingefahren und leuchtet nicht auf. Die Ausgabe gibt ein Signal, wenn, nur nur wenn der Haupteingang bestromt wird. Die zwei Seiteneingänge werden ignoriert.
Subtraction mode:@nThe front torch is lit. The output is powered if, and only if the main input is powered and none of the side inputs is powered.=Subtraktionsmodus:@nDie vordere Fackel leuchtet auf. Die Ausgabe gibt ein Signal wenn, nur nur wenn der Haupteingang versorgt wird und keiner der Seiteneingänge bestromt ist.
Redstone Comparator=Redstonekomparator
Redstone Comparator (Subtract)=Redstonekomparator (subtrahieren)
Redstone Comparator (Powered)=Redstonekomparator (bestromt)
Redstone Comparator (Subtract, Powered)=Redstonekomparator (subtrahieren, bestromt)

View file

@ -7,3 +7,6 @@ The side inputs are only powered by normal redstone power. The redstone comparat
Transmission mode:@nThe front torch is unlit and lowered. The output is powered if, and only if the main input is powered. The two side inputs are ignored.=
Subtraction mode:@nThe front torch is lit. The output is powered if, and only if the main input is powered and none of the side inputs is powered.=
Redstone Comparator=
Redstone Comparator (Subtract)=
Redstone Comparator (Powered)=
Redstone Comparator (Subtract, Powered)=