Page MenuHomePhabricator

D16322.id.diff
No OneTemporary

D16322.id.diff

diff --git a/src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php b/src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php
--- a/src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php
+++ b/src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php
@@ -195,12 +195,21 @@
private function renderChangesetLines() {
$changeset = $this->getChangeset();
- $line_count = $changeset->getAffectedLineCount();
- if (!$line_count) {
- return null;
+ $add = $changeset->getAddLines();
+ $del = $changeset->getDelLines();
+
+ $t = array();
+ if ($add) {
+ $t[] = pht('%d line(s) added', (int)$add);
+ }
+ if ($del) {
+ $t[] = pht('%d line(s) deleted', (int)$del);
}
- return ' '.pht('(%d line(s))', $line_count);
+ if (!$t) {
+ return null;
+ }
+ return pht(' (%s)', implode(', ', $t));
}
private function renderCoverage() {
diff --git a/src/infrastructure/internationalization/translation/PhabricatorUSEnglishTranslation.php b/src/infrastructure/internationalization/translation/PhabricatorUSEnglishTranslation.php
--- a/src/infrastructure/internationalization/translation/PhabricatorUSEnglishTranslation.php
+++ b/src/infrastructure/internationalization/translation/PhabricatorUSEnglishTranslation.php
@@ -26,7 +26,8 @@
'%d Advice(s)' => array('%d Advice', '%d Pieces of Advice'),
'%d Detail(s)' => array('%d Detail', '%d Details'),
- '(%d line(s))' => array('(%d line)', '(%d lines)'),
+ '%d line(s) added' => array('%d line added', '%d lines added'),
+ '%d line(s) deleted' => array('%d line deleted', '%d lines deleted'),
'%d line(s)' => array('%d line', '%d lines'),
'%d path(s)' => array('%d path', '%d paths'),

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 29, 12:54 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714605
Default Alt Text
D16322.id.diff (1 KB)

Event Timeline