Forums / Developer / Get available translated content for object in PHP
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
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"; }