aaaf863a78
Tarea 080 y su agregado. El backend sondea gpu02 cada 15-30 s (solo GET /health, /slots, /props, /v1/models y el nvidia_gpu_exporter :9835), una vez para todas las pestañas. Los tiempos y fallas salen de los pedidos reales de cada canal: orbisubs.py y orbisubs_tr.py ahora escriben t, audio_s y error en sus .jsonl, y el panel los guarda 7 días en engine_reqs. Avisos en Eventos y punto en el menú: motor sin respuesta dos sondeos seguidos, p95 de 15 min sobre el umbral (3 s) y VRAM libre de la 3060 bajo 512 MiB.
259 lines
15 KiB
JavaScript
259 lines
15 KiB
JavaScript
/* i18n.js — textos en inglés del panel OrbiSubs (orbi-lang.js).
|
||
*
|
||
* Igual que en OrbiStream: la clave es el texto en español tal como está en
|
||
* index.html (data-i18n) o en t('…') de app.js / url-parse.js. {x} son valores
|
||
* que pone el código.
|
||
*/
|
||
OrbiLang.add({ en: {
|
||
// ---- General ----
|
||
'OrbiSubs — Subtítulos en vivo': 'OrbiSubs — Live subtitles',
|
||
'Subtítulos en vivo': 'Live subtitles',
|
||
'Sin conexión con la API — reintentando…': 'No connection to the API — retrying…',
|
||
'Sin conexión con la API': 'No connection to the API',
|
||
'No autenticado': 'Not authenticated',
|
||
'Navegación principal': 'Main navigation',
|
||
'Canales': 'Channels',
|
||
'Eventos': 'Events',
|
||
'⎋ Salir': '⎋ Log out',
|
||
'Cerrar sesión': 'Log out',
|
||
'Cerrar': 'Close',
|
||
'Cancelar': 'Cancel',
|
||
'Editar': 'Edit',
|
||
'Eliminar': 'Delete',
|
||
'Iniciar': 'Start',
|
||
'Parar': 'Stop',
|
||
'Ver': 'View',
|
||
'Copiar URL': 'Copy URL',
|
||
// ---- Login ----
|
||
'Usuario': 'User',
|
||
'Contraseña': 'Password',
|
||
'Entrar': 'Sign in',
|
||
'Clave nueva': 'New password',
|
||
'Repetir la clave nueva': 'Repeat the new password',
|
||
'Guardar y entrar': 'Save and sign in',
|
||
'La cuenta <b>{u}</b> tiene la clave inicial. Elige una nueva para seguir (mínimo {n} caracteres).': 'The account <b>{u}</b> still has the initial password. Choose a new one to continue (at least {n} characters).',
|
||
'Usuario o contraseña incorrectos': 'Wrong user or password',
|
||
'Demasiados intentos. Prueba de nuevo en unos minutos.': 'Too many attempts. Try again in a few minutes.',
|
||
'El pase venció: vuelve a entrar con la clave inicial': 'The pass expired: sign in again with the initial password',
|
||
'Las dos claves no coinciden': 'The two passwords do not match',
|
||
'La contraseña tiene que tener al menos 8 caracteres': 'The password must have at least 8 characters',
|
||
'La clave nueva no puede ser la inicial ni el nombre de usuario': 'The new password cannot be the initial one or the user name',
|
||
// ---- Lista ----
|
||
'Subtítulos automáticos en vivo · actualización 5 s': 'Automatic live subtitles · refresh 5 s',
|
||
'+ Nuevo canal': '+ New channel',
|
||
'Estado': 'Status',
|
||
'Nombre': 'Name',
|
||
'Entrada': 'Input',
|
||
'Idiomas': 'Languages',
|
||
'Salidas': 'Outputs',
|
||
'Retraso': 'Delay',
|
||
'Último subtítulo': 'Last subtitle',
|
||
'Acciones': 'Actions',
|
||
'corriendo': 'running',
|
||
'parado': 'stopped',
|
||
'error': 'error',
|
||
'arrancando': 'starting',
|
||
'deshabilitado': 'disabled',
|
||
'{n} seg. sostenidos': '{n} seg. held',
|
||
'No hay canales configurados. Crea el primero con «+ Nuevo canal».': 'No channels configured. Create the first one with «+ New channel».',
|
||
'Como máximo <b>2 canales andando a la vez</b>: el reconocimiento y la traducción corren en gpu02, que es compartido.': 'At most <b>2 channels running at the same time</b>: recognition and translation run on gpu02, which is shared.',
|
||
'Iniciar y parar: disponible al cerrar la 078': 'Start and stop: available once task 078 is closed',
|
||
'¿Borrar el canal «{n}»?': 'Delete channel «{n}»?',
|
||
'El canal está andando: detenlo antes de borrarlo': 'The channel is running: stop it before deleting it',
|
||
// ---- Modal ----
|
||
'Nuevo canal': 'New channel',
|
||
'Editar canal: {n}': 'Edit channel: {n}',
|
||
'Nombre visible del canal en el panel.': 'Channel name shown in the panel.',
|
||
'Id corto': 'Short id',
|
||
'Minúsculas, números y guiones. Se usa en las rutas (/hls/<id>/) y en los servicios.': 'Lowercase, digits and dashes. Used in the paths (/hls/<id>/) and in the services.',
|
||
'Canal habilitado': 'Channel enabled',
|
||
'Pegado rápido': 'Quick paste',
|
||
'srt://origen:10013?latency=200&streamid=… — se reparte solo en los campos de abajo': 'srt://source:10013?latency=200&streamid=… — it is split into the fields below',
|
||
'Rellenar': 'Fill in',
|
||
'Campos rellenados.': 'Fields filled in.',
|
||
'RTMP no está soportado como entrada (SRT, UDP o HLS).': 'RTMP is not supported as input (SRT, UDP or HLS).',
|
||
'Tipo': 'Type',
|
||
'Modo': 'Mode',
|
||
'Caller (marca al origen)': 'Caller (calls the source)',
|
||
'Listener (espera al origen)': 'Listener (waits for the source)',
|
||
'Puerto': 'Port',
|
||
'(opcional)': '(optional)',
|
||
'Lista .m3u8 de la fuente (http o https).': 'Source .m3u8 playlist (http or https).',
|
||
'Programa': 'Program',
|
||
'(el primero)': '(the first one)',
|
||
'Solo si la fuente trae más de un servicio (MPTS).': 'Only if the source carries more than one service (MPTS).',
|
||
'PID de audio': 'Audio PID',
|
||
'Solo si hay más de un audio (por ejemplo, SAP).': 'Only if there is more than one audio (for example, SAP).',
|
||
'Reconocimiento': 'Recognition',
|
||
'Idioma del audio': 'Audio language',
|
||
'Español': 'Spanish',
|
||
'Inglés': 'English',
|
||
'Portugués': 'Portuguese',
|
||
'URL del motor (whisper.cpp)': 'Engine URL (whisper.cpp)',
|
||
'gpu02 :8004 por defecto. Solo se usa POST /inference, de a un pedido.': 'gpu02 :8004 by default. Only POST /inference is used, one request at a time.',
|
||
'Prompt fijo (opcional)': 'Fixed prompt (optional)',
|
||
'Noticias de Chile. Nombres: Coyhaique, Boric…': 'Chilean news. Names: Coyhaique, Boric…',
|
||
'Ayuda con nombres propios y siglas. Vacío = el prompt con puntuación de siempre.': 'Helps with proper names and acronyms. Empty = the usual punctuated prompt.',
|
||
'Traducción': 'Translation',
|
||
'Inglés (English)': 'English',
|
||
'URL del LLM': 'LLM URL',
|
||
'gpu02 :8001 por defecto (Qwen).': 'gpu02 :8001 by default (Qwen).',
|
||
'Salida HLS': 'HLS output',
|
||
'Habilitada': 'Enabled',
|
||
'Largo de segmento (s)': 'Segment length (s)',
|
||
'Segmentos en la lista': 'Segments in the playlist',
|
||
'Master HLS': 'HLS master',
|
||
'Player': 'Player',
|
||
'Salida SRT': 'SRT output',
|
||
'Salida SRT (caller a)': 'SRT output (caller to)',
|
||
'Listener (los clientes marcan acá)': 'Listener (clients call here)',
|
||
'Caller (marca a un destino)': 'Caller (calls a destination)',
|
||
'Destino (host)': 'Destination (host)',
|
||
'Retraso fijo del video (s)': 'Fixed video delay (s)',
|
||
'Lo justo para que el subtítulo (y el inglés, que llega después) caiga a tiempo.': 'Just enough for the subtitle (and the English one, which comes later) to land on time.',
|
||
'608 (idioma del audio / inglés)': '608 (audio language / English)',
|
||
'708 servicio (idioma del audio / inglés)': '708 service (audio language / English)',
|
||
'(no va)': '(none)',
|
||
'Guardar canal': 'Save channel',
|
||
'Falta el nombre': 'The name is missing',
|
||
'Falta el host de la entrada SRT': 'The SRT input host is missing',
|
||
'Falta el puerto de la entrada': 'The input port is missing',
|
||
'Id corto: minúsculas, números y guiones, hasta 31, empezando con letra o número': 'Short id: lowercase, digits and dashes, up to 31, starting with a letter or digit',
|
||
'Ya hay un canal con el id corto "{s}"': 'There is already a channel with the short id "{s}"',
|
||
'El puerto {p} ya lo usa el canal "{n}"': 'Port {p} is already used by channel "{n}"',
|
||
'Entrada HLS: la URL tiene que apuntar a una lista .m3u8': 'HLS input: the URL must point to an .m3u8 playlist',
|
||
'Entrada UDP: tiene que ser udp://ip:puerto (o udp://@239.x.x.x:puerto)': 'UDP input: it must be udp://ip:port (or udp://@239.x.x.x:port)',
|
||
'El canal necesita al menos una salida (HLS o SRT)': 'The channel needs at least one output (HLS or SRT)',
|
||
'Detén el canal antes de cambiarle el id corto': 'Stop the channel before changing its short id',
|
||
// ---- Ver canal ----
|
||
'Subtítulos': 'Subtitles',
|
||
'Apagados': 'Off',
|
||
'Detrás del borde: {s} s': 'Behind the live edge: {s} s',
|
||
'Retraso del canal': 'Channel delay',
|
||
'Whisper (gpu02)': 'Whisper (gpu02)',
|
||
'Traducción (gpu02)': 'Translation (gpu02)',
|
||
'mediana de {n} pedidos · {f} fallas en 1 h': 'median of {n} requests · {f} failures in 1 h',
|
||
'inglés {s} s detrás': 'English {s} s behind',
|
||
'retraso fijo': 'fixed delay',
|
||
'tarde': 'late',
|
||
'perdidos': 'lost',
|
||
'sin métricas': 'no metrics',
|
||
'sin subtítulos todavía': 'no subtitles yet',
|
||
'Guardando y reiniciando…': 'Saving and restarting…',
|
||
'Por ahora la traducción es solo de español a inglés': 'For now translation is only from Spanish to English',
|
||
'Puerto de la salida SRT: entre 1024 y 55000': 'SRT output port: between 1024 and 55000',
|
||
'Hasta 55000. En listener toma también el siguiente (prueba interna).': 'Up to 55000. As listener it also takes the next one (internal test).',
|
||
'Prueba interna: HLS con -c copy desde la salida SRT (/hls/<id>-cc/, como OrbiOrigin)': 'Internal test: HLS with -c copy from the SRT output (/hls/<id>-cc/, like OrbiOrigin)',
|
||
'La salida SRT se arma con los mismos segmentos: apagar la salida HLS solo deja de anunciarla en el panel.': 'The SRT output is built from the same segments: turning the HLS output off only stops listing it in the panel.',
|
||
'HLS desde la salida SRT (608)': 'HLS from the SRT output (608)',
|
||
// ---- Eventos ----
|
||
'Últimos 200 eventos del panel': 'Last 200 panel events',
|
||
'Fecha': 'Date',
|
||
'Nivel': 'Level',
|
||
'Canal': 'Channel',
|
||
'Mensaje': 'Message',
|
||
'Sin eventos registrados.': 'No events recorded.',
|
||
'Login fallido': 'Failed login',
|
||
'Ingreso al panel': 'Signed in',
|
||
'Clave inicial cambiada': 'Initial password changed',
|
||
'Clave cambiada': 'Password changed',
|
||
// ---- url-parse.js (copia de OrbiStream) ----
|
||
'Pega una URL.': 'Paste a URL.',
|
||
'Se extrajo la URL del texto pegado.': 'The URL was extracted from the pasted text.',
|
||
'No parece una URL: falta el esquema (srt://, udp://, rtmp://, http://).': 'This does not look like a URL: the scheme is missing (srt://, udp://, rtmp://, http://).',
|
||
'La URL no termina en .m3u8; verifica que sea realmente HLS.': 'The URL does not end in .m3u8; check that it really is HLS.',
|
||
'Falta el puerto en "srt://{x}".': 'The port is missing in "srt://{x}".',
|
||
'mode=rendezvous no está soportado; se dejó como SRT Caller.': 'mode=rendezvous is not supported; it was set to SRT Caller.',
|
||
'Sin mode= en la URL: se dedujo {k} por el host.': 'No mode= in the URL: {k} was inferred from the host.',
|
||
'Latencia ilegible ("{v}"): se ignoró.': 'Unreadable latency ("{v}"): ignored.',
|
||
'La latencia venía en microsegundos ({n}); se convirtió a {ms} ms.': 'The latency was in microseconds ({n}); it was converted to {ms} ms.',
|
||
'La passphrase tenía un %-escape inválido; se copió tal cual.': 'The passphrase had an invalid %-escape; it was copied as is.',
|
||
'La passphrase tiene {n} caracteres; SRT exige entre 10 y 79.': 'The passphrase has {n} characters; SRT requires between 10 and 79.',
|
||
'Se dejaron en la URL: {list}.': 'Left in the URL: {list}.',
|
||
// ---- Motores (080) ----
|
||
"Motores": "Engines",
|
||
"Configuración": "Settings",
|
||
"El panel consulta gpu02 desde el servidor (GET /health, /slots, /props, /v1/models y el exporter de GPU en :9835), una sola vez por sondeo aunque haya varias pestañas abiertas. Los tiempos y las fallas son los de los pedidos de los canales, guardados 7 días.": "The panel queries gpu02 from the server (GET /health, /slots, /props, /v1/models and the GPU exporter on :9835), once per poll no matter how many tabs are open. Times and failures come from the channels' own requests, kept for 7 days.",
|
||
"Configuración de motores": "Engine settings",
|
||
"whisper.cpp no informa el modelo ni el equipo: estos dos datos se declaran acá y el panel los muestra como declarados.": "whisper.cpp does not report its model or hardware: these two values are declared here and shown as declared.",
|
||
"Modelo (declarado)": "Model (declared)",
|
||
"Equipo (declarado)": "Hardware (declared)",
|
||
"Aviso si el p95 pasa (s)": "Warn when p95 exceeds (s)",
|
||
"p95 de los últimos 15 min. Con segmentos de 6 s, 3 s deja margen.": "p95 over the last 15 min. With 6 s segments, 3 s leaves headroom.",
|
||
"Sondeo cada (s)": "Poll every (s)",
|
||
"Entre 15 y 30 s. Vale para los dos motores.": "Between 15 and 30 s. Applies to both engines.",
|
||
"Las URL de los motores son las de cada canal (Reconocimiento y Traducción, en el modal del canal).": "Engine URLs are the ones set in each channel (Recognition and Translation, in the channel dialog).",
|
||
"Guardar": "Save",
|
||
"hace {n} s": "{n} s ago",
|
||
"hace {n} min": "{n} min ago",
|
||
"hace {n} h": "{n} h ago",
|
||
"hace {n} días": "{n} days ago",
|
||
"Un motor no responde": "An engine is not responding",
|
||
"Un motor anda lento o no respondió el último sondeo": "An engine is slow or missed the last poll",
|
||
"vivo": "up",
|
||
"caído": "down",
|
||
"sin respuesta": "no answer",
|
||
"sin datos": "no data",
|
||
"sin pedidos en la última hora": "no requests in the last hour",
|
||
"Tiempo por pedido, última hora": "Time per request, last hour",
|
||
"mediana por minuto": "median per minute",
|
||
"máximo": "max",
|
||
"umbral {s} s": "threshold {s} s",
|
||
"escala 0–{s}": "scale 0–{s}",
|
||
"1 h": "1 h",
|
||
"24 h": "24 h",
|
||
"Pedidos": "Requests",
|
||
"Fallas": "Failures",
|
||
"Mediana": "Median",
|
||
"RTF (mediana)": "RTF (median)",
|
||
"Canal (última hora)": "Channel (last hour)",
|
||
"Caído desde": "Down since",
|
||
"Error del sondeo": "Poll error",
|
||
"Último OK": "Last OK",
|
||
"Responde (1 h)": "Answering (1 h)",
|
||
"Último error de un pedido": "Last request error",
|
||
"ninguno guardado": "none stored",
|
||
"lento": "slow",
|
||
"p95 de 15 min: {s}": "15-min p95: {s}",
|
||
"Whisper (reconocimiento)": "Whisper (recognition)",
|
||
"Modelo": "Model",
|
||
"whisper.cpp no lo informa: es lo que dice la configuración del panel": "whisper.cpp does not report it: this is what the panel settings say",
|
||
"declarado": "declared",
|
||
"Equipo": "Hardware",
|
||
"leído": "read",
|
||
"ocupado: {b} de {n} slots": "busy: {b} of {n} slots",
|
||
"libre ({n} slots)": "idle ({n} slots)",
|
||
"LLM (traducción)": "LLM (translation)",
|
||
"Nombre publicado": "Published name",
|
||
"Versión (build)": "Version (build)",
|
||
"Ahora": "Now",
|
||
"Ocupado (1 h, sondeado)": "Busy (1 h, polled)",
|
||
"de {n} sondeos, incluye a otros usuarios": "of {n} polls, includes other users",
|
||
"GPU de gpu02": "gpu02 GPU",
|
||
"Este equipo": "This host",
|
||
"de {n} cores, medido en el cgroup del CT": "of {n} cores, measured on the CT cgroup",
|
||
"Disco de /var/www/hls": "/var/www/hls disk",
|
||
"{b} en HLS": "{b} in HLS",
|
||
"Encendido hace": "Up for",
|
||
"Sondeo cada {s} s · último {a}": "Polled every {s} s · last {a}",
|
||
"Umbral de p95: entre 0,5 y 60 s": "p95 threshold: between 0.5 and 60 s",
|
||
"Sondeo: entre 15 y 30 s": "Poll: between 15 and 30 s",
|
||
"Configuración de motores cambiada": "Engine settings changed",
|
||
"sin muestras en la última hora": "no samples in the last hour",
|
||
"Uso de la GPU, última hora": "GPU usage, last hour",
|
||
"Esperando el primer sondeo del exporter.": "Waiting for the first exporter poll.",
|
||
"poca VRAM": "low VRAM",
|
||
"la que usamos": "the one we use",
|
||
"Uso": "Usage",
|
||
"{m} MiB libres": "{m} MiB free",
|
||
"Temp.": "Temp.",
|
||
"Consumo": "Power",
|
||
"Driver / CUDA": "Driver / CUDA",
|
||
"Último dato": "Last sample",
|
||
"Uso por minuto de la última hora (mediana y máximo). Aviso si la VRAM libre de la placa resaltada baja de {m} MiB.": "Usage per minute over the last hour (median and max). Warns when free VRAM on the highlighted card drops below {m} MiB.",
|
||
"Compartido: batman (10.100.101.101) también usa este motor por un túnel SSH inverso, así que \"ocupado\" puede ser batman y no OrbiSubs.": "Shared: batman (10.100.101.101) also uses this engine through a reverse SSH tunnel, so \"busy\" may be batman rather than OrbiSubs.",
|
||
"Compartido: batman (10.100.101.101) también usa este motor por un túnel SSH inverso.": "Shared: batman (10.100.101.101) also uses this engine through a reverse SSH tunnel.",
|
||
"Aviso de VRAM: entre 64 y 16384 MiB": "VRAM warning: between 64 and 16384 MiB",
|
||
"Aviso si la VRAM libre de la 3060 baja de (MiB)": "Warn when free 3060 VRAM drops below (MiB)",
|
||
} });
|