Hi !
I'm working on a game where some action might be mandatory or optionnal depending on some power, and I would like to be able to display either "You must move" or "You may move" depending on the context, without having to duplicate the corresponding state.
Is there any easy way to do so ? I tried to do :
'description' => clienttranslate('${description}')
'descriptionmyturn' => clienttranslate('${descriptionmyturn}'),
But the thing is that the variable ${description} is then not replaced when I do this :
$arg['description'] = clienttranslate('${playerName} may move a worker');
it's just printing "${playerName} may move a worker" instead of the string I want to display.
Any idea ?
Thanks !
I'm working on a game where some action might be mandatory or optionnal depending on some power, and I would like to be able to display either "You must move" or "You may move" depending on the context, without having to duplicate the corresponding state.
Is there any easy way to do so ? I tried to do :
'description' => clienttranslate('${description}')
'descriptionmyturn' => clienttranslate('${descriptionmyturn}'),
But the thing is that the variable ${description} is then not replaced when I do this :
$arg['description'] = clienttranslate('${playerName} may move a worker');
it's just printing "${playerName} may move a worker" instead of the string I want to display.
Any idea ?
Thanks !