Translate everything to english

This commit is contained in:
Max
2026-06-01 13:31:37 +02:00
parent 2a15e704b2
commit 14961629f2
+11 -11
View File
@@ -1,5 +1,5 @@
local mon = peripheral.find("monitor")
assert(mon, "Kein Monitor gefunden")
assert(mon, "No monitor found")
local monName = peripheral.getName(mon)
mon.setTextScale(0.5)
@@ -13,8 +13,8 @@ local function ensureDependency(path, url)
return
end
assert(shell and type(shell.run) == "function", "Shell API nicht verfuegbar")
assert(shell.run("wget", url, path) and fs.exists(path), "Konnte Abhaengigkeit nicht laden: " .. path)
assert(shell and type(shell.run) == "function", "Shell API is not available")
assert(shell.run("wget", url, path) and fs.exists(path), "Could not download dependency: " .. path)
end
ensureDependency("Pine3D.lua", "https://raw.githubusercontent.com/Xella37/Pine3D/main/Pine3D.lua")
@@ -46,7 +46,7 @@ local function ensureChainsLoaded()
local data = textutils.unserializeJSON(file.readAll())
file.close()
assert(type(data) == "table" and type(data.chains) == "table", "Ungueltige JSON-Daten")
assert(type(data) == "table" and type(data.chains) == "table", "Invalid JSON data")
chainItemsByBaseId = {}
baseItemIds = {}
@@ -329,9 +329,9 @@ local function drawNfpScaled(buffer, img, x, y, scaleX, scaleY)
for imgY, row in pairs(img) do
for imgX, col in pairs(row) do
-- WICHTIG:
-- Nur echte ComputerCraft-Farben in den Pine3D-Buffer schreiben.
-- Keine Strings, keine nils, keine 0.
-- IMPORTANT:
-- Only write real ComputerCraft colors into the Pine3D buffer.
-- No strings, no nil values, no 0.
if type(col) == "number" and col > 0 then
local px = x + (imgX - 1) * scaleX
local py = y + (imgY - 1) * scaleY
@@ -401,14 +401,14 @@ local function assertBufferValid(frame)
local c = frame.buffer.colorValues[y][x]
if not valid[c] then
error("Ungueltiger Pixel im Buffer bei x=" .. x .. ", y=" .. y .. ": " .. tostring(c))
error("Invalid pixel in buffer at x=" .. x .. ", y=" .. y .. ": " .. tostring(c))
end
end
end
end
local function drawItem(img, cellX, cellY, count, offsetY)
-- Normale Monitor-Zellen in Pine3D-Teletext-Pixel umrechnen.
-- Convert normal monitor cells into Pine3D teletext pixels.
local x = cellToPixelX(cellX)
local y = cellToPixelY(cellY) + (offsetY or 0)
@@ -441,10 +441,10 @@ local function drawItem(img, cellX, cellY, count, offsetY)
}
if bottomY >= 1 and y <= frame.buffer.height then
-- Schatten
-- Shadow
mf.writeOn(frame, text, colors.black, rightX + 1, bottomY + 1, options)
-- Weißer Count
-- White count
mf.writeOn(frame, text, colors.white, rightX, bottomY, options)
end
end