Translate Spanish text to English across docs and code

This commit is contained in:
Pandipipas
2026-02-24 00:37:48 +01:00
parent fdc013bdb7
commit 12b85e6579
13 changed files with 262 additions and 282 deletions
+9 -9
View File
@@ -16,11 +16,11 @@ function parsePort(name, fallback) {
const raw = process.env[name] ?? fallback;
const parsed = Number.parseInt(raw, 10);
if (!Number.isFinite(parsed) || parsed < 1 || parsed > 65535) {
addCheck(false, `${name} inválido`, `Debe ser un entero entre 1 y 65535. Valor recibido: '${raw}'.`);
addCheck(false, `${name} invalid`, `It must be an integer between 1 and 65535. Received value: '${raw}'.`);
return null;
}
addCheck(true, `${name} válido`, `${parsed}`);
addCheck(true, `${name} valid`, `${parsed}`);
return parsed;
}
@@ -28,11 +28,11 @@ function parseIntInRange(name, fallback, min, max) {
const raw = process.env[name] ?? String(fallback);
const parsed = Number.parseInt(raw, 10);
if (!Number.isFinite(parsed) || parsed < min || parsed > max) {
addCheck(false, `${name} inválido`, `Debe ser un entero entre ${min} y ${max}. Valor recibido: '${raw}'.`);
addCheck(false, `${name} invalid`, `It must be an integer between ${min} and ${max}. Received value: '${raw}'.`);
return;
}
addCheck(true, `${name} válido`, `${parsed}`);
addCheck(true, `${name} valid`, `${parsed}`);
}
function checkNodecgInstall() {
@@ -46,9 +46,9 @@ function checkNodecgInstall() {
try {
fs.accessSync(nodecgRootPath, fs.constants.R_OK | fs.constants.W_OK);
addCheck(true, "Permisos lib/nodecg", "Lectura/escritura OK");
addCheck(true, "lib/nodecg permissions", "Read/write OK");
} catch {
addCheck(false, "Permisos lib/nodecg", "Sin permisos de lectura/escritura en lib/nodecg");
addCheck(false, "lib/nodecg permissions", "No read/write permissions in lib/nodecg");
}
}
@@ -57,13 +57,13 @@ function checkPortAvailability(port) {
const server = net.createServer();
server.once("error", () => {
addCheck(false, `Puerto ${port}`, "Está ocupado. Libéralo o cambia NODECG_PORT.");
addCheck(false, `Port ${port}`, "It is in use. Free it or change NODECG_PORT.");
resolve();
});
server.listen(port, "127.0.0.1", () => {
server.close(() => {
addCheck(true, `Puerto ${port}`, "Disponible");
addCheck(true, `Port ${port}`, "Available");
resolve();
});
});
@@ -92,7 +92,7 @@ async function main() {
return;
}
console.log("\nDoctor finalizado: configuración válida.");
console.log("\nDoctor finished: valid configuration.");
}
main();