32 lines
1.2 KiB
Markdown
32 lines
1.2 KiB
Markdown
This was mostly made using the OpenAI chatbot, enjoy!
|
|
|
|
It requires googletrans and colorama (For le pretty colors)
|
|
|
|
```
|
|
pip install googletrans==3.1.0a0
|
|
```
|
|
|
|
and
|
|
|
|
```
|
|
pip install colorama
|
|
```
|
|
|
|
respectively.
|
|
|
|
It expects a `dialogue.txt` generated from renpy. I personally only include dialogue (that is, no screen text), but it should work regardless if you choose to include it. Including the tags is NECESSARY, otherwise `applier.py` will fail.
|
|
|
|
They are meant to be run in this order:
|
|
|
|
- Place your scripts to translate in the `scripts` folder.
|
|
- Place `dialogue.txt` in the same folder as the python script.
|
|
- Run `parser.py`
|
|
- Run `translator.py`
|
|
- Run `applier.py`
|
|
|
|
Your translated scripts should be in the `output` folder. Translating snootgame took around an hour using this method.
|
|
Keep in mind that googletrans does not use the official Google API, so don't tell 'em!
|
|
|
|
# This is not a general use tool, you WILL need to modify it to fit your needs. Due to the nature of the googletrans library, it may break at any moment. I wanted to do this the legitimate way, but the juice at Deepl will NOT give out free tier API keys to South Americans (smh, fucking racists).
|
|
|
|
If you need help or have any questions, just open an issue. |