Page 1 of 1
Testing Inter-language Games on Studio?
Posted: 14 May 2021, 14:19
by BaronFraser
In beta I've found a couple of instances where there's a bug that results in some text being sent to all players in the language of the player whose action triggered it (so I may speak English but when I play a Japanese player I will see that text in Japanese).
It's not too hard to debug, but I'd love to test things thoroughly on Studio... but I can't reproduce the circumstances because I can't figure any way to set the language of any player's game in Studio to anything other than English.
Can it not be done, or am I missing something obvious?
Re: Testing Inter-language Games on Studio?
Posted: 14 May 2021, 14:44
by Benoit314
You'll need to activate dummy translations on the manage game page. There is no other language supported on studio.
The main reason for this behaviour is using self::_('text') in a context where clienttranslate should be used. In the first case it returns strings in the language of the person who did the action.
So I would do a search for every self::_( and check if it is the right context to use it.
Re: Testing Inter-language Games on Studio?
Posted: 14 May 2021, 15:09
by BaronFraser
Benoit314 wrote: ↑14 May 2021, 14:44
You'll need to activate dummy translations on the manage game page. There is no other language supported on studio.
Bummer. That doesn't achieve the goal of 2 players playing using different languages to each other. No worries - I'll just test in Production (what could possibly go wrong?)
Re: Testing Inter-language Games on Studio?
Posted: 14 May 2021, 15:15
by Benoit314
If you can access the source code of a game, I think it would be faster to check every instance.
You can request read-only on a game and validate.
Re: Testing Inter-language Games on Studio?
Posted: 15 May 2021, 02:10
by Victoria_La
Did you run project check on studio? It will find all non-translated strings (but it won't be able to tell different between calling self::_() in php vs clienttranslate().
If you sure the user see strings from person who initiated it - its definitely calling _ in php and sending it via notification.