Forums / Install & configuration / Multilingual Site

Multilingual Site

Author Message

RW Wood

Wednesday 03 September 2003 9:27:17 am

Assuming that I have installed the proper translations on a test site and actually translated content, how do I get it to show up on the user side of the site? Shouldn't there be a "Click here to read in Spanish" button or something? The best I've been able to do is change the default languages in my site.ini.append file, which produces changes in "stuff" like the dates, but nothing more. I've searched the docs and can't find how this is to be done, so if someone has done it or can point me to the how-to, I'd appreciate it.

Thanks
RW Wood

Paul Borgermans

Wednesday 03 September 2003 10:58:48 am

http://ez.no/developer/ez_publish_3/documentation/installation_and_configuration/configuration/language_and_charset/multilanguage_site

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

RW Wood

Thursday 04 September 2003 7:39:57 am

Paul,

I read the page you referred to, but it's still unclear. I'm assuming that means that I have two folders within the siteaccess folder, one for English and one for Spanish.

As to "To get the dropdown you only need to link to the same URL, but with a different URL prefix." What dropdown? Link where? Prefix?

Also, "If you want different content on the different sites you need to build two different directory structures." Different directory structures where?

As extensive as the ezP documentation has gotten (I commend the crew for that), the old saying "A picture is worth a thousand words" holds true. For many of the docs I've read, examples with explicit files to modify, etc. would be very helpful.

Thanks.
RWW

Paul Borgermans

Thursday 04 September 2003 8:36:14 am

Haven't done it before, but this is what it means:

>I'm assuming that means that I have two folders
>within the siteaccess folder, one for English and one
>for Spanish.

Exactly, you only specify the required language in the ini file, the rest may be the same (unless you harcoded text without the i18n operator in your templates)

>As to "To get the dropdown you only need to link to
>the same URL, but with a different URL prefix."
>What dropdown? Link where? Prefix?

This means you need to do URL based matching for determining the siteaccess to use

eg for a virtual host setup:

http://yoursite/en/... leads to the "english" siteaccess
http://yoursite/es/... leads to the "spanish" siteaccess

In your settings/override/site.ini.append.php
[SiteAccessSettings]
you'll have to specify among the available siteaccess and
MatchOrder=uri;host;port

URIMatchType=element
URIMatchElement=1

Your siteaccess should then be called "en" and "es"

You then code some links in your pagelayout which switch between both URL's dynamically:

<a href={concat("/en/",$uri_string)|ezurl}>Engish version</a>
<a href={concat("/en/",$uri_string)|ezurl}>Version espanol</a>

You can detect the base part (ie "/en" or "/es") used by inspecting the variable $uri.base to make the "switch" fancier (see the docs on template functions and operators)

Easy, isn't it (in theory at least, again, I did not test this yet)?

>Also, "If you want different content on the different
>sites you need to build two different directory
>structures." Different directory structures where?

Don't worry, thats just when you have 2 or more unrelated sites with different langauges.

I hope you got these ascii picture(s)

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Chris Johnson

Tuesday 16 September 2003 1:25:52 pm

I have been trying to implement this same functionality on the user end of a trilingual website (English Spanish and Portuguese). The admin area is in Spanish, which is the only thing that works so far. I have been studying all the documentation and forum messages I can find, and still after a month I cant get the user interface to function correctly.

I posted details about my setup at http://ez.no/developer/ez_publish_3/forum/setup_design/multilingual_site_setup_headaches.
Please help me with this if you have any ideas.

Thanks sincerely,
chris

Tony Wood

Thursday 06 November 2003 5:21:43 am

Paul,

How did you get the images to work in multiple languages or did you just use text?

I have asked the question of eZ as the fast.no site uses it, I hope that only images need to be duplicated for the site and not all the overrides.

Ref: http://ez.no/developer/ez_publish_3/forum/developer/multilingual_site_images

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Claus Jensen

Friday 07 November 2003 4:09:52 am

Hi,
Have any of you had problems with translation functions on your sites? I regularly have a problem when trying to translate objects, that their name disappears from lists, and all attributes are un-editable, also not able to view them in admin nor the user site. My version is 3.2-1 and is an upgrade from the earlier 3.0-2 or so, and Im using nor-NO as the primary language.

<scissor'ed from site.ini.append>
[RegionalSettings]
# The primary language for your site
#Locale=eng-GB
Locale=nor-NO
ContentObjectLocale=nor-NO
#ContentObjectLocale=eng-GB
#HTTPLocale=en
HTTPLocale=no
</scissor>

regards,
claÜs

Oree Eyo

Wednesday 27 July 2005 7:41:40 am

>>Also, "If you want different content on the different
>>sites you need to build two different directory
>>structures." Different directory structures where?

>Don't worry, thats just when you have 2 or more unrelated >sites with different langauges.

I'm worried. Where can I find more information about this?