One translation not displaying default objects

Author Message

Eirik Alfstad Johansen

Friday 03 December 2004 2:55:34 am

Hi,

I have a site with several translations. One of these translations (the german one) does not show the objects of the site unless they are specifically translated into german, as apposed to the other translations which show the "default" object if it has not been translated.

What could be causing this? I've compared the site.ini.append.php in the siteaccess of the translation to the other translations, and I can't seem to find any significant differences.

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Balazs Halasy

Friday 03 December 2004 3:51:56 am

Hmm,

This sounds a bit strange - can you doublecheck please? Might be a bug, in that case: report it! By the way: which version are you running?

Balazs

Eirik Alfstad Johansen

Friday 03 December 2004 4:06:31 am

Hi Balazs,

What exactly do you want me to double-check?

I'm running v. 3.4.0.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Monday 06 December 2004 4:03:32 am

Bump.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Monday 06 December 2004 6:05:29 am

I see this too. Im going to dig a little further to try to get more info.

What is clear is if i try to view a page in german which 'defaults' correctly for all other languages, with english as the default, i get a kernel error (I think) 'Objekt ist nicht verfügbar'

paul

Paul Forsyth

Monday 06 December 2004 6:19:25 am

Error template used is: kernel/3.tpl

paul

Paul Forsyth

Monday 06 December 2004 6:22:38 am

http://ez.no/community/bug_reports/when_viewing_in_german_objects_in_the_default_language_are_not_displayed

Eirik Alfstad Johansen

Monday 06 December 2004 6:23:35 am

Hi Paul,

The same is the case with me. I think this is due to ezP looking for a german version of the main node (node id 2), because when I translate it to german, the main page appears fine.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Monday 06 December 2004 6:34:15 am

Hmmm, puzzling. Our objects are translated into German, including the root node.

paul

Paul Forsyth

Monday 06 December 2004 6:41:50 am

Eirik,

Do all nodes/objects underneath default to the base language in the german view now?

paul

Eirik Alfstad Johansen

Monday 06 December 2004 6:48:19 am

Hi Paul

<quote>
Hmmm, puzzling. Our objects are translated into German, including the root node.
</quote>

What do you mean? When are they translated into German?

<quote>
Do all nodes/objects underneath default to the base language in the german view now?
</quote>

I don't understand the question.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Monday 06 December 2004 7:11:24 am

Hi Eirik,

I think i've found the problem and it involves db corruption :(

When a new object is created the table ezcontentobect_name gets an entry for the content_translation as 'ger-DE@euro' not 'ger-DE'. When you edit the object in german it gets set correctly. But not when the object is first created i think.

This is why, i believe, other objects without the german translation dont show. The sql query cannot match 'ger-DE' to 'ger-DE@euro'.

Looking at the files in 'share/locale' i see 'ger-DE@euro.ini' before 'ger-DE.ini'. Is the file matching routine picking the first one it finds? I cant find any mention of 'euro' in my own files that might cause this...

paul

Eirik Alfstad Johansen

Monday 06 December 2004 7:41:36 am

Hi Paul,

That sounds about right. Editing the content_translation file for one of the rows in ezcontentobject_name, causes the related object to appear.

I too have no mention of 'ger-DE@euro' that I could find.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Monday 06 December 2004 12:58:14 pm

Think i've fixed it. It looks to be initially caused by a user error when setting up translations.

Have a read of the bug report for more.

But, the system shouldnt have behaved as it did.

Paul

Eirik Alfstad Johansen

Tuesday 07 December 2004 2:08:29 am

Thanks a lot, Paul! I did what you suggested, and now the german translation work as supposed to.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 20 2025 00:56:06
Script start
Timing: Jan 20 2025 00:56:06
Module start 'layout'
Timing: Jan 20 2025 00:56:06
Module start 'content'
Timing: Jan 20 2025 00:56:06
Module end 'content'
Timing: Jan 20 2025 00:56:06
Script end

Main resources:

Total runtime0.0198 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.0070 589.2891152.6406
Module start 'layout' 0.00700.0038 741.929739.4766
Module start 'content' 0.01080.0067 781.4063105.3672
Module end 'content' 0.01750.0022 886.773450.3047
Script end 0.0197  937.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002814.0294140.0002
Check MTime0.00125.8471140.0001
Mysql Total
Database connection0.00094.367810.0009
Mysqli_queries0.004221.261830.0014
Looping result0.00000.125410.0000
Template Total0.00189.110.0018
Template load0.00094.511310.0009
Template processing0.00094.514910.0009
Override
Cache load0.00063.175510.0006
General
dbfile0.00199.799080.0002
String conversion0.00000.051840.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