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.

CommentFileSizeAuthor
views-translate-ellipsis.patch390 bytesPrimsi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Fixed

Sure 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.