multilingual 3.6 site

Author Message

Augusto César Díaz

Wednesday 29 June 2005 8:22:44 am

anyone has set up a multilingual 3.6 site??, I tried to follow the online documentation but the files are quite different, help please.

Augusto Cesar Diaz

Łukasz Serwatka

Friday 22 July 2005 3:42:36 am

Hi,

Look at this topic,
http://ez.no/community/forum/install_configuration/i_really_really_need_a_valid_guide_how_to_setup_a_multilingual_site

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Josh Luo

Saturday 23 July 2005 8:00:58 am

Hi luke,

The feature of multiligual sites is the most important reason why I use eZ Publish. I read almost all of the documents and forum concerned, and trying to configure a english site and a dutch site. It spent me two weeks but without success. Only the defualt english site is okay.

What I did with eZ Publish 3.6.0:

1) Run the installation wizard, selected English as a default language and choose Dutch as optional. The default site works.

2) Create settings/override/site.ini.append.php file:

[Session]
SessionNameHandler=custom

[SiteSettings]
DefaultAccess=en
SiteList[]=en
SiteList[]=nl

[SiteAccessSettings]
AvailableSiteAccessList[]=en
AvailableSiteAccessList[]=nl
AvailableSiteAccessList[]=en_admin
SiteAccessList[]=en
SiteAccessList[]=nl
SiteAccessList[]=en_admin
HostMatchMapItems[]
MatchOrder=uri
URIMatchType=element
URIMatchElement=1
URIMatchRegexp=^/([^/]+)/
URIMatchRegexpItem=1
DebugAccess=enabled

[RegionalSettings]
TextTranslation=enabled
TranslationCache=enabled

[ContentSettings]
TranslationList=eng-GB;dut-NL
ViewCaching=disabled

3) Create siteaccess folders for dutch site:
settings/siteaccess/nl

4) Copy all files under settings/siteaccess/en
to settings/siteaccess/nl

5) Setting RegionalSettins:

In settings/siteaccess/en/site.ini.append.php, I set:
[RegionalSettings]
Locale=eng-GB
HTTPLocale=en
ContentObjectLocale=eng-GB

In settings/siteaccess/nl/site.ini.append.php, I set:
[RegionalSettings]
Locale=dut-NL
HTTPLocale=nl
ContentObjectLocale=dut-NL

After this no problem if I access to default english site(www.myname.nl/index.php/en). But if browsing to dutch site(www.myname.nl/index.php/nl), I got the following debug output:

Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.

eZ debug

Timing: Jul 23 2005 16:53:41
Script start

Debug: access.php Jul 23 2005 16:53:41
Updated settings to use siteaccess 'nl'

Timing: Jul 23 2005 16:53:41
Module start 'content'

Error: eZTSTranslator::loadTranslationFile Jul 23 2005 16:53:41
Could not load translation file: share/translations/dut-NL/translation.ts

Error: eZDebug::writeFile Jul 23 2005 16:53:41
Cannot open log file 'var/log/error.log' for writing
The web server must be allowed to modify the file.
File logging for 'var/log/error.log' is disabled.

Error: Jul 23 2005 16:53:41
Could not open file 'var/nl/cache/translation/root-36e48c5d322c489dd3ee4e51ffda1494/dut-NL/c289b3ed89e7dee8a3a352a77b308232.php' for writing, perhaps wrong permissions

Error: eZPHPCreator::store Jul 23 2005 16:53:41
Failed to open file 'var/nl/cache/translation/root-36e48c5d322c489dd3ee4e51ffda1494/dut-NL/c289b3ed89e7dee8a3a352a77b308232.php'

Could you please tell me what's wrong for the settings? Or how to fix this problem? Thanks!

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