Need to correct grammar for messages in the tracker.test file. Need to correct verb/subject agreement and to make the messages complete sentences.
$this->assertNoText($unpublished->title, t('Unpublished node do not show up in the tracker listing.'));
should be changed to:
$this->assertNoText($unpublished->title, t('Unpublished node does not show up in the tracker listing.'));
$this->assertText($published->title, t('Published node show up in the tracker listing.'));
should be changed to:
$this->assertText($published->title, t('Published node shows up in the tracker listing.'));
$this->assertNoText($published->title, t('Deleted node do not show up in the tracker listing.'));
should be changed to:
$this->assertNoText($published->title, t('Deleted node does not show up in the tracker listing.'));
$this->assertNoText($unpublished->title, t("Unpublished nodes do not show up in the users's tracker listing."));
should be changed to:
$this->assertNoText($unpublished->title, t("Unpublished node does not show up in the users's tracker listing."));
$this->assertText($my_published->title, t("Published nodes show up in the user's tracker listing."));
should be changed to:
$this->assertText($my_published->title, t("Published node shows up in the user's tracker listing."));
$this->assertText('1 new', t('New comment is counted on the tracker listing pages.'));
should be changed to:
$this->assertText('1 new', t('1 new comment is counted on the tracker listing pages.'));
$this->assertText('updated', t('Node is listed as updated'));
should be changed to:
$this->assertText('updated', t('A node is listed as updated'));
$this->assertText('1 new', t('New comment is counted on the tracker listing pages.'));
should be changed to:
$this->assertText('1 new', t('1 new comment is counted on the tracker listing pages.'));
$this->assertText($node->title, t('Node is displayed on the tracker listing pages.'));
should be changed to:
$this->assertText($node->title, t('A node is displayed on the tracker listing pages.'));
$this->assertText(t('No content available.'), t('Node is displayed on the tracker listing pages.'));
should be changed to:
$this->assertText(t('No content available.'), t('A node is displayed on the tracker listing pages.'));
Comment | File | Size | Author |
---|---|---|---|
#18 | tracker-grammar-fixes-1338152-17.patch | 3.6 KB | headli |
#16 | tracker-grammar-fixes-13318152-16.patch | 3.91 KB | ditcheva |
#11 | tracker-grammar-fixes-1338152.patch | 2.93 KB | ditcheva |
#8 | tracker-grammar-1338152-8.patch | 8.54 KB | oriol_e9g |
#5 | trackertestmsg_1338152_2.patch | 3.87 KB | tregeagle |
Comments
Comment #1
kathyh CreditAttribution: kathyh commentedUpdates per issue summary.
Comment #2
Devin Carlson CreditAttribution: Devin Carlson commentedMost of the patch looks great, only one thing sticks out:
$this->assertText('1 new', t('1 new comment is counted on the tracker listing pages.'));
$this->assertText('1 new', t('1 new comment is counted on the tracker listing pages.'));
It isn't common practice to start a sentence with a number or to use the numerical representation of a number when it is less than ten. Should the '1 new comment' be changed to something like 'A new comment' (or 'One new comment' if an actual number is required)?
Comment #3
webchickLooks like a good patch for the novice queue!
Comment #4
watbe CreditAttribution: watbe commentedUpdated patch based on suggestion in comment 2 (which makes sense).
Comment #5
tregeagle CreditAttribution: tregeagle commentedPrevious patch contains some diff noise, try this one instead.
Comment #6
tregeagle CreditAttribution: tregeagle commentedupdating tags
Comment #7
oriol_e9gTests don't need to use the t() function #500866: [META] remove t() from assert message anymore:
should be:
We can do some cleanup in tracker.tests with this patch.
Comment #8
oriol_e9gSame patch in #5 but without t() functions. I know that the removal of t() function is out of scope, feel free to review and commit the patch in #5.
Comment #9
patrickd CreditAttribution: patrickd commented#8: tracker-grammar-1338152-8.patch queued for re-testing.
Comment #11
ditcheva CreditAttribution: ditcheva commentedLet's get these language clarifications out! It looks like this code is no longer in modules/tracker/tracker.test. That file no longer exists. I've updated this to run against the current 8.x drupal version, and it now modifies the /tracker/Tests/TrackerTest.php file, in which the t() functions were already taken out....
Comment #12
mitron CreditAttribution: mitron commentedFirst change below is required to fix bad grammar. Second change is more "natural" sounding English but could be OK as is.
Comment #13
parthipanramesh CreditAttribution: parthipanramesh commentedI agree to mitron.
Comment #14
pkunwar CreditAttribution: pkunwar commentedThe #11 patch failed with following rejections
--- core/modules/tracker/lib/Drupal/tracker/Tests/TrackerTest.php
+++ core/modules/tracker/lib/Drupal/tracker/Tests/TrackerTest.php
@@ -72,14 +72,14 @@
));
$this->drupalGet('tracker');
- $this->assertNoText($unpublished->label(), 'Unpublished node do not show up in the tracker listing.');
- $this->assertText($published->label(), 'Published node show up in the tracker listing.');
+ $this->assertNoText($unpublished->label(), 'Unpublished node does not show up in the tracker listing.');
+ $this->assertText($published->label(), 'Published node shows up in the tracker listing.');
$this->assertLink(t('My recent content'), 0, 'User tab shows up on the global tracker page.');
// Delete a node and ensure it no longer appears on the tracker.
node_delete($published->nid);
$this->drupalGet('tracker');
- $this->assertNoText($published->label(), 'Deleted node do not show up in the tracker listing.');
+ $this->assertNoText($published->label(), 'Deleted node does not show up in the tracker listing.');
}
/**
Comment #15
pkunwar CreditAttribution: pkunwar commentedComment #16
ditcheva CreditAttribution: ditcheva commentedI've redone the patch and included the suggestions from #12. Needs review!
Comment #17
headli CreditAttribution: headli commentedI'm rerolling this patch.
Comment #18
headli CreditAttribution: headli commentedThe patch has been rerolled. Please review.
Comment #19
dermarioLooks okay for me and the patch applies right.
Comment #20
catch