i18n.ini.append.php for each siteaccess

Author Message

Pierandrea Della Putta

Thursday 04 September 2008 5:54:06 am

Hi to all. I found a way to have i18n.ini for each siteaccess. To make it, you mast hack to index.php. In the function "eZUpdateTextCodecSettings()", comment or delete "$ini =& eZINI::instance( 'i18n.ini' );" and write:

include_once( "lib/ezutils/classes/ezuri.php" );
include_once( "lib/ezutils/classes/ezsys.php" );
include_once( "access.php" );

$ini =& eZINI::instance();

eZSys::init( 'index.php', $ini->variable( 'SiteAccessSettings', 'ForceVirtualHost' ) == 'true' );

$uri =& eZURI::instance( eZSys::requestURI() );

$access = accessType( $uri,
eZSys::hostname(),
eZSys::serverPort(),
eZSys::indexFile() );
$site_access = $access['name'];
//DEBUG
//echo "<br>settings/siteaccess/$site_access/<br>";

$ini =& eZINI::instance( 'i18n.ini', "settings/siteaccess/$site_access/", null, null, null, true, true);

This read i18n.ini.append.php from siteaccess. I this way you can have i site in Latin and UTF-8 charset.

Sorry for my English

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

Main resources:

Total runtime1.1456 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.0052 588.0313152.6406
Module start 'layout' 0.00520.0040 740.671939.4766
Module start 'content' 0.00921.1350 780.1484441.1094
Module end 'content' 1.14410.0014 1,221.25788.1406
Script end 1.1455  1,229.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2873160.0002
Check MTime0.00140.1220160.0001
Mysql Total
Database connection0.00080.067810.0008
Mysqli_queries1.097295.7746460.0239
Looping result0.00050.0450440.0000
Template Total1.105696.520.5528
Template load0.00210.187220.0011
Template processing1.103596.326320.5517
Template load and register function0.00020.013910.0002
states
state_id_array0.00160.138710.0016
state_identifier_array0.00100.089720.0005
Override
Cache load0.00180.1561260.0001
Sytem overhead
Fetch class attribute can translate value0.00080.072310.0008
Fetch class attribute name0.00100.088420.0005
XML
Image XML parsing0.00250.214110.0025
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00380.3355160.0002
String conversion0.00000.000940.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
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: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs