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.
In my language (Slovenian) and I believe there are other occurrences, the ellipse must be preceded by a space. Views - when trimming a field to a maximum length with the 'Add an ellipsis' option turned on - adds the ellipsis without the space.
Drupal truncate_utf8 function wraps the three dots in t(), allowing that punctuation to be translated. Would there be any drawbacks if the same method was used here?
I am attaching a patch with that change.
Comment | File | Size | Author |
---|---|---|---|
views-translate-ellipsis.patch | 390 bytes | Primsi | |
Comments
Comment #1
dawehnerSure this makes absolute sense. Thanks for providing a patch! Commited to 7.x-3.x
I'm wondering what you think about using truncate_utf8 here? If you think it's worth to change feel free to post another issue.