Localization of values trough l10n() simply doesn't work

Author Message

Sven Ryen

Thursday 10 July 2003 8:22:42 am

I was under the impression that the l10n operator would be connected to the current ContentObjectLocale, but I'm incapable of making formatting reflect what language is currently displayed.

I.e. if I have a setup like this:
Language 0: nor-NO
Language 1: eng-GB
Language 2: ....

and append /language/[0|1|whatever] to any links, the content from the database appear translate - as expected, but no matter what I do, I can't make the text in templates reflect the current translation/locale.

What am I missing?

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 15:55:26
Script start
Timing: Jan 18 2025 15:55:26
Module start 'layout'
Timing: Jan 18 2025 15:55:26
Module start 'content'
Timing: Jan 18 2025 15:55:27
Module end 'content'
Timing: Jan 18 2025 15:55:27
Script end

Main resources:

Total runtime0.5853 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1563152.6563
Module start 'layout' 0.00510.0030 740.812539.4922
Module start 'content' 0.00810.5758 780.3047400.2813
Module end 'content' 0.58390.0014 1,180.58598.1094
Script end 0.5853  1,188.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5684160.0002
Check MTime0.00140.2328160.0001
Mysql Total
Database connection0.00090.145410.0009
Mysqli_queries0.548393.6741460.0119
Looping result0.00040.0664440.0000
Template Total0.555995.020.2779
Template load0.00220.376720.0011
Template processing0.553794.594720.2768
Template load and register function0.00020.041910.0002
states
state_id_array0.00080.129010.0008
state_identifier_array0.00120.207920.0006
Override
Cache load0.00170.2856100.0002
Sytem overhead
Fetch class attribute can translate value0.00050.089510.0005
Fetch class attribute name0.00050.085710.0005
XML
Image XML parsing0.00010.015410.0001
class_abstraction
Instantiating content class attribute0.00000.000910.0000
General
dbfile0.00220.3755100.0002
String conversion0.00000.001240.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/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
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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs