Esta es una aplicación web potente y sencilla para traducir documentos manteniendo su formato original. Está diseñada para funcionar en cualquier hosting compartido estándar (PHP/Apache) sin necesidad de servidores complejos ni configuraciones avanzadas.
Toda la magia ocurre en tu navegador: La aplicación utiliza tecnologías modernas (WebAssembly) para procesar los archivos en tu propio dispositivo, lo que garantiza privacidad y rapidez.
- Múltiples Formatos: Soporta PDF, DOCX (Word), EPUB (Libros electrónicos), Imágenes (JPG, PNG) y Texto (.txt).
- OCR Integrado: Reconoce texto dentro de imágenes y documentos escaneados automáticamente.
- Conserva el Formato: Intenta mantener el diseño visual, fuentes y estructura del documento original.
- Conversión de Salida: Puedes elegir guardar la traducción en el formato original o convertirla a PDF, Word o Texto.
- Hosting Sencillo: Funciona en hostings baratos (cPanel, Hostinger, etc.) con PHP 8.0+. No requiere VPS.
Descarga el código fuente de esta aplicación (archivo .zip) y descomprímelo en tu computadora.
- Accede a tu hosting (vía cPanel o FTP).
- Sube todos los archivos y carpetas (
index.php,config.php,js/,css/,api/, etc.) a la carpeta pública de tu sitio (usualmentepublic_htmlo una subcarpeta comopublic_html/traductor). - Asegúrate de que la carpeta
uploads/tenga permisos de escritura. (En FileZilla: Clic derecho -> Permisos de archivo -> escribir755o777).
- Entra a tu panel de control (cPanel).
- Ve a "MySQL Databases" y crea una nueva base de datos (ej.
miweb_traductor). - Crea un usuario y contraseña para esa base de datos y asígnale todos los permisos.
- Abre phpMyAdmin, selecciona tu nueva base de datos y ve a la pestaña "Importar".
- Selecciona el archivo
schema.sqlque viene con la aplicación y ejecuta la importación.
- Edita el archivo
config.phpque subiste al servidor. - Actualiza los datos con los de tu base de datos:
return [ 'db_host' => 'localhost', 'db_name' => 'nombre_de_tu_base_de_datos', 'db_user' => 'usuario_de_la_base', 'db_pass' => 'tu_contraseña', // ... ];
- ¡Listo! Accede a tu sitio web (ej.
www.tu-dominio.com/traductor) y empieza a traducir.
- Selecciona Idiomas: Elige el idioma original (o déjalo en "Detectar Automático") y el idioma al que deseas traducir.
- Formato de Salida: Elige si quieres mantener el formato original o convertir el archivo (ej. Imagen a PDF).
- Cargar Archivo: Arrastra tu documento al recuadro azul o haz clic en el botón.
- Esperar: Verás una barra de progreso mientras el navegador lee, reconoce (OCR) y traduce el texto.
- Descargar: Al finalizar, aparecerá un botón verde para descargar tu documento traducido.
This is a powerful yet simple web application for translating documents while preserving their original layout. It is designed to run on any standard shared hosting (PHP/Apache) without the need for complex servers or advanced configurations.
All the magic happens in your browser: The app uses modern technologies (WebAssembly) to process files on your own device, ensuring privacy and speed.
- Multiple Formats: Supports PDF, DOCX (Word), EPUB (E-books), Images (JPG, PNG), and Text (.txt).
- Built-in OCR: Automatically recognizes text inside images and scanned documents.
- Format Preservation: Strives to maintain the visual design, fonts, and structure of the original document.
- Output Conversion: Choose to save the translation in the original format or convert it to PDF, Word, or Text.
- Simple Hosting: Runs on cheap hosting plans (cPanel, Hostinger, etc.) with PHP 8.0+. No VPS required.
Download the source code (zip file) and unzip it on your computer.
- Access your hosting control panel (via cPanel or FTP).
- Upload all files and folders (
index.php,config.php,js/,css/,api/, etc.) to your site's public folder (usuallypublic_htmlor a subfolder likepublic_html/translator). - Ensure the
uploads/folder has write permissions. (In FileZilla: Right click -> File permissions -> set to755or777).
- Go to your control panel (cPanel).
- Go to "MySQL Databases" and create a new database (e.g.,
myweb_translator). - Create a user and password for that database and assign all privileges.
- Open phpMyAdmin, select your new database, and go to the "Import" tab.
- Select the
schema.sqlfile included with the app and run the import.
- Edit the
config.phpfile you uploaded to the server. - Update the details with your database credentials:
return [ 'db_host' => 'localhost', 'db_name' => 'your_database_name', 'db_user' => 'database_user', 'db_pass' => 'your_password', // ... ];
- Done! Visit your website (e.g.,
www.your-domain.com/translator) and start translating.
- Select Languages: Choose the source language (or leave as "Auto Detect") and the target language.
- Output Format: Choose whether to keep the original format or convert the file (e.g., Image to PDF).
- Upload File: Drag and drop your document into the blue box or click the button.
- Wait: You will see a progress bar while the browser reads, recognizes (OCR), and translates the text.
- Download: Once finished, a green button will appear to download your translated document.