Because for some complex situations it would be easier, I would like to do something like that (very simplified example):
Code: Select all
self::notifyPlayer('log', clienttranslate('${part_1} and ${part_2}', array(
'part_1' => clienttranslate('${part_11} or ${part_12}'),
'part_2' => clienttranslate('${part_21} or ${part_22}'),
'part_11' => clienttranslate('card'),
'part_12' => clienttranslate('cube'),
'part_21' => clienttranslate('meeple'),
'part_22' => clienttranslate('code'),
'i18n' => array('part_1', 'part_2', 'part_11', 'part_12', 'part_21', 'part_22')
));
Code: Select all
'card or cube and meeple or code'
But instead I get
Code: Select all
'{part_11} or {part_12} and {part_21} or {part_22}'
Thanks!
Tcheby