-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Ehsan Azish edited this page Dec 15, 2025
·
1 revision
Solution:
pip3 install -r requirements.txtOr install individually:
pip3 install deep-translator lxmlmacOS:
brew install python-tkUbuntu/Debian:
sudo apt-get install python3-tkWindows: Tkinter comes with Python - reinstall Python from python.org
Cause: Workspace path is incorrect or doesn't contain localization folders
Solution:
- Verify your workspace path
- Ensure folders have
.xclocextension - Check folder structure matches expected format
Cause: .xcloc folder doesn't contain Localizable.xliff
Solution:
- Export localizations from Xcode
- Ensure the XLIFF file is named
Localizable.xliff - Check file permissions
Cause: Internet connection issue or Google Translate rate limiting
Solution:
- Check internet connection
- Wait a few minutes (rate limiting)
- Translate fewer languages at once
- Add delays between translations
Cause: Complex or unusual placeholder format
Solution:
- Review the translation log
- Check if placeholder format is supported
- Manually fix if needed
- Report issue on GitHub
Solution:
chmod u+w /path/to/localization/folder/*. xclocSolution:
- Check if XLIFF was manually edited
- Re-export from Xcode
- Validate XML structure with an XML validator
Causes:
- Many languages
- Large XLIFF files
- Network speed
Solutions:
- Translate fewer languages at once
- Use
--onlyto target specific languages - Check network connection
Solution:
- Process one language at a time using
--only - Close other applications
Add print statements or check the log window in GUI for detailed information.
python3 translate_xliff.py --dry-runThis shows what would be translated without making changes.
Use an XML validator or online tool to check XLIFF structure.
If you can't resolve an issue:
- Check existing issues: GitHub Issues
-
Create a new issue with:
- Your Python version
- Operating system
- Full error message
- Steps to reproduce
- Check the documentation:
- Requires internet connection
- Rate limiting by Google Translate
- Translation quality varies by language
- No built-in translation memory
- Limited support for plural forms