hello,
by now, log displays "huntelaar0 moves Troll" and I would like to show "huntelaar0 moves Troll".
I'm using this trick :
in material.inc, I have lots of characters like this :
Is there a proper way to do this because I don't want translation to be upside down ?
by now, log displays "huntelaar0 moves Troll" and I would like to show "huntelaar0 moves Troll".
I'm using this trick :
Code: Select all
function moveCharacter( $type,...
...
$color = self::getUniqueValueFromDB( "SELECT player_color FROM player WHERE player_id = '$player_id' ");
self::notifyAllPlayers( 'simpleNote', clienttranslate('${player_name} moves ${colorhtml}${character}${colorend}'),
array(
'i18n' => array( 'character' ),
'player_name' => self::getActivePlayerName(),
'character' => $this->token_types[ $type ]['name'],
'colorhtml' => "<span style='font-weight:bold;color:#$color'>",
'colorend' => "</span>"
) );
Code: Select all
'troll' => array(
'name' => clienttranslate('Troll'),Is there a proper way to do this because I don't want translation to be upside down ?