Get available translated content for object in PHP

Author Message

Lex 007

Wednesday 27 April 2005 12:50:38 am

Hi,

I'm trying to get available translations for an object in PHP.

I tried :

$translations = $object->translationList();
foreach ( $RCDtranslations as $translation )
        {
        echo $translation->attribute("locale_code");
        }

but this code gives me all available languages for the whole site, not the available translated content for the object.

Please help !

Thx,

Lex

Lex 007

Wednesday 27 April 2005 1:15:33 am

Made it :

$objVersion      = &$RCDobject->currentVersion();
    $RCDtranslations = $objVersion->attribute("language_list");
    foreach ( $RCDtranslations as $translation )
        {
        echo $translation->attribute("language_code");
        echo "\n";
        }

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