
RenPyTranslationConverter
A downloadable tool for Windows
NOTE: Apparently Windows Defender started flagging this tool as a trojan since the latest update (April 10th). I can assure you it's a false positive, and caused by me using PyInstaller to package the app, which Defender really doesn't like for whatever reason. It's been a well-known issue for years at this point. I'll try to find a workaround or a solution to the problem.
This is just a small and simple tool to quickly convert Ren'Py translation files (.rpy) into .csv files and back. This makes it easier to translate them, as .csv files are supported by every major CAT tool.
This is a small project I'm doing in my spare time, so there might be issues. If you run into any or have suggestions, let me know in the comments!
Features
- Convert between .rpy and .csv files for easy translation
- Works for dialogues and menu strings
- NEW: Add comments for translators that will be included in the .csv file
- NEW: Pre-existing translations are now included in the .csv file
Usage
- Click the Pick File button, and select a .rpy file that contains translations generated in Ren'Py.
- Click the big, chunky Convert button and pick where to export the .csv file.
- Translate the exported file however you wish. Make sure to add the translation in the correct column (the tool will automatically create one based on the target language selected in Ren'Py).
- Once the translation is ready, use the Pick File button to select the translated file, click Convert, and pick where to save the final .rpy file.
- Done!
If you want to add comments for the translator, add them directly behind the original line in the .rpy file, like so:
# game/script.rpy:2 old "Sylvie" # Please leave unchanged
These will then show up in the .csv file under the "Comment" column.
Thanks to @brunoais for helping me test this tool!
Updated | 6 days ago |
Status | Released |
Category | Tool |
Platforms | Windows |
Rating | Rated 5.0 out of 5 stars (3 total ratings) |
Author | and0 |
Genre | Visual Novel |
Tags | converter, csv, excel, localisation, localization, python, Ren'Py, translation |
Download
Click download now to get access to the following files:
Development log
- Update 1.2.051 days ago
Comments
Log in with itch.io to leave a comment.
High just wondering if I can use this tool to replace tl scripts with main scripts
first of all, thank you so much for this tool! I really love it AND it does work! ^^ There are 2 issues that I’ve found tho:
The new update on Microsoft Defender deletes the program quickly, labeling the program as a virus, a Trojan (I think because of the .exe) and if I disable MD, it shows a Red Window pop-up warning, telling you there’s a risk if you use it. It wasn’t like this before, so this is definitely due to a new update from Microsoft on Windows. I know it’s not a virus but some people may think it’s one because of it.
The translated .rpy includes Tab characters and Renpy doesn’t allow Tab characters. This can be solved by replacing the Tabs with 4 spaces in the text editor of your preference, but it would be great if this came by default. But like I said, this can fixed quickly.
like i said, this tool is GREAT! so thank you so much again! ^^
Oof...thanks for letting me know, and yeah, I can confirm that Defender is freaking out on my end too.
From what I've learned, Windows Defender (and some other engines) loves flagging apps packaged using PyInstaller as a virus, trojan or whatever else. I'm not sure if a real, lasting solution was ever found (there've been new threads about this on the net for years) but I'll add a warning to the page for now and dig a little deeper soon. Hopefully I can find a workaround or something. Maybe the next Defender update will realize it's a false positive, but the one after that might flag it again ¯\_(ツ)_/¯
As for the tab thing, I didn't know about that. Gonna put it in once I've got the antirivus situation sorted out!
thank u!!!quite a useful tool!
Hm, the tool uses utf-8 to read and write files, so Cyrillic should not be an issue 🤔 I tried the translation from the sample game and it worked fine...
Oh, maybe the problem is with my computer...
Sorry, but can I recompile with UTF-8 in RPY as well? Or is this process done manually?
Well, you get the .rpy files from RenPy itself by generating translation files... I'm not sure if they let you set the encoding.
I also found this tool that might be able to help you? No idea if it works though.
omg, this looks promising! I’ll be sure to try it out later, to see if it works without problem! 😊
Export doesn't work.
I tried converting a .rpy file translation I have for one of my previous commissions and the file comes out with just a line as the header with the correct language set but and all the already translated and not translated yet strings aren't there. It's only the single header line.
By the way, I had to run it through Proton because this is a windows executable.
Huh, that's strange. Is your translation file special in any way, did you change the formating? If you want you can send me a file and I'll take a look (just a sample file with a few lines is enough).
Sent an example as discord DM
Fixed!