Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bambier/py-auto-translate

Python Module to make translation files for all application python files
https://github.com/bambier/py-auto-translate

Last synced: about 1 month ago
JSON representation

Python Module to make translation files for all application python files

Awesome Lists containing this project

README

        

# py-auto-translate
Python Module to make translation files for all application python files

### Usage
```sh
./translate.py --log-level DEBUG --translate --compile --domain com.domain --path ./src
```
or in short
```sh
./translate.py -ll d -t -c -d com.domain -p ./src
```

## Architecture
```mermaid
graph TD;
Path --> Translator;
Translator --> File1;
Translator --> File2;
Translator --> File3;
Translator --> ...;
File1 --> Translate;
File2 --> Translate;
File3 --> Translate;
... --> Translate;
Translate --> .po;
Translate --> .pot;
.po --> Compile;

Compile --> .mo

```