Jump to content

Different text in multi-language


gregory
 Share

Recommended Posts

Hi, I'm working on a bilingual site (it  / en). I would need to automatically translate the classic "Continue reading". How can I do? 

Thanks in advance.

 

<?php
$stories = $page->children("limit=3, sort=-date");

foreach($stories as $story) {

    echo "<div>";
      echo "<h2><a href='{$story->url}'>{$story->title}</a></h2>";
      echo "<div>{$story->summary}</div>";
      echo "<a href='{$story->url}'>Continue reading</a>";
    echo "</div>";
}
?>

 

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...