diff --git a/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php b/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php index f5cedf225a..3846b9cf41 100644 --- a/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php +++ b/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php @@ -22,7 +22,7 @@ final class PhabricatorXHPASTViewStreamController 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 index c15bdc2928..5b94323c9c 100644 --- a/src/applications/phpast/controller/PhabricatorXHPASTViewTreeController.php +++ b/src/applications/phpast/controller/PhabricatorXHPASTViewTreeController.php @@ -29,7 +29,7 @@ final class PhabricatorXHPASTViewTreeController protected function buildTree($root) { try { $name = $root->getTypeName(); - $title = $root->getDescription(); + $title = pht('Node %d: %s', $root->getID(), $name); } catch (Exception $ex) { $name = '???'; $title = '???';