Closed jackmcbarn closed 8 years ago
As this is currently done on the dev branch with no bugs remaining as far as I can tell, shall we push this to master?
Agreed. Pushed.
I apologize for posting this on an ancient closed issue, but what would the command line look like to make use of the translate while decompiling? Every permutation I've tried with -T, -t, -l, don't seem to be right, and I assume I'm just using the tool incorrectly.
edit Please ignore. I've identified my error in using the tool. For anyone else looking, the following steps worked for me. (--clobber is likely optional)
unrpyc.py --clobber -l English -T translations.rpk .
Extracting translations from ./script.rpyc...
Extracting translations from ./tl/English/script.rpyc...
unrpyc.py --clobber -l English -t translations.rpk .
Decompiling ./script.rpyc to ./script.rpy...
Decompiling ./tl/None/common.rpymc to ./tl/None/common.rpym...
Games are occasionally written in languages other than English, and English is then supported just as any other translated language. This works fine in the games, but it makes it really hard to understand the .rpy, since it's all in the source language. It would be nice if there were a way to load the translations into unrpyc, such that it would append the translated text in a comment after the lines, or maybe even replace the original text with translated text.