why not gettext in eZ?

Author Message

liu spider

Saturday 27 May 2006 9:30:19 am

Anyone can enlighten me why eZ publish did not choose to use gettext?

currently, eZ uses an i18n text translation system modified from the Qt one. I just wonder why not use gettext directly, as it is a built-in feature of php.

IMO binary files of translation are faster than caching text in php files.

AFAICT, gettext can be used in windows as well

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Kristof Coomans

Sunday 28 May 2006 1:39:36 am

Hi Liu

I have no idea why they've chosen for the current translation system, but the gettext extension for PHP is not enabled on every shared hosting. Of course they could have implemented the gettext functions in PHP and use these functions in case the extension is not enabled, like they did with the DOM XML extension.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

liu spider

Sunday 28 May 2006 10:25:21 am

I wonder exactly the same thing

so can any eZ crew lit a candle here?

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

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 14:54:48
Script start
Timing: Jan 18 2025 14:54:48
Module start 'layout'
Timing: Jan 18 2025 14:54:48
Module start 'content'
Timing: Jan 18 2025 14:54:49
Module end 'content'
Timing: Jan 18 2025 14:54:49
Script end

Main resources:

Total runtime0.8294 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.0234152.6094
Module start 'layout' 0.00570.0026 741.632839.4141
Module start 'content' 0.00820.8200 781.0469536.2266
Module end 'content' 0.82820.0012 1,317.273412.1875
Script end 0.8294  1,329.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3901160.0002
Check MTime0.00130.1540160.0001
Mysql Total
Database connection0.00080.094810.0008
Mysqli_queries0.786894.8628570.0138
Looping result0.00050.0596550.0000
Template Total0.792095.520.3960
Template load0.00180.221120.0009
Template processing0.790295.268420.3951
Template load and register function0.00010.012910.0001
states
state_id_array0.00200.236710.0020
state_identifier_array0.00250.301020.0012
Override
Cache load0.00150.1815160.0001
Sytem overhead
Fetch class attribute can translate value0.00040.050320.0002
Fetch class attribute name0.00090.104250.0002
XML
Image XML parsing0.00190.227120.0009
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00170.2058220.0001
String conversion0.00000.000740.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs