unable to add translations of older articles

Author Message

Andre Felipe Machado

Sunday 27 February 2005 6:43:18 pm

Sir:
After changing primary language of the site, older articles can not be edited anymore.
The procedure described at
http://www.ez.no/ez_publish/documentation/day_to_day_use/translate_content
Only works for articles created under the current default language.
Is there a way to edit older articles,
Will I have to reconfigure to older master language (por-PT), add translation for each article, then re reconfigure to the new default language (por-BR)?
Is there a better way to accomplish this?
Is there a site ini configuration for this?
Regards.
Andre Felipe

---
A Debian user never dies. Issues a last command:
shutdown -h now

http://www.techforce.com.br

Ɓukasz Serwatka

Monday 28 February 2005 10:22:50 pm

You can change your translations in database. Look in to "ezcontentobject_name" table and "ezcontentobject_attribute".

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Andre Felipe Machado

Thursday 03 March 2005 5:59:17 am

Hello,
Thanks for your hint.
First I manually deleted all por-PT second translation articles. So, only single language articles remained. They were por-PT OR por-BR, not both.
I stoped ezpublish then dumped sql from db. (complete and delayed inserts, , drop db, etc, slow and big but reliable)
After, used vim (it can edit multimegabytes files that crashes other editors) to change all but first por-PT instances for por-BR.
The first occurrence is the ez configuration showing wich translations are available.
Restored the database from the new sql dump and restarted Ezpub. Cleared all caches.
It has been working for some hours and I can edit the old articles. They are showing por-BR as the only translation.
wow, it was a brain surgery.
I will test more, but I 'guess' it is ok.
Is there any hidden catch about this solution?
Many thanks.
Andre Felipe

---
A Debian user never dies. Issues a last command:
shutdown -h now

http://www.techforce.com.br

Andre Felipe Machado

Sunday 06 March 2005 6:44:57 am

Hello,
I discovered a drawback.
The article images, and other images became invisible.
The 'right' way to overcome this is BEFORE changing master translation, to ADD the new translation to all articles.
Then after the master translation changing, delete the old translation.
The images are stored in /var/storage using directories associated with translation and a control code.
Simply changing its suffix to new translation does not work.
The other quick and dirt mode is using ezpublish to edit each image, re uploading each one to each image object. This is dirty. will leave wrong translation subdirs, but is faster.
i suggest the most labarious way. it is cleaner.
Regards.
Andre Felipe

---
A Debian user never dies. Issues a last command:
shutdown -h now

http://www.techforce.com.br

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 22:36:12
Script start
Timing: Jan 18 2025 22:36:12
Module start 'layout'
Timing: Jan 18 2025 22:36:12
Module start 'content'
Timing: Jan 18 2025 22:36:13
Module end 'content'
Timing: Jan 18 2025 22:36:13
Script end

Main resources:

Total runtime1.1408 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 588.0391152.6406
Module start 'layout' 0.00910.0034 740.679739.4766
Module start 'content' 0.01261.1268 780.1563562.3281
Module end 'content' 1.13940.0014 1,342.484416.4375
Script end 1.1408  1,358.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2923160.0002
Check MTime0.00130.1160160.0001
Mysql Total
Database connection0.00280.247510.0028
Mysqli_queries1.075094.2334600.0179
Looping result0.00060.0494580.0000
Template Total1.101896.620.5509
Template load0.00190.170120.0010
Template processing1.099996.410520.5499
Template load and register function0.00010.007710.0001
states
state_id_array0.00220.190610.0022
state_identifier_array0.00110.098620.0006
Override
Cache load0.00180.1567460.0000
Sytem overhead
Fetch class attribute can translate value0.00050.043620.0002
Fetch class attribute name0.00130.112660.0002
XML
Image XML parsing0.00110.096320.0005
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00100.0913240.0000
String conversion0.00000.000940.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs