Forums / Developer / How to automate content translation for CSV import

"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 automate content translation for CSV import

Author Message

viraj hoober

Tuesday 24 August 2010 3:01:30 am

Hi i am using the data_import extension to import CSV files which contains user details. The import operation works fine. Problem comes when searching a user using ezfind. Although the user is present, you don't get the result.

After much search i got a solution but it is not appropriate for me ( http://share.ez.no/articles/ez-publish/translating-content-in-ez-publish ). When performing a content translation, i get the result when searching the user.

This solution is not appropriate as i have over 200 users. Is it possible to automate the translation when doing the CSV import? Some help would be greatly appreciated.

Philippe VINCENT-ROYOL

Tuesday 24 August 2010 5:31:41 am

Hi viraj,

Create your own ImportOperator.php. On line 48, you create the object with language you use on your siteaccess ( see getTargetLanguage() function ).

Just add some line to import via different languages :)

Cheers

Philippe

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe