Forums / Developer / One translation not displaying default objects

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/

eZ debug

Timing: Jan 19 2025 21:36:41
Script start
Timing: Jan 19 2025 21:36:41
Module start 'content'
Timing: Jan 19 2025 21:36:42
Module end 'content'
Timing: Jan 19 2025 21:36:42
Script end

Main resources:

Total runtime1.2427 sec
Peak memory usage4,096.0000 KB
Database Queries232

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.0859180.8125
Module start 'content' 0.00731.1033 769.8984710.6719
Module end 'content' 1.11060.1320 1,480.5703353.3047
Script end 1.2426  1,833.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3523210.0002
Check MTime0.00160.1287210.0001
Mysql Total
Database connection0.00100.083110.0010
Mysqli_queries1.138991.64652320.0049
Looping result0.00260.21212300.0000
Template Total1.208097.220.6040
Template load0.00230.182320.0011
Template processing1.205797.026520.6029
Template load and register function0.00010.008210.0001
states
state_id_array0.00110.087010.0011
state_identifier_array0.00100.079120.0005
Override
Cache load0.00210.1658720.0000
Sytem overhead
Fetch class attribute can translate value0.00170.137940.0004
Fetch class attribute name0.00140.1092170.0001
XML
Image XML parsing0.00160.128640.0004
class_abstraction
Instantiating content class attribute0.00000.0035230.0000
General
dbfile0.00530.4242330.0002
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
15content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 44
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs