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.