Multilingual support

Author Message

chris salce

Thursday 04 February 2010 4:10:54 am

Hello,

I ve been looking for a solution to this problem for 2 days...

I've got two siteaccesses on my site : fr and eng.

I want to make a button to switch between both on every content on my site

Ex: i am on "mysite.com/fr/ma voiture"

I want to have a button that will go to "mysite.com/en/my car" (my car and ma voiture being virtual URLs of the same content object). Is there any built-in way to do this? Or must i code it all myself? (tried for 2 days, i failed miserably till now)

Jarosław Heba

Thursday 04 February 2010 4:21:03 am

What version of ezpublish do you use? Since ezp 4.1 there is a switchlanguage feature. Take a look here >> http://pubsvn.ez.no/nextgen/stable/4.1/doc/features/4.1/language_switcher.txt

chris salce

Thursday 04 February 2010 5:16:58 am

Hello, thanks for the answer

I use 4.0.3

Damn, so close!

So i guess i have to code it? *sigh*

Jarosław Heba

Thursday 04 February 2010 6:13:00 am

yes, or consider an upgrade :)

Feel free to share your work if you will code such feature for ezp 4.0.x

Kind regards

Jarosław 

André R.

Thursday 04 February 2010 12:25:21 pm

There are extensions to let you fetch urls alias in other languages for 4.0 / 3.10.

But It's a bit more work and you should ideally re code it when you upgrade, but less then doing it from scratch, search for "fetchurlalias".

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 02:11:33
Script start
Timing: Jan 18 2025 02:11:33
Module start 'layout'
Timing: Jan 18 2025 02:11:33
Module start 'content'
Timing: Jan 18 2025 02:11:34
Module end 'content'
Timing: Jan 18 2025 02:11:34
Script end

Main resources:

Total runtime0.9201 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.9297152.6094
Module start 'layout' 0.00520.0028 741.539139.4141
Module start 'content' 0.00800.9104 780.9531594.7500
Module end 'content' 0.91840.0017 1,375.703112.1875
Script end 0.9200  1,387.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3676160.0002
Check MTime0.00140.1554160.0001
Mysql Total
Database connection0.00090.098410.0009
Mysqli_queries0.860293.4927650.0132
Looping result0.00070.0785630.0000
Template Total0.891596.920.4458
Template load0.00230.246920.0011
Template processing0.889296.645020.4446
Template load and register function0.00020.018510.0002
states
state_id_array0.00100.105410.0010
state_identifier_array0.00130.141320.0007
Override
Cache load0.00190.2061270.0001
Sytem overhead
Fetch class attribute can translate value0.00080.084530.0003
Fetch class attribute name0.00100.113070.0001
XML
Image XML parsing0.00120.130030.0004
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00120.1254230.0001
String conversion0.00000.000840.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs