Forums / Developer / Import multilanguage content to ez

"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".

Import multilanguage content to ez

Author Message

Pierre Tissot

Wednesday 21 November 2007 7:40:14 am

Hello,

I need to import multi language via script to Ez. I can find several extension to import data, but none of them speak about language. Is there any help out there?

On my own i discover, and correct me if I'm wrong that to create an object in a specific language we use:

                 
                    $contentObject =& $class->instantiate( $userID, $sectionID, false, 'fre-FR' );

but once the object is created I want to create in other languages how to proceed? with:


    eZContentObjectTreeNode::subTree( array( 'Language' => 'fre-FR'  )

Can somebody enligth me?

PiR

Laurent BOURREL

Wednesday 21 November 2007 8:27:16 am

Hi Pierre,

The idea is to create another version of your object. Try something like this(draft, not tested) :

$VersionAutre = $contentObject->createNewVersionIn("eng-UK","fre-FR");
$VersionAutre->setAttribute( 'status', EZ_VERSION_STATUS_DRAFT );
$version =& $contentObject->version($VersionAutre);		
$VersionAutre->store();	

Daniel Hoppe

Wednesday 21 November 2007 11:12:31 am

Hi Pierre,

I had the same problem, so I wrote my own extension
(nearly finished, only some trouble with Unicode image names and its not pure OOP).

I will clean the code and publish it if more people are interested in this kind of extension.
If you can not wait please contact my by personal message.

Daniel

Heath

Wednesday 21 November 2007 11:45:59 am

Hello Daniel,

interest +1

Cheers,
Heath

7x | https://se7enx.com/
Brookins Consulting | https://brookinsconsulting.com/
Certified | http://web.archive.org/web/201012...th.ez.no/certification/verify/380350
Solutions | https://projects.exponential.earth/users/community/brookins-consulting
eZpedia community documentation project | http://ezpedia.se7enx.com

Pierre Tissot

Monday 26 November 2007 1:34:50 am

...Me too +9999 ;-)