This is my code:
The self::_("Route of %s") is translated (since many days), but the translation is not displayed. Does translation in loop-blocks not work?
Code: Select all
$this->page->begin_block("thurnandtaxis_thurnandtaxis", "player");
...
for ($i=0;$i<$playersCnt;$i++){
$player = $players[$pointer];
$this->page->insert_block("player", array(
'PLAYER_ID' => $player['player_id'],
'PLAYER_NAME' => $player['player_name'],
'ROUTE_OF' => sprintf(self::_("Route of %s"), $player['player_name']),
'SELF' => $pointer == $currentPlayerId ? 'self' : '',
));
$pointer = $nextPlayers[$pointer];
};