From 14961629f28b22c2b17207b136256db18f13e965 Mon Sep 17 00:00:00 2001 From: Max <33982882+maxboeer@users.noreply.github.com> Date: Mon, 1 Jun 2026 13:31:37 +0200 Subject: [PATCH] Translate everything to english --- compcount.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/compcount.lua b/compcount.lua index 46dde2c..69e2d3b 100644 --- a/compcount.lua +++ b/compcount.lua @@ -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