mirror of
https://github.com/Pandipipas/scoreko-dev.git
synced 2026-06-06 03:32:06 +00:00
Translate Spanish UI and runtime strings to English
This commit is contained in:
+7
-7
@@ -34,7 +34,7 @@ function waitForServer(url, timeoutMs = 30_000) {
|
||||
}
|
||||
|
||||
if (Date.now() - started > timeoutMs) {
|
||||
rejectPromise(new Error('NodeCG no respondió a tiempo.'));
|
||||
rejectPromise(new Error('NodeCG did not respond in time.'));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ function waitForServer(url, timeoutMs = 30_000) {
|
||||
|
||||
request.on('error', () => {
|
||||
if (Date.now() - started > timeoutMs) {
|
||||
rejectPromise(new Error('No fue posible conectar a NodeCG.'));
|
||||
rejectPromise(new Error('Could not connect to NodeCG.'));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -71,8 +71,8 @@ function startNodeCG() {
|
||||
nodecgProcess.on('exit', (code) => {
|
||||
if (!app.isQuiting) {
|
||||
dialog.showErrorBox(
|
||||
'NodeCG finalizado',
|
||||
`El proceso de NodeCG terminó inesperadamente con código ${code ?? 'desconocido'}.`
|
||||
'NodeCG exited',
|
||||
`The NodeCG process ended unexpectedly with code ${code ?? 'unknown'}.`
|
||||
);
|
||||
app.quit();
|
||||
}
|
||||
@@ -80,8 +80,8 @@ function startNodeCG() {
|
||||
|
||||
nodecgProcess.on('error', (error) => {
|
||||
dialog.showErrorBox(
|
||||
'No se pudo iniciar NodeCG',
|
||||
`No se pudo ejecutar \"${runtimeBinary}\". ${useElectronNodeForNodeCG ? 'Desactivá NODECG_USE_ELECTRON_NODE o revisá Electron.' : 'Definí NODE_BINARY con la ruta de Node.js.'}\n\nDetalle: ${error.message}`
|
||||
'Could not start NodeCG',
|
||||
`Could not run \"${runtimeBinary}\". ${useElectronNodeForNodeCG ? 'Disable NODECG_USE_ELECTRON_NODE or check your Electron setup.' : 'Set NODE_BINARY to your Node.js path.'}\n\nDetails: ${error.message}`
|
||||
);
|
||||
app.quit();
|
||||
});
|
||||
@@ -117,7 +117,7 @@ app.whenReady().then(async () => {
|
||||
await waitForServer(`http://127.0.0.1:${nodecgPort}`);
|
||||
await createWindow();
|
||||
} catch (error) {
|
||||
dialog.showErrorBox('No se pudo iniciar', error instanceof Error ? error.message : String(error));
|
||||
dialog.showErrorBox('Could not start', error instanceof Error ? error.message : String(error));
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user