[development] Batch load of Entity Translations

Gábor Hojtsy gabor at hojtsy.hu
Tue Apr 2 06:53:01 UTC 2013

Hi Richard,

Ideally you'd not write your own import/migration code but use an existing
migration system for Drupal instead such as migrate module. That way (a)
you don't need to write the code (b) any bugs you find will be solved for
others. Have you looked at migrate module or some other solution already
available to this problem?

(If you really need to solve this with your own code, look at all the field
data tables for the affected Drupal node fields and the entity translation
module tables where the translation metadata lives. Entity translation
works with fields stored translated and metadata provided by the entity
translation module).


On Mon, Apr 1, 2013 at 7:55 PM, Richard Jeffreys <RHJeffreys at emcoltd.com>wrote:

>  (Also posted on Forums)
> I've been looking for almost a week and can't find anything anywhere to
> give me the information I'm looking for. So if it does exist and I'm just
> being an idiot I apologize.
> I have created a drupal module to display Job Postings. The postings along
> with the translated data are all created in a separate system so all I want
> to do is load the posting and related translations into my Drupal website
> automatically.
> I already have the job posting data loading properly and as far as I can
> tell I have the module coded to pull the translations as required and
> available. It displays the job postings and the module labels are displayed
> in the correct language as appropriate.
> However, it is the related translations I am having trouble with. I need
> to be able to load that data into the appropriate tables when I load the
> base posting data. I can't find anything that tells me which tables I need
> to populate and what other settings/data I would need to add to the Drupal
> site to enable the display of the translations as required. I am pretty
> sure it isn't a simple as add data to this table and magic happens. But I
> can't for the life of me figure it out.
> Can anyone point me in the right direction?
> Thanks.
> *Richard Jeffreys*
> *DBA / Programmer / Analyst*
> Phone: 519-453-9600 x2324
> Email:  *rhjeffreys at emcoltd.com* <rhjeffreys at emcotld.com>
> Visit the EMCO Self Help Site: *http://help.emcoltd.com*<http://help.emcoltd.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20130402/3cc64f36/attachment-0001.html 

More information about the development mailing list