Trans_tools/Auto Trans
2022-12-25 23:35:48 -03:00
..
output Auto translator 2022-12-23 22:20:58 -03:00
scripts Auto translator 2022-12-23 22:20:58 -03:00
Applier.py Auto translator 2022-12-23 22:20:58 -03:00
Dialogue.txt file goes here Auto translator 2022-12-23 22:20:58 -03:00
differ.py Auto translator 2022-12-23 22:20:58 -03:00
Parser.py Auto translator 2022-12-23 22:20:58 -03:00
README.md Generalize tag translation using emojis heck yeah 2022-12-25 23:24:37 -03:00
Translator.py Also does it for variable thingys 2022-12-25 23:35:48 -03:00

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.