diff --git a/src/applications/paste/controller/PhabricatorPasteListController.php b/src/applications/paste/controller/PhabricatorPasteListController.php index 01f4c5907f..32194daed1 100644 --- a/src/applications/paste/controller/PhabricatorPasteListController.php +++ b/src/applications/paste/controller/PhabricatorPasteListController.php @@ -93,13 +93,17 @@ final class PhabricatorPasteListController extends PhabricatorPasteController { $source_code); $line_count = count(explode("\n", $paste->getContent())); + $line_count = pht( + '%2$s Line(s)', + $line_count, + PhutilTranslator::getInstance()->formatNumber($line_count)); $item = id(new PhabricatorObjectItemView()) ->setHeader($paste->getFullName()) ->setHref('/P'.$paste->getID()) ->setObject($paste) ->addAttribute(pht('Created %s by %s', $created, $author)) - ->addIcon('none', pht('%s Line(s)', number_format($line_count))) + ->addIcon('none', $line_count) ->appendChild($source_code); $lang_name = $paste->getLanguage(); diff --git a/src/infrastructure/internationalization/PhabricatorBaseEnglishTranslation.php b/src/infrastructure/internationalization/PhabricatorBaseEnglishTranslation.php index 75080c4a37..a353b4593a 100644 --- a/src/infrastructure/internationalization/PhabricatorBaseEnglishTranslation.php +++ b/src/infrastructure/internationalization/PhabricatorBaseEnglishTranslation.php @@ -193,9 +193,9 @@ abstract class PhabricatorBaseEnglishTranslation ), ), - '%s Line(s)' => array( - '%s Line', - '%s Lines', + '%2$s Line(s)' => array( + '%2$s Line', + '%2$s Lines', ), "Indexing %d object(s) of type %s." => array(