Change regional settings

Author Message

Frode Slettum

Monday 29 May 2006 6:24:03 am

Hi

I'm using the "intranet solution" package. This is based on english language pack, and this is just fine. I have changed almost all templates, and while I did that I also changed the text hardcoded in the templates. The only problem is settings like date format, weekdays etc. I don't want to fetch "Monday" from the day a node was published, I want "Mandag". (Monday in norwegian).

I guess this is a really easy task but couldn't find it in the documentation.

regards
Frode

Christian Johansen

Tuesday 30 May 2006 9:40:28 am

Make sure you configure your siteaccess to use the correct locale, see this: http://ez.no/doc/ez_publish/technical_manual/3_7/reference/configuration_files/site_ini/regionalsettings/locale

Then you use i10n or dateformat functions in templates.

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 21:07:10
Script start
Timing: Jan 18 2025 21:07:10
Module start 'layout'
Timing: Jan 18 2025 21:07:10
Module start 'content'
Timing: Jan 18 2025 21:07:11
Module end 'content'
Timing: Jan 18 2025 21:07:11
Script end

Main resources:

Total runtime1.1836 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9375152.6250
Module start 'layout' 0.00590.0025 740.562539.4453
Module start 'content' 0.00831.1736 780.0078491.2891
Module end 'content' 1.18200.0016 1,271.29698.3203
Script end 1.1835  1,279.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2953160.0002
Check MTime0.00130.1134160.0001
Mysql Total
Database connection0.00100.085410.0010
Mysqli_queries1.136095.9748540.0210
Looping result0.00050.0463520.0000
Template Total1.156897.720.5784
Template load0.00200.170020.0010
Template processing1.154897.567320.5774
Template load and register function0.00040.030710.0004
states
state_id_array0.00070.056610.0007
state_identifier_array0.00170.143720.0009
Override
Cache load0.00160.1377120.0001
Sytem overhead
Fetch class attribute can translate value0.00070.061220.0004
Fetch class attribute name0.00130.108230.0004
XML
Image XML parsing0.00360.301620.0018
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00360.3076160.0002
String conversion0.00000.000640.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
1content/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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs