Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13972064
D16322.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16322.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 18, 4:56 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714605
Default Alt Text
D16322.diff (1 KB)
Attached To
Mode
D16322: Render lines added, removed in Revision
Attached
Detach File
Event Timeline
Log In to Comment