Multi Language / Siteaccess

Author Message

John Smith

Friday 02 October 2009 9:26:18 am

Hi Guys,

Hope will get some help.

I installed a website with version 4.0.1, during installing forgot to add multiple language. But now added few languages (French, German, Polish) from Setup -> Languages -> Add language.

Whole website is in English around 1000 pages.

I have translated 3 pages in French, 1 page in German, 1 page is in polish.

What is best way to access pages in different language (french, german, polish). Please guide.

Hopefully it is going to be some settings.

Romain Petit

Saturday 07 November 2009 6:06:56 am

Hi,

You have to create a new siteaccess for each new language you want to access.

For example if you want a new siteaccess named "french", with domain name "fra.domain.net" and locale "fre-FR" :

1 ) Open your settings/override/site.ini.append.php :

SiteSettings : Add "french" to the SiteList array
SiteAccessSettings : Add "french" to AvailableSiteAccessList and "fra.domain.net;french" to HostMatchMapItems
RegionalSettings : Check that "fre-FR" is in the SiteLanguageList

2 ) Copy the setting folder of your main public siteaccess and rename it to "french"

3 ) Add "french" to all site.ini / SiteAccessSettings / RelatedSiteAccessList

4 ) Open your new "french/site.ini.append.php" file : edit SiteSettings and RegionalSettings

5 ) Clear all caches and browse "fra.domain.net"

Hope it helps.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.