diff --git a/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php b/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php --- a/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php +++ b/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php @@ -22,7 +22,7 @@ foreach ($tree->getRawTokenStream() as $id => $token) { $seq = $id; $name = $token->getTypeName(); - $title = pht('Token %s: %s', $seq, $name); + $title = pht('Token %d: %s', $seq, $name); $tokens[] = phutil_tag( 'span', diff --git a/src/applications/phpast/controller/PhabricatorXHPASTViewTreeController.php b/src/applications/phpast/controller/PhabricatorXHPASTViewTreeController.php --- a/src/applications/phpast/controller/PhabricatorXHPASTViewTreeController.php +++ b/src/applications/phpast/controller/PhabricatorXHPASTViewTreeController.php @@ -29,7 +29,7 @@ protected function buildTree($root) { try { $name = $root->getTypeName(); - $title = $root->getDescription(); + $title = pht('Node %d: %s', $root->getID(), $name); } catch (Exception $ex) { $name = '???'; $title = '???';