domuspopus / overwatch-4v4-all-heroes

Reballanced and improved Overwatch 4v4 All Heroes mode.
0 stars 0 forks source link

i18n & l10n #11

Closed domuspopus closed 3 weeks ago

domuspopus commented 9 months ago

Name / description and custom workshop settings cannot be dynamically translated.

domuspopus commented 3 weeks ago

Turned out my setup was faulty. I wanted to have dynamic translation be done in a manner that doesn't turn any HUD related codebase into a monstrosity but it does not seem possible without introducing a preprocessor to the project (things such as overPy or workshop.codes online editor) which I generally want to avoid.

The way dynamic translation can be done is by comparing built in map names to their language specific representation (as such), that way it will evaluate appropriately depending on the player specific language. However it can not be written just in one single place (rule) and maintained just there. Every language string and all the map comparison conditionals for each string have to be put in in every single Create HUD Text() function making it a horrific sight.

Plans are thus abandoned until a better method comes along.