Strange multilingual problem

Author Message

Sander van den Akker

Tuesday 05 April 2011 2:23:27 am

Hi there! I am scratching my head over a strange multilingual problem. The case is as follows:

I have set up a site with three languages: eng-GB, dut-NL and ger-DE, all with separate domains. When I visit each domain the templates are translated correctly, but the content objects are always shown in the main language (eng-GB).

I thought it had something to do with the locale setting, but ezini( 'RegionalSettings', 'ContentObjectLocale' ) outputs the correct locale for each siteaccess. The objects are also translated in all languages in the admin interface.

Anyone got a clue where to look next?

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Sander van den Akker

Tuesday 05 April 2011 2:59:28 am

I found out the first set language in RegionalSettings / SiteLanguageList is shown. This array was in my override/site.ini, which explains that always the same language is shown. When I moved the array to the siteaccess/site.ini's and altered the priority for each access the problem was solved.

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

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

Main resources:

Total runtime0.8253 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.0313152.6406
Module start 'layout' 0.00620.0041 740.671939.4844
Module start 'content' 0.01030.8134 780.1563488.6250
Module end 'content' 0.82360.0016 1,268.78138.1484
Script end 0.8252  1,276.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4099160.0002
Check MTime0.00140.1644160.0001
Mysql Total
Database connection0.00080.096210.0008
Mysqli_queries0.777494.2064520.0150
Looping result0.00050.0634500.0000
Template Total0.790495.820.3952
Template load0.00230.279420.0012
Template processing0.788095.489320.3940
Template load and register function0.00010.011410.0001
states
state_id_array0.00100.120710.0010
state_identifier_array0.00120.143620.0006
Override
Cache load0.00190.2246110.0002
Sytem overhead
Fetch class attribute can translate value0.00080.094610.0008
Fetch class attribute name0.00120.144530.0004
XML
Image XML parsing0.00050.060410.0005
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00170.2049170.0001
String conversion0.00000.001440.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs