STEAM GROUP
AWSW Translators AWSWLocal
STEAM GROUP
AWSW Translators AWSWLocal
9
IN-GAME
38
ONLINE
Founded
April 2, 2017
 This topic has been pinned, so it's probably important
dracorunan Apr 28, 2017 @ 8:30pm
rpy-translator for easier translation
A friend of mine come up with a little program that might be useful for translating the rpy files. I'd like to share it with you guys and hope it might come in handy.

Get a copy of this program here:
https://www.dropbox.com/s/0wripfpfnhknvgn/rpy-translator.7z?dl=0

Before use:
You need to install node.js to make it work.

How to use:
1. Unpack the 7z file to anywhere you like.

2. Open tsconfig.json with Notepad, Notepad++ or any editor you like.

3. Change originalPath and inGamePath to something else you feel convenient, like C:\\Games\\AWSW\\translated. These 2 path should not be the same or you might damage the original rpy files.

4. Put the rpy files you want to translate into the folder of originalPath. Put the rpy files you'd like to patch into the folder of inGamePath. When you start a new translating project, these two copies of rpy files should look exactly the same.

5. Hit extract.bat. All the dialogues from rpy files in originalPath will be converted to a excel spreadsheet file named export.xlsx. This is the file you need to work with.

6. In this spreadshit, there are 5 columns, id, fileName, style, rawdialogue and translated. id is useful if you want to split this spreadsheet and send it with others to translate. fileName represent which rpc file this dialogue locates. style is the speaker of this dialogue. rawdialogue is the original dialogue. translated is blank, that's where your translated dialogues go. You should only edit the 5th column. Messing with anything else may damage this spreadsheet and makes it unable to patch rpy files.

7. Hit patch.bat, and this program will replace each dialogue with translated ones.


The main purpose of this program is to search and replace only dialogues. It saves tons of time looking through the whole rpy file for dialogue lines. But it might accidently blacklist or whitelist something. So make sure you check the rpy files to see if missed anything. You can also try modify this program yourself, but make sure you know what you are doing.
Last edited by dracorunan; Apr 28, 2017 @ 8:35pm