Generalize tag translation using emojis heck yeah
This commit is contained in:
@@ -1,30 +1,32 @@
|
||||
This was mostly made using the GPL chatbot, enjoy!
|
||||
This was mostly made using the OpenAI chatbot, enjoy!
|
||||
|
||||
It requires googletrans and colorama (For le pretty colors)
|
||||
|
||||
`pip install googletrans==3.1.0a0`
|
||||
```
|
||||
pip install googletrans==3.1.0a0
|
||||
```
|
||||
|
||||
and
|
||||
|
||||
`pip install colorama`
|
||||
```
|
||||
pip install colorama
|
||||
```
|
||||
|
||||
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 it.
|
||||
Including the tags is NECESSARY, otherwise the applier.py will fail.
|
||||
respectively.
|
||||
|
||||
They are meant to be run in this order
|
||||
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.
|
||||
|
||||
- (Place your scripts to translate in the scripts folder)
|
||||
- (Place dialogue.txt on the same folder as the python script)
|
||||
- Parser.py
|
||||
- Translator.py
|
||||
- Applier.py
|
||||
They are meant to be run in this order:
|
||||
|
||||
And your translated scripts should be in the output folder.
|
||||
Doing this to snootgame took around an hour to autotranslate, googletrans also doesn't use the official Google API, so don't tell em!
|
||||
- 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`
|
||||
|
||||
# This is not a general use tool, you WILL need to modify it to adjust to your needs, and due the nature of the googletrans library it might break any moment
|
||||
# I wanted to do this the legit way but the jews at Deppl will NOT give out free tier API keys to south americans (smh, fucking racists).
|
||||
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!
|
||||
|
||||
If you need help or something just open up an issue ig.
|
||||
# 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).
|
||||
|
||||
Also, Ñ.
|
||||
If you need help or have any questions, just open an issue.
|
Reference in New Issue
Block a user