Trans_tools/Auto Trans
GManon a412c30ce2 I give up on trying to make escaped quotation marks work 2023-01-22 01:46:09 -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 I give up on trying to make escaped quotation marks work 2023-01-22 01:46:09 -03:00
Dialogue.txt file goes here Auto translator 2022-12-23 22:20:58 -03:00
Parser.py Auto translator 2022-12-23 22:20:58 -03:00
README.md I give up on trying to make escaped quotation marks work 2023-01-22 01:46:09 -03:00
Translator.py I give up on trying to make escaped quotation marks work 2023-01-22 01:46:09 -03:00
differ.py differ 2023-01-04 17:12:09 -03:00

README.md

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 and a translation script 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. Your script files MUST include all the dialogue, that is, you mustn't have "generate empty translation strings" selected when generating the translation scripts.

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.