Forums / Developer / why not gettext in eZ?

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

eZ debug

Timing: Jan 18 2025 11:17:44
Script start
Timing: Jan 18 2025 11:17:44
Module start 'content'
Timing: Jan 18 2025 11:17:45
Module end 'content'
Timing: Jan 18 2025 11:17:45
Script end

Main resources:

Total runtime0.8351 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0278 587.6094180.8438
Module start 'content' 0.02780.6837 768.4531541.2891
Module end 'content' 0.71150.1235 1,309.7422332.7734
Script end 0.8350  1,642.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.5401210.0002
Check MTime0.00170.2081210.0001
Mysql Total
Database connection0.00160.195510.0016
Mysqli_queries0.751589.98381940.0039
Looping result0.00210.24591920.0000
Template Total0.776292.920.3881
Template load0.00230.275020.0011
Template processing0.773992.667820.3869
Template load and register function0.00010.014410.0001
states
state_id_array0.00180.217710.0018
state_identifier_array0.00210.253720.0011
Override
Cache load0.00190.2332160.0001
Sytem overhead
Fetch class attribute can translate value0.00120.146630.0004
Fetch class attribute name0.00150.180550.0003
XML
Image XML parsing0.00130.161630.0004
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00330.3899330.0001
String conversion0.00000.001230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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