How to translate a custom read more link?

Created on 11 August 2016, over 8 years ago
Updated 23 November 2023, 12 months ago

Hey guys

I'm using the smart trim module in a multilingual website, but can't seem to get my "read more" link translated.
I tried through the translate interface but no success.
The "read more" link field is not available when translating the field.

Am I doing something wrong?
Thank you!

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium yvesvanlaer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇭Switzerland weri

    In the newest dev version for 2.1.x (not working in the 2.1.0 release) you can use the hook "hook_smart_trim_link_modify" to modify this text or the link in general.

    Example:

    /**
     * Implements hook_smart_trim_link_modify()
     */
    function MODULE_smart_trim_link_modify($entity, &$more, &$url) {
      $more = t('Read more');
    }
    
Production build 0.71.5 2024