Forums / Install & configuration / Problem with multilingual site settings

Problem with multilingual site settings

Author Message

Josh Luo

Thursday 28 July 2005 3:33:26 am

Can anyone can help about multilingual site settings with eZ publish 3.6? Thanks!

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'

Lex 007

Tuesday 02 August 2005 9:55:39 am

In the admin interface, go to Roles & Policies, and set the Anonymous role with siteaccess => any.

Lex

Josh Luo

Tuesday 02 August 2005 1:59:18 pm

After setting Anonymous role to siteaccess with any(user login with No limitations) in my admin interface, the site www.myname.nl/index.php/nl still not accessed. There are the same errors as before.

Josh