Share » Forums » Developer » Slow loading times when translation

Slow loading times when translation

Slow loading times when translation

Tuesday 09 November 2004 4:07:10 am - 3 replies

Modified on Tuesday 09 November 2004 4:28:00 am by Martin Leblanc

Author Message

Ole Morten Halvorsen

Tuesday 09 November 2004 4:48:49 am

Hello,

- Do you have mbstring support in PHP?
- Is the site just as slow on the second reload? The translation stuff will be cached, so you should only notice slowdowns on the first reload after installation or after a complete removal of cache.

In 3.5 however, eZ publish is capable of using PHP's XML parser if available. This makes parsing of .ts files _much_ faster. Have a look here: http://ez.no/community/blog/faster_xml

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Martin Leblanc

Tuesday 09 November 2004 5:08:33 am

- Do you have mbstring support in PHP?

Yes.

-----------------

- Is the site just as slow on the second reload? The translation stuff will be cached, so you should only notice slowdowns on the first reload after installation or after a complete removal of cache.

Yes, it is just as slow the second time. The whole site is working fine except for an extension which generates some pages used as an installation for some software. It is not possible to use cache in this case because the pages need to be unique everytime.

I'm am aware of the .ts file in the "extension/Myextension/translations/" and it's fully translated and working perfect in Linguist.

-----------------

- In 3.5 however, eZ publish is capable of using PHP's XML parser if available. This makes parsing of .ts files _much_ faster. Have a look here: http://ez.no/community/blog/faster_xml

I can't wait...

Martin Leblanc

View this in Firefox: www.biocandy.dk/test.html

http://www.opensystems.dk
http://www.site-camp.net

Martin Leblanc

Wednesday 10 November 2004 4:41:10 am

I have found a solution for my problem: Simply diable texttranslation in the site.ini. When there no i18n, it's working fine, except the texts isn't translated :-(. Instead of using i18n for text translation I use a "translation object" for the texts and translates that object from the admin interface. Then I fetch the content of translation objects from the templates when needed.

Martin Leblanc

View this in Firefox: www.biocandy.dk/test.html

http://www.opensystems.dk
http://www.site-camp.net

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu