XUnity.AutoTranslator
XUnity.AutoTranslator copied to clipboard
Is it possible to work some magic in the preprocessor, substitutions or configs to handle single character translations?
XUnity plugin : XUnity.AutoTranslator-BepInEx-IL2CPP-5.4.3 (and older) BepInEx plugin : BE.725 or higher (and tried with older) Game language : Chinese/Taiwanese/Korean
Our game in question uses IL2CPP with newer bleeding edge versions from Bepinex. What occurs in the game is that the UI has many sections like NPC names that are actually made up of multiple single character elements, resulting in the translator/Autogen results to be multiple lines of single character translations. For example, the autogen might look like 니=ABC 지=DEF 마=GHI 코=JKL 토=MNO
While the full string that should ideally be translated is 니지마 마코토- which when translated together gives you the character name appropriately.
The individual character translations end up being a wrong translation/often extremely messy on the UI display as the characters when translated individually are typically much longer than the whole string translated at once. To handle this we wrote a very simple regex replacement to basically ignore single character entries and remove them, but alas that means the text remains untranslated.
Wondering if this scenario has been brought up before and if there was some magic that could maybe happen in preprocessor or substitution or etc that might let something occur like combining it into the full string prior to submitting to the API - or any other suggestions on how to handle?
Appreciate your insights and happy holidays!