virtual-puppet-project / vpuppr

VTuber application made with Godot 4
Mozilla Public License 2.0
725 stars 62 forks source link

Add translation manager #141

Closed you-win closed 1 year ago

you-win commented 1 year ago

Adds back a better Translation Manager implementation. The scanning logic was taken from the ExtensionManager code and was optimized, so changes were also made back to the ExtensionManager.

Translation files are structured like so:

="" Lines are split via newline character. Multiline translations are possible, since the translation is only marked as complete when there is a beginning and ending `"` character. To insert `"` characters _in_ the translation message, the character must be escaped like `\"`. In theory, to insert a literal `\"` in a translation should also just work.