how to make a import-script importing several languages ?

Author Message

Sven Anderson

Monday 19 July 2004 7:36:42 am

I wrote a script to import objects for a configured language.
Now I need to extend it, so more then one language can be imported with it.
I figured out that the object has to be created first in the standardlanguage before an other language can be added, but what functions do I have to use to add other languages ?

Björn Dieding@xrow.de

Tuesday 27 July 2004 6:04:08 am

http://pubsvn.ez.no/doxygen

I have never done it, but my estimate is that you should try it by creating a new version and assigning a different language to it

eZContentObejct::setDefaultLanguage($lang)

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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 31 2025 10:11:04
Script start
Timing: Jan 31 2025 10:11:04
Module start 'layout'
Timing: Jan 31 2025 10:11:04
Module start 'content'
Timing: Jan 31 2025 10:11:04
Module end 'content'
Timing: Jan 31 2025 10:11:04
Script end

Main resources:

Total runtime0.0176 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.3750151.2422
Module start 'layout' 0.00510.0028 739.617236.7109
Module start 'content' 0.00790.0084 776.328190.2188
Module end 'content' 0.01630.0013 866.546929.9922
Script end 0.0176  896.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.9812140.0002
Check MTime0.00116.1043140.0001
Mysql Total
Database connection0.00084.616210.0008
Mysqli_queries0.002514.101730.0008
Looping result0.00000.113710.0000
Template Total0.00105.510.0010
Template load0.00084.480810.0008
Template processing0.00020.965510.0002
Override
Cache load0.00063.283710.0006
General
dbfile0.003720.969880.0005
String conversion0.00000.044740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs