Forums / Developer / How to create content objects in other than the default language

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

How to create content objects in other than the default language

Author Message

Thomas Negeli

Wednesday 28 April 2010 4:04:36 am

How can I create a content object in other than the default language of the siteaccess?

I use createAndPublishObject from eZContentFunctions to create the objects. This works, but if I want to translate such an object afterwards, how to do this?

I tried createNewVersionIn(...) to do this, but it didn' work.

Is this the right way to translate an object to another than the current language?

Any advice would be cool.

Thanks.