Author Topic

Rainer Scharinger

Tuesday 10 February 2009 7:09:48 am

Comment50661

Hi,

thx for the fast reply. Unfortunately is does not work.

$parameters = $process->attribute( 'parameter_list' );
$object = eZContentObject::fetch( $parameters['object_id'] );
$language = $object->attribute('current_language');

$language always contains the language of the first translation and not the language of the published translation.

Is this a bug, or is something wrong with the code?

I also have tried

$language = $object->currentLanguage;

with the same result

Regards