XUnity.AutoTranslator
XUnity.AutoTranslator copied to clipboard
Removing tags from text before translation
Hi everyone.
I'm trying to apply an autotranslation to the game Pathologic 2 (from english to spanish), and it's been working mostly fine, except for a minor inconvinient: some of the text both in the menus and in the game appears like this in the output file:
<size%3D55>N</size>EW <size%3D55>G</size>AME=<size%3D55>norte</size>EW <size%3D55>GRAMO</size>AME
instead of:
<size%3D55>N</size>UEVO <size%3D55>J</size>UEGO
1- Is there a way to remove those tags before proceeding to the translation? 2- Is there a way to put the tags back again after the translation?
No, on both counts. Sorry.
Doing something like this automatically would be extremely difficult and as such requires a manual touch.
I once considered adding a feature that would simply remove all richtext tags from the text instead of trying to maintain it. That would give a better translation but would cause text to be displayed incorrectly instead. (In this case without a larger N as the first character). I never got around to it because I only experienced being annoyed by it in one game, where richtext tags were used in the dialogues everywhere.
In your case, if the issue is primarily dealing with static elements such as menus it should be a fairly easy operation to clean up the translations manually.
Thanks for your reply, gravy.
Great work on the translator.