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.
CivicActions is reviewing and upgrading multiple modules for use on client sites. Part of this work is a coding standards review. Attached you will find a patch based on a review with the coder module and a careful examination of the code.
It is important that this is fixed because the presence of a leading or trailing space makes it very difficult for translators and some editing tools. It often means that the extra spaces are dropped and so the translated text may never be displayed. The extra space should be moved outside the t() function call.
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#3 | pathauto.patch | 772 bytes | wmostrey |
#1 | pathauto.patch | 772 bytes | wmostrey |
Comments
Comment #1
wmostrey CreditAttribution: wmostrey commentedComment #2
stella CreditAttribution: stella commentedThis one needs work:
The space moved should be moved outside the call to format_plural().
Comment #3
wmostrey CreditAttribution: wmostrey commentedYou are correct, thanks for the review Stella. Here is the correct version.
Comment #4
Freso CreditAttribution: Freso commentedIf you want this to get in, you should provide a fix for all the affected translations as well, as 6.x-1.x has been in string freeze for quite some time. The issue has been fixed for 6.x-2.x with #256340: String clean up, and I think your best bet would be to backport that patch to 6.x-1.x (or simply go ahead and use (a snapshot of) 6.x-2.x).