Testing Inter-language Games on Studio?

Game development with Board Game Arena Studio
Post Reply
User avatar
BaronFraser
Posts: 39
Joined: 10 June 2020, 10:27

Testing Inter-language Games on Studio?

Post 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?
User avatar
Benoit314
Posts: 82
Joined: 02 April 2020, 22:12

Re: Testing Inter-language Games on Studio?

Post 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.
User avatar
BaronFraser
Posts: 39
Joined: 10 June 2020, 10:27

Re: Testing Inter-language Games on Studio?

Post 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?)
User avatar
Benoit314
Posts: 82
Joined: 02 April 2020, 22:12

Re: Testing Inter-language Games on Studio?

Post 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.
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Testing Inter-language Games on Studio?

Post 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.
Post Reply

Return to “Developers”