A modern, professional text and document translation application built with Python and PyQt6. Featuring a sleek dark theme UI and support for multiple translation backends.
- 🎨 Modern Dark Theme UI - Beautiful, professional interface with smooth animations
- 🌐 Multiple Translation Backends
- Google Translate (Googletrans) - Free, unlimited
- Deep Translator - Reliable Google backend
- DeepL API - Premium quality (free tier: 500k chars/month)
- 📄 Document Support - Load and translate TXT and PDF files
- 🔄 Language Swap - Quickly swap source and target languages
- 📋 Clipboard Integration - Paste from and copy to clipboard
- 💾 Export - Save translations to text files
- 🚀 Smart Chunking - Handles large texts with automatic chunking
- ⚡ Retry Logic - Exponential backoff for reliable translations
- Python 3.9 or higher
- pip (Python package manager)
-
Clone the repository
git clone https://github.com/liaqateagle/translator-pro.git cd translator-pro -
Create a virtual environment (recommended)
python -m venv venv # Windows venv\Scripts\activate # macOS/Linux source venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
-
Run the application
python main.py
| Package | Version | Purpose |
|---|---|---|
| PyQt6 | ≥6.5.0 | GUI Framework |
| googletrans | 4.0.0-rc1 | Google Translate API |
| deep-translator | ≥1.11.4 | Alternative translation backend |
| deepl | ≥1.17.0 | DeepL API integration |
| PyPDF2 | ≥3.0.0 | PDF file support |
- Enter Text - Type or paste text in the source panel
- Load File - Or click "Open File" to load a TXT/PDF document
- Select Languages - Choose source and target languages from dropdowns
- Translate - Click the "Translate" button
- Export - Copy to clipboard or save to file
Click the Settings button to configure:
- Translation Backend - Choose between Googletrans, Deep Translator, or DeepL
- DeepL API Key - Enter your API key for DeepL (optional)
- Sign up for a free account at deepl.com/pro-api
- Get your API key from the account page
- Enter it in the Settings dialog
Create a standalone executable using PyInstaller:
pip install pyinstaller
pyinstaller --onefile --windowed --icon=icon.ico --name="TranslatorPro" main.pyThe executable will be in the dist folder.
translator-pro/
├── main.py # Main application code
├── requirements.txt # Python dependencies
├── icon.ico # Application icon
├── README.md # This file
├── LICENSE # MIT License
└── .gitignore # Git ignore rules
The application supports 90+ languages including:
English, Spanish, French, German, Italian, Portuguese, Russian, Japanese, Korean, Chinese (Simplified/Traditional), Arabic, Hindi, Dutch, Swedish, Polish, Turkish, Vietnamese, Thai, Indonesian, and many more!
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Liaqat Eagle
- 🎬 YouTube: @learnwithliaqat
- 👤 Facebook: Liaqat Eagle
- PyQt6 - GUI framework
- Googletrans - Google Translate API
- Deep Translator - Translation library
- DeepL - Premium translation service
Made with ❤️ by Liaqat Eagle
