Strange behaviour after installing translation

Author Message

Jan Krabbenbos

Monday 11 August 2003 3:03:22 am

I am translating my into dutch at the moment. I started out in english. Yesterday I installed my (partial) dutch translation and set ezp up to use this translation. Then I translated all the articles and other entries into dutch, so they where available in english and dutch. Then I changed the site.ini.append.php to use dutch as the main language. Today I found out that when editing an existing article (or other entry) every attribute shows up twice. So there are two entries for 'name', 'description', etc. When I create a new article there is only one.

I only want to use the dutch translation and remove eventually the english texts. Can anybody tell me how I can solve this and 'restore' the normal behaviour again?

Thanx
Jan

Jan Krabbenbos

Monday 11 August 2003 6:50:21 am

More info on this subject: What I did wrong.

After installing the dutch translation and translating all items in the folders, I first switched languages in site.ini.append.php: Locale=dut-NL

Then I checked if it worked and I did not miss anything. It worked perfectly. Then I also changed:
ContentObjectLocale=dut-NL

And then in the setup removed the english translation. All the english texts are now suddenly seen as dut-NL in the database. I checked i.e. the table ezcontentobject_attribute and removed all versions of an item where I could guess it was the english version (starting at version 1, dutch came in later). Then checked the editing of this item again, and it showed up in the correct way.

Conclusion: by removing a translation all items that have an entry in the database for this translation, these items get automatically an existing language. If you then try to edit such an item, the attributes of that item doubles.

I do not think it is a bug in ezp3, but it might be an unwanted feature. If anybody has a good suggestion how to solve this in an easy way, without starting again, I appreciate that.

Thanx,
Jan

padEE Scherer

Thursday 21 August 2003 2:18:30 am

Well, I had ez running perfectly until I switched the translation from English to German. After I deleted the English translation, nothing worked. I could only access the admin site, but the content of all folders could not be looked at. On the normal view I've created came the kernel error 3.
So, basically, I can't access to my site and I really don't want to start again.

I would be very glad, if someone could tell me what exactly went wrong and what could be done to fix it.

cheers,
padEE

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 18:30:16
Script start
Timing: Jan 18 2025 18:30:16
Module start 'layout'
Timing: Jan 18 2025 18:30:16
Module start 'content'
Timing: Jan 18 2025 18:30:17
Module end 'content'
Timing: Jan 18 2025 18:30:17
Script end

Main resources:

Total runtime0.5978 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 589.1797152.6406
Module start 'layout' 0.00750.0039 741.820339.4922
Module start 'content' 0.01140.5851 781.3125474.2656
Module end 'content' 0.59640.0013 1,255.578112.4375
Script end 0.5977  1,268.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5558160.0002
Check MTime0.00130.2249160.0001
Mysql Total
Database connection0.00110.189410.0011
Mysqli_queries0.552792.4607570.0097
Looping result0.00050.0764550.0000
Template Total0.564394.420.2822
Template load0.00220.369220.0011
Template processing0.562194.034420.2811
Template load and register function0.00010.020910.0001
states
state_id_array0.00070.118110.0007
state_identifier_array0.00080.128820.0004
Override
Cache load0.00190.3117230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.102720.0003
Fetch class attribute name0.00090.152730.0003
XML
Image XML parsing0.00020.037520.0001
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00150.2483100.0001
String conversion0.00000.001540.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/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: 17
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs