Feature: Traducir todas las vistas - parte 1

- admin/recipients.php: tablas, modales, labels
- admin/comandos.php: títulos, tablas, descripciones
- admin/test_discord_connection.php: formularios, alertas
- admin/ia_agent.php: configuración, parámetros
- profile.php: información, formulario contraseña
- set_webhook.php: alertas, formularios
- chat_telegram.php: usuarios, historial
- translate_message.php: formulario de traducción
This commit is contained in:
2026-02-20 16:01:06 -06:00
parent 65de04209f
commit 2dd99c04dd
8 changed files with 172 additions and 172 deletions

View File

@@ -20,11 +20,11 @@ require_once __DIR__ . '/../templates/header.php';
?>
<div class="d-flex justify-content-between align-items-center mb-4">
<h2><i class="bi bi-terminal"></i> Gestión de Comandos</h2>
<h2><i class="bi bi-terminal"></i> <?= t('Gestión de Comandos') ?></h2>
</div>
<div class="alert alert-info">
<i class="bi bi-info-circle"></i> Los comandos se usan en Discord y Telegram anteponiendo <code>#</code> al nombre del comando.
<i class="bi bi-info-circle"></i> <?= t('Los comandos se usan en Discord y Telegram anteponiendo') ?> <code>#</code> <?= t('al nombre del comando') ?>.
</div>
<div class="row">
@@ -32,16 +32,16 @@ require_once __DIR__ . '/../templates/header.php';
<div class="card border-0 shadow-sm">
<div class="card-body">
<?php if (empty($templates)): ?>
<p class="text-muted text-center py-4">No hay plantillas con comandos</p>
<p class="text-muted text-center py-4"><?= t('No hay plantillas con comandos') ?></p>
<?php else: ?>
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th>Nombre</th>
<th>Comando</th>
<th>Uso</th>
<th><?= t('Nombre') ?></th>
<th><?= t('Comando') ?></th>
<th><?= t('Uso') ?></th>
</tr>
</thead>
<tbody>
@@ -53,7 +53,7 @@ require_once __DIR__ . '/../templates/header.php';
<?php if ($template['telegram_command']): ?>
<code>#<?= htmlspecialchars($template['telegram_command']) ?></code>
<?php else: ?>
<span class="text-muted">Sin comando</span>
<span class="text-muted"><?= t('Sin comando') ?></span>
<?php endif; ?>
</td>
<td>
@@ -74,37 +74,37 @@ require_once __DIR__ . '/../templates/header.php';
<div class="row mt-4">
<div class="col-md-12">
<div class="card border-0 shadow-sm">
<div class="card-header bg-white border-0">
<h5 class="mb-0"><i class="bi bi-discord"></i> Comandos de Discord</h5>
<div class="card-header border-0">
<h5 class="mb-0"><i class="bi bi-discord"></i> <?= t('Comandos de Discord') ?></h5>
</div>
<div class="card-body">
<table class="table table-sm">
<thead>
<tr>
<th>Comando</th>
<th>Descripción</th>
<th><?= t('Comando') ?></th>
<th><?= t('Descripción') ?></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>#comando</code></td>
<td>Envía la plantilla asociada</td>
<td><?= t('Envía la plantilla asociada') ?></td>
</tr>
<tr>
<td><code>/comandos</code></td>
<td>Lista de comandos disponibles</td>
<td><?= t('Lista de comandos disponibles') ?></td>
</tr>
<tr>
<td><code>/setlang [código]</code></td>
<td>Establece el idioma del usuario</td>
<td><?= t('Establece el idioma del usuario') ?></td>
</tr>
<tr>
<td><code>/bienvenida</code></td>
<td>Envía mensaje de bienvenida</td>
<td><?= t('Envía mensaje de bienvenida') ?></td>
</tr>
<tr>
<td><code>/agente</code></td>
<td>Cambia a modo IA</td>
<td><?= t('Cambia a modo IA') ?></td>
</tr>
</tbody>
</table>
@@ -116,41 +116,41 @@ require_once __DIR__ . '/../templates/header.php';
<div class="row mt-4">
<div class="col-md-12">
<div class="card border-0 shadow-sm">
<div class="card-header bg-white border-0">
<h5 class="mb-0"><i class="bi bi-telegram"></i> Comandos de Telegram</h5>
<div class="card-header border-0">
<h5 class="mb-0"><i class="bi bi-telegram"></i> <?= t('Comandos de Telegram') ?></h5>
</div>
<div class="card-body">
<table class="table table-sm">
<thead>
<tr>
<th>Comando</th>
<th>Descripción</th>
<th><?= t('Comando') ?></th>
<th><?= t('Descripción') ?></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>#comando</code></td>
<td>Envía la plantilla asociada</td>
<td><?= t('Envía la plantilla asociada') ?></td>
</tr>
<tr>
<td><code>/start</code></td>
<td>Inicia el bot</td>
<td><?= t('Inicia el bot') ?></td>
</tr>
<tr>
<td><code>/comandos</code></td>
<td>Lista de comandos disponibles</td>
<td><?= t('Lista de comandos disponibles') ?></td>
</tr>
<tr>
<td><code>/setlang [código]</code></td>
<td>Establece el idioma del usuario</td>
<td><?= t('Establece el idioma del usuario') ?></td>
</tr>
<tr>
<td><code>/bienvenida</code></td>
<td>Envía mensaje de bienvenida</td>
<td><?= t('Envía mensaje de bienvenida') ?></td>
</tr>
<tr>
<td><code>/agente</code></td>
<td>Cambia a modo IA</td>
<td><?= t('Cambia a modo IA') ?></td>
</tr>
</tbody>
</table>