gregory Posted November 9, 2017 Share Posted November 9, 2017 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 More sharing options...
Zeka Posted November 9, 2017 Share Posted November 9, 2017 Hi @gregory Take a look at this https://processwire.com/api/multi-language-support/code-i18n/#translatable-strings and https://processwire.com/api/multi-language-support/ and also we have new Pro Functional field that might suit your needs. https://processwire.com/blog/posts/functional-fields/ 3 Link to comment Share on other sites More sharing options...
gregory Posted November 24, 2017 Author Share Posted November 24, 2017 Thank You @Zeka I solved with Code Internationalization (i18n) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now