How to know the selected Language?

Author Message

Pablo C. Vergara Castro

Thursday 25 August 2005 10:02:57 am

Hi to all.

I have an multilingual website but I need to do diferent things in the diferent languages and I don't know how to know the selected Language.

Can somebody help me?

Greetings

Lazaro Ferreira

Thursday 25 August 2005 10:52:37 am

Hi,

You may read locale settings for the current siteaccess in site.ini.append.. file

Take a look at the links below

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_operators/data_and_information_extraction/ezini

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/configuration_files/site_ini/regionalsettings/locale

Lazaro
http://www.mzbusiness.com

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 19:15:00
Script start
Timing: Jan 18 2025 19:15:00
Module start 'layout'
Timing: Jan 18 2025 19:15:00
Module start 'content'
Timing: Jan 18 2025 19:15:01
Module end 'content'
Timing: Jan 18 2025 19:15:01
Script end

Main resources:

Total runtime1.1804 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.0095 587.9297152.6250
Module start 'layout' 0.00950.0042 740.554739.4609
Module start 'content' 0.01371.1647 780.0156483.8203
Module end 'content' 1.17850.0019 1,263.83598.1563
Script end 1.1803  1,271.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2940160.0002
Check MTime0.00140.1201160.0001
Mysql Total
Database connection0.00130.107210.0013
Mysqli_queries1.126695.4418540.0209
Looping result0.00060.0523520.0000
Template Total1.119494.820.5597
Template load0.00240.205220.0012
Template processing1.117094.625720.5585
Template load and register function0.00020.018010.0002
states
state_id_array0.00730.620610.0073
state_identifier_array0.00650.552820.0033
Override
Cache load0.00190.1623130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.072020.0004
Fetch class attribute name0.00250.213820.0013
XML
Image XML parsing0.00070.057820.0003
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00060.0522100.0001
String conversion0.00050.044540.0001
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/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: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs