eZ Community » Forums » Setup & design » Related content Translation
expandshrink

Related content Translation

Related content Translation

Saturday 10 December 2011 4:36:41 pm - 3 replies

Hello guys,

I have an issue with the list of objects in the related content. All the elements name, in any language, appear in english even if they ridirect to the translated page. How can I change the names to the translated name.

Thank you.

Monday 12 December 2011 12:26:43 am

Hello,

You could create a custom fetch function to filter languages of related node.

Tuesday 13 December 2011 10:18:05 pm

 

And how can I do that? at this moment my function is like this:

 <div class="attribute-relatedcontent">
    <h1>{"Related content"|i18n("design/ezwebin/full/article")}</h1>
    <ul>
    {foreach $related_content|reverse() as $related_object max 7}
        <li><a href="{$related_object.url_alias|ezurl( 'no' )}" title="{$related_object.name|wash()}"
>{$related_object.name|wash()}</a></li>
    {/foreach}
    </ul>
</div>

Sunday 10 March 2013 10:21:42 pm

The reply has been removed because of violation of forum rules.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from