shade
Hi Shade, In case you're interested, I made a script that can convert translator++ csv files to a json file. This json file can be loaded by MTool.
The idea is to export your translator++ project as .csv files using one of the options below (export whole project or export selected content), this process will export the csv files into a "Data" folder.
Then the `script.py` from the attached file can be placed alongside the "Data" folder and once it's executed (Running "python script.py"), a "TrsData.json" file will be created. This file can be placed in the game folder and loaded with MTool.
View attachment 2655358
Export selected content may be needed as some sections (such as CommonEvent/264-272) will throw an error and stop the exporting process of the project, at least on my end:
View attachment 2655363
The script creates a json file like so:
View attachment 2655378
This json file will mostly work, but some translations will require a quick fix to make sure the key value matches with what MTool expects. For example if I export the "text to be translated" from 1.4.1 using MTool (Trasnlate tab -> Export the text needs to be translated), in the json file created i get:
"」を手に入れた。": "」を手に入れた。"
While the json file generated from translator++ is something like:
"@1\n「\\cself[8]」を手に入れた。": "Translated text"
So here the idea is that MTool expects
"」を手に入れた。" as a key, so "@1\n「\\cself[8]" should be removed and the final result should be:
"」を手に入れた。": "Translated text""
This process of fixing translation should be quick using "Find and replace" from a text editor.
I hope this helps. In the attached file I uploaded the `script.py` file needed along with a README.md file with extra instructions. Also the zip file contains a sample "Data" and "TrsData.json" file.
Proof that it works:
View attachment 2655407