Embedded object translation problem

Author Message

Lo' F.

Wednesday 17 November 2010 2:20:35 pm

Hi!

I have a frontpage object embedded inside another frontpage.

Added a new translation for this included object, but when browsing the page in another language, the main frontpage is right in the current language version while this embedded object keeps having the original language. A translated version of an object should not be taken automatically?

Launching $object|attribute(show), I get this outcome

Attribute Type Value
...    
name string 'Object Title in English'
...    
>name string 'Object Title in Italian'
>version_name string 'Object Title in English'
...    
class_name string 'Frontpage'
content_class object[eZContentClass] Object
...    
>prioritized_languages_js_array string '[ { locale: 'eng-GB', name: 'English (United Kingdom)' } ]'
...    
>top_priority_language_locale string 'eng-GB'
...    
>default_language string 'eng-GB'
...    
>current_language string 'ita-IT'
...    
>initial_language_code string 'ita-IT'
...    
default_language string 'eng-GB'
...    
current_language string 'eng-GB'
...    
>name string 'English (United Kingdom)'
>locale string 'eng-GB'
...    
initial_language object[eZContentLanguage] Object
>name string 'Italiano'
>locale string 'ita-IT'
...    
initial_language_code string 'ita-IT'
available_languages array Array(1)
>0 string 'eng-GB'
language_codes array Array(1)
>0 string 'eng-GB'
language_js_array string '[ { locale: 'eng-GB', name: 'English (United Kingdom)' } ]'
languages array Array(1)
>eng-GB object[eZContentLanguage] Object
all_languages array Array(2)
>eng-GB object[eZContentLanguage] Object
>ita-IT object[eZContentLanguage] Object
...    

?!

loredanaebook.it

Lo' F.

Wednesday 17 November 2010 3:38:51 pm

..Oh, leave it..!

The problem was that in the template line.tpl the name of the object, which is actually the only part being showed inside the frontpage. was recalled in this way..

{$object.main_node.name}

which obviously refers to its original version name, instead of this other way...

{$object.name}

loredanaebook.it

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.