dynamic images on a japanese website

Author Message

Jean-Luc Nguyen

Monday 07 January 2008 4:14:18 am

Hello there,

I have search the forum, but no response, my problem is:

I have a japanese version of my website, using operator texttoimage to generate dynamic images.

English: "My Title" creates my_title.jpg image on the storage directory.

Japanese: "午前8時15分よ" cannot create 午前8時15分よ.jpg

I am using ez 3.9.2. Is there a way to setup this, or should I have the kernel to generate a correct image?

Thanks a lot!

http://www.acidre.com

Maxime Thomas

Monday 07 January 2008 8:29:51 am

Can you send us some complementary information about your OS / eZ Installation ?

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Jean-Luc Nguyen

Wednesday 09 January 2008 6:42:08 am

ez 3.9.2, Windows, standard installation.

Actually, I have modified a kernel file:
ez_root/lib/eztemplate/classes/eztemplateimageoperator.php, line 251:

This is where the image is created on the storage directory, it is created with the title object:

$this->storeImage( $layer, $this->CacheDir, 'imagetext', $md5Text, $alternativeText, $this->StoreAs );

to

$this->storeImage( $layer, $this->CacheDir, 'imagetext', $md5Text, $md5Text, $this->StoreAs );

I don't use the $alternativeText anymore, the filename is the $md5Text.

But thanks a lot anyway!

http://www.acidre.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:24:31
Script start
Timing: Jan 18 2025 19:24:31
Module start 'layout'
Timing: Jan 18 2025 19:24:31
Module start 'content'
Timing: Jan 18 2025 19:24:32
Module end 'content'
Timing: Jan 18 2025 19:24:32
Script end

Main resources:

Total runtime0.8789 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.0547152.6250
Module start 'layout' 0.00570.0042 741.679739.4453
Module start 'content' 0.00990.8676 781.1250545.6484
Module end 'content' 0.87760.0013 1,326.773412.4688
Script end 0.8789  1,339.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3650160.0002
Check MTime0.00140.1587160.0001
Mysql Total
Database connection0.00050.056710.0005
Mysqli_queries0.825293.8941570.0145
Looping result0.00060.0691550.0000
Template Total0.844796.120.4224
Template load0.00200.229020.0010
Template processing0.842795.879720.4213
Template load and register function0.00010.012610.0001
states
state_id_array0.00180.206110.0018
state_identifier_array0.00320.360120.0016
Override
Cache load0.00170.1906250.0001
Sytem overhead
Fetch class attribute can translate value0.00140.163220.0007
Fetch class attribute name0.00110.122550.0002
XML
Image XML parsing0.00110.127220.0006
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00110.1268220.0001
String conversion0.00000.001140.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
6content/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
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs