Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The toolbar integration uses 'N changes' even if there is only 1 change.
Steps to reproduce
Proposed resolution
Use format plural functionality to show '1 change' or 'N changes'
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff_8-11.txt | 688 bytes | munish.kumar |
#11 | 3172128-11.patch | 3.3 KB | munish.kumar |
#8 | interdiff_5-8.txt | 2.29 KB | munish.kumar |
#8 | 3172128-8.patch | 3.03 KB | munish.kumar |
#5 | 3172128-5.patch | 2.19 KB | Pooja Ganjage |
Comments
Comment #2
Pooja Ganjage CreditAttribution: Pooja Ganjage at Asentech LLC commentedHi,
I am creating patch for this issue.
Kindly review the patch once.
Thanks.
Comment #3
Pooja Ganjage CreditAttribution: Pooja Ganjage at Asentech LLC commentedComment #5
Pooja Ganjage CreditAttribution: Pooja Ganjage at Asentech LLC commentedComment #6
Pooja Ganjage CreditAttribution: Pooja Ganjage at Asentech LLC commentedComment #7
larowlanThis needs to use format_plural instead of t - because now when there 3 changes, it will say '3 change' instead of '3 changes;
Comment #8
munish.kumar CreditAttribution: munish.kumar as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedComment #9
larowlanThanks @munish.kumar!
Do you think we should expand that test to assert that it shows '2 changes' when another item is added - would be something like this added to the end of the existing
assertToolbarIntegration
method:Thoughts?
Comment #10
munish.kumar CreditAttribution: munish.kumar as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedHi @larowlan, Agree with your thoughts, That we should need the test cases for the multiple changes. We need to expand the existing test case so that we can cover both the scenario. Will update the patch shortly.
Thanks for your valuable feedback.
Comment #11
munish.kumar CreditAttribution: munish.kumar as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedComment #12
larowlanThanks @munish.kumar - fixed!
Really appreciate all the patches here.
Comment #14
larowlan