• Resolved twelvell

    (@twelvell)


    Hi,

    If we have a multilingual website set up with WPML s it possible to somehow translate the ‘# min read’ text?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author brianmcculloh

    (@brianmcculloh)

    Unfortunately that is not wrapped within a gettext function to make it translation ready. The line is in the worth-the-read.php file at line 335:

    $time_format = empty($options[‘time-format’]) ? ‘# min read’ : $options[‘time-format’];

    I need to update that in the next release so that it’s multilingual ready. Thanks for bringing this to my attention.

    Thread Starter twelvell

    (@twelvell)

    I am not sure if this will be the correct approach, but I edited the line like this:
    $time_format = empty($options['time-format']) ? __('# min read','wpml_domain_name') : $options['time-format'];
    This works for me and I am able to scan for the # min read string with WPML

    Plugin Author brianmcculloh

    (@brianmcculloh)

    Yep, that’s the way to do it! Thanks for sharing the code. I will get it in the next update ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translate # min read’ is closed to new replies.