Forums / Developer / Get available translated content for object in PHP

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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";
        }