Leakoo
dreamsavior from patreon
dreamsavior patreon

Translator++ Ver. 4.10.30 - A stable Wolf RPG parser

🕑 Added 2022-10-30 12:40:13 +0000 UTC

Comments

Dreamsavior

Thank you for your feedback. In the MV/MX Parser V2 options, did you turn on Beautify JSON data?

DL

Reporting a bug. When translating rmmz games, control characters are literally being spelled out on the output for plugin commands. e.g. Original: ["SSW_Stand","Activate","立ち絵登録",{"code":"Mana","mode":"Slide","position":"{\"auto\":\"true\",\"pos\":\"8\",\"wait\":\"1\",\"ease\":\"None\"}","base":"{\"auto\":\"false\",\"damage\":\"Break\",\"seal\":\"false\",\"fallen\":\"false\"}"}] Translated (not actually translating, just using the original text to see what has changed between the original source code and translator++'s generated translation): ["SSW_Stand","Activate","立ち絵登録",{"code":"Mana","mode":"Slide","position":"{\n \"auto\": \"true\",\n \"pos\": \"8\",\n \"wait\": \"1\",\n \"ease\": \"None\"\n}","base":"{\n \"auto\": \"false\",\n \"damage\": \"Break\",\n \"seal\": \"false\",\n \"fallen\": \"false\"\n}"}] Notice the "\n" showing up? And no, it's not the actual endline character, but "\n" spelled out. The whitespace characters are being added inside of this function: RMMVData.prototype.fetchMzPluginCommand in the line: var translation = jsonTranslate.toString(); I got around it by using this: var translation = JSON.stringify(jsonTranslate.translated, undefined, null); instead of return JSON.stringify(this.translated, undefined, 2); Which is basically stringifying without whitespace characters instead of adding double spaces and newlines for human readability. But there might be a reason behind the 2 that would make my suggested fix an edge case. But I had to do this or the plugin itself will not correctly parse the JSON string. I.e. when I tested the changes, the application errored out telling me that the next function was expecting a long datatype. I'm guessing the extra "\" and "n" was causing it to think that we were sending a string or something.

Dreamsavior

Noted. Thank you for the report.

aeronlc

I would also like to report two bugs I noticed in the latest versions of translate++. Some texts that have single quotes inside double quotes are being cut by the program, when they will turn into lines. Example: Using translate++ 4.10.30C (Game RenPy) The line in the translator is: -- I don't have to lie to you anymore, I -- Original text: -- le "Okay look, as much as I love talking to you and as happy as I am that I don't have to lie to you anymore, I'm very very tired." -- =-=-= Another bug is that it is not possible to apply tags using search on files that have spaces in their names. Example: Searching for the "play" context and applying a red tag to all lines in this context will only work if the game file has no spaces. (If the folder has space in the name, it doesn't apply either) game_test.rpy (Applies to Tag) game test.rpy (Does not apply tag) sorry for my english


More Creators