Automatic PoFile Translator is a simple script designed to assist in the automatic translation of .po
files, which are commonly used in Django frameworks. This tool utilizes the Google Translator engine through the deep_translator
module to provide seamless translations.
To get started, clone the repository to your local machine:
git clone https://github.com/osam7a/Automatic-PoFile-Translator.git .
Navigate to the project directory and install the necessary modules using pip
:
python3 -m pip install -r requirements.txt
Once the modules are installed, you can run the script to translate your .po
files.
To run the script without specifying a file or directory, simply use:
python3 translator.py
You can also specify a target file or directory directly:
# To translate all .po files in a directory
python3 translator.py -f locale/
# To translate a specific .po file
python3 translator.py -f django.po
For more details, visit the GitHub repository.