Swahili Subtitle Translator
# π¬ Swahili Subtitle Translator
A professional, open-source tool for translating subtitle files from English to Swahili. Perfect for content creators, translators, and media enthusiasts who want to make English content accessible to Swahili speakers.
## β¨ Features
- **π Multiple Translation Services**: Google Translate and MyMemory support with automatic fallback
- **π Multiple Subtitle Formats**: SRT, ASS/SSA, VTT, and SUB format support
- **β‘ Smart Caching**: SQLite-based translation cache to reduce API calls and improve speed
- **π Batch Processing**: Translate entire directories of subtitle files
- **π― Cultural Adaptation**: Built-in Swahili cultural context and common phrase translations
- **π‘οΈ Robust Error Handling**: Automatic retry mechanism and graceful failure handling
- **π Progress Tracking**: Real-time progress bars and detailed statistics
- **π¨ Beautiful CLI**: Colorized command-line interface with professional output
- **π§ Highly Configurable**: Extensive customization options and settings
## π Quick Start
### Method 1: Global Installation (Recommended)
**π― One-Command Installation:**
```bash
# Clone the repository
git clone
github.com
cd swahili-subtitle-translator
# Run the automated installation script
chmod +x install_global.sh
./install_global.sh
```
This script will:
- Detect your operating system (Linux/macOS/Windows Git Bash)
- Offer installation options (system-wide, user, virtual environment, or pipx)
- Handle modern Python restrictions (PEP 668 externally-managed environments)
- Make `sst` and `swahili-sub-translate` commands globally available
- Test the installation automatically
**π Manual Global Installation:**
```bash
# Method A: pipx (recommended for modern Python - handles PEP 668)
sudo apt install pipx # Ubuntu/Debian
# brew install pipx # macOS
pipx install /path/to/swahili-subtitle-translator
# Method B: User installation (no admin rights needed)
pip3 install β¦