Importing multilingual content

Author Message

Norman ROCHE

Wednesday 10 December 2008 9:35:27 am

Hello all,

I succesfully imported content to ezpublish thanks to the data_import extension which was a really good starting point to understand ezpublish.

However I am facing one last problem: I also need to import various attributes translations for the same content object (i do not want to create a new version - i just want to add the translation to the current one)

As far as i know, translations are handled at the attribute level - but i can't find any method that would initialize attributes in another language.

Help of some eZGurus would be really appreciated. :)

Thank you very much

 

Stephane Cottin

Friday 02 January 2009 1:00:11 am

In the new version (1.4) of data_import, you can specify the language with the tag language="eng-GB" (for exemple) in your XML. In the remote_id already exists in a different language, the system will make a translation.

Regards
Stephane

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:53:56
Script start
Timing: Jan 18 2025 15:53:56
Module start 'layout'
Timing: Jan 18 2025 15:53:56
Module start 'content'
Timing: Jan 18 2025 15:53:57
Module end 'content'
Timing: Jan 18 2025 15:53:57
Script end

Main resources:

Total runtime0.5214 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 594.6719152.6250
Module start 'layout' 0.00540.0024 747.296939.4453
Module start 'content' 0.00780.5124 786.7422457.3359
Module end 'content' 0.52020.0011 1,244.07818.1641
Script end 0.5214  1,252.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.5315160.0002
Check MTime0.00120.2295160.0001
Mysql Total
Database connection0.00090.176210.0009
Mysqli_queries0.487593.5069540.0090
Looping result0.00040.0692520.0000
Template Total0.499995.920.2499
Template load0.00190.363820.0009
Template processing0.498095.505420.2490
Template load and register function0.00010.028210.0001
states
state_id_array0.00030.054310.0003
state_identifier_array0.00060.107820.0003
Override
Cache load0.00150.2944140.0001
Sytem overhead
Fetch class attribute can translate value0.00040.076520.0002
Fetch class attribute name0.00090.164220.0004
XML
Image XML parsing0.00020.041120.0001
class_abstraction
Instantiating content class attribute0.00000.001120.0000
General
dbfile0.00050.0948100.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs