Yikes.
It seems that BGA has 1 translation file for in-game strings, e.g: lang_quantum-20200814.js
And one ginormous one for everything else on the site, including every gameoption for every game! lang_mainsite-20200814.js !! 350KB for en.
That is a bit nasty. Quantum (for example) has a lot of game options and Everyone who has never played it is loading a translation list of them all with each BGA page.
I actually got 2 of each of these files (2 x 350K for mainsite strings, one all English, one in your preferred language -- possibly both the same).
To avoid string conflicts in the everything mainsite file, it prepends a gameoptions id. 'gameoptions_1018_' for Quantum.
So I *guess* if I wanted to show a gameoption string translated within the game…
Code: Select all
gameoptions_1018_Gamma sector (5) - Basic map
would get translated, but I must be missing something, is there a right way to do this??
Maybe because Quantum had map names duplicated in material.inc.php *and* gameoptions.inc.php, the material translations have been disabled??