Hi everybody,
In my gameXXX.game.php, I send an array of array which contains strings to be translated on client-side.
Here is a simplified static example in the getAllDatas function:
Will this be sufficiant for the i18n system to work in that context or do I have to add something for translation to take place for the client?
Thanks for your insights!
Wood
In my gameXXX.game.php, I send an array of array which contains strings to be translated on client-side.
Here is a simplified static example in the getAllDatas function:
Code: Select all
$result['hand']= [
[ /* 1st card */
[
/* 1st text */
'i18n': ['str']
'str': $var; // marked earlier as translatable with clienttranslate("")
// …
],
[
/* 2nd text */
'i18n': ['str']
'str': $var2; // marked earlier as translatable with clienttranslate("")
// …
],
// …
],
[ /* 2nd card */
// …
],
// ...
]Thanks for your insights!
Wood