WurstScript icon indicating copy to clipboard operation
WurstScript copied to clipboard

How to multilanguage generated objects in a pre-Reforged map?

Open GetLocalPlayer opened this issue 4 years ago • 3 comments

Since all the strings are injected into the corresponding war3map... binary files.

GetLocalPlayer avatar Jun 21 '21 13:06 GetLocalPlayer

What do you mean? There is no way for multiple languages except generating every object it multiple variations or so. Doesn't seem very feasible.

Frotty avatar Jun 30 '21 10:06 Frotty

The classic way is to translate war3map.wts file that contained all the strings made in the object editor or in GUI triggers. You could have several versions of the same map that had different war3map.wts file. Or you could have several war3map.wts files in one single map-archive with different locales. Meanwhile, Wurst puts all the strings directly into the binary files that contain object definitions. Can it have compiletime-functions to generate .wts files for different locales in the same map-archive or to build several maps with different .wts files at once?

GetLocalPlayer avatar Jun 30 '21 10:06 GetLocalPlayer

there currently is nothing like that, but it could be done, perhaps a PR? Also still needed for long entries over 512 characters iirc.

Frotty avatar Jun 30 '21 19:06 Frotty