Forums / Developer / Language when user is logged in

Language when user is logged in

Author Message

Sergi A

Thursday 12 August 2010 2:00:35 am

Hello!

i'm working on a multilingual website (Catalan, Spanish, English, French), which is working fine when browsing it as an anonymous user. However, I don't understand why when i'm logged in the locale used is not the one indicated in the siteaccess, but it's always Catalan.

I access the locale used on the template {ezini('RegionalSettings','Locale')} and it is correct, but the content is shown in Catalan. When I say content I don't mean content-object but the locale used for the i18n translation library.

Can anyone throw some light here please?

Thanks!

Sergi.

viraj hoober

Thursday 12 August 2010 4:40:45 am

Hi sergi,

I think the answer lies in the settings/siteaccess/.../site.ini.append.php

Was having same problem. Set the language for the siteaccess as prioritize followed by others. The language for the specific siteaccess should be set to the first position. Hope it helps

eZ debug

Timing: Jan 17 2025 23:35:45
Script start
Timing: Jan 17 2025 23:35:45
Module start 'content'
Timing: Jan 17 2025 23:35:45
Module end 'content'
Timing: Jan 17 2025 23:35:45
Script end

Main resources:

Total runtime0.6852 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.7109180.8359
Module start 'content' 0.00540.5694 768.5469461.2813
Module end 'content' 0.57480.1103 1,229.8281333.4766
Script end 0.6851  1,563.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5534210.0002
Check MTime0.00140.1976210.0001
Mysql Total
Database connection0.00070.096810.0007
Mysqli_queries0.629491.85591910.0033
Looping result0.00170.24221890.0000
Template Total0.663796.920.3319
Template load0.00200.291620.0010
Template processing0.661796.570720.3309
Template load and register function0.00020.024410.0002
states
state_id_array0.00060.087710.0006
state_identifier_array0.00080.115220.0004
Override
Cache load0.00160.2403130.0001
Sytem overhead
Fetch class attribute can translate value0.00100.147930.0003
Fetch class attribute name0.00130.195920.0007
XML
Image XML parsing0.00050.068330.0002
class_abstraction
Instantiating content class attribute0.00000.001420.0000
General
dbfile0.00280.4057210.0001
String conversion0.00000.000730.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs