multisite localisation with eZP 3.8.3

Author Message

Pascal France

Thursday 03 August 2006 4:16:37 am

Hi,

I built a multisite (each new site has its own data base) but the new sites have eng-GB as default laguage whereas they should have fre-FR

My eZP 3.8.3 default installation has fre-FR as principal language and no translation language. So, the default plain_site siteaccess is in french.

To build the other sites, I copied plain_site/* to new_site/ and plain_site_admin/* to new_site_admin/
In the new_site_admin/site.ini.append.php file I have:

[RegionalSettings]
Locale=fre-FR
ContentObjectLocale=fre-FR
ShowUntranslatedObjects=enabled
SiteLanguageList[]=fre-FR
TextTranslation=enabled

But in the administration interface, when I go to the Content tab I can see in the language drop-down menu of the preview frame:

English (United Kingdom)
Another language

instead of:

Français (France)
Another language

Which parameter did I forget to set up ?

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

George Michaelides

Thursday 03 August 2006 5:21:03 am

does your global site.ini have settings that could override your siteaccesses?

www.jegodesigns.com
www.jegodesigns.eu

Pascal France

Thursday 03 August 2006 7:18:46 am

Hi George,

No, there are no language parameters in override/*.ini.append.php files nor in settings/*.ini.

The new_site_admin/site.ini.append.php file is same than plain_site_admin/site.ini.append.php

In fact, I found the table I need to modify:

ezcontent_language

In the data base of the default plain_site siteaccess, this table contains:

   disabled   	 id   	 locale   	      name
 	0 	    2 	    fre-FR 	  Français (France)
 	0 	    4 	    eng-GB 	English (United Kingdom)

But for my new siteaccess it contains:

   disabled   	 id   	 locale   	      name
 	0 	    4 	    eng-GB 	English (United Kingdom)
 	0 	    2 	    fre-FR 	  Français (France)

This modification can be done with:

UPDATE `ezcontent_language` SET `locale` = 'fre-FR',`name` = 'Français (France)' WHERE `id` =2 LIMIT 1;

and:

UPDATE `ezcontent_language` SET `locale` = 'eng-GB',`name` = 'English (United Kingdom)' WHERE `id` =4 LIMIT 1;

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Kristian Hole

Thursday 03 August 2006 10:19:56 am

See:

http://ez.no/doc/ez_publish/technical_manual/3_8/features/multi_language

and

http://ez.no/doc/ez_publish/technical_manual/3_8/features/multi_language/the_bit_field_algorithm

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Bjørn Olav Sagen

Thursday 03 August 2006 11:32:51 am

Hi Pascal.

I don't have any answer to your question, but I was wondering if you could post your site.ini.append.php files as I too am trying to make a multi site and I haven't been able to make it work.

You say you have a database for each site. Did you just create them as in the manual installation tutorial where we're instructed to run the sql-scripts that initializes the database?

I also configured apache to show the 'host/ez/index.php/site' as just 'host'. Do I have to reconfigure it for working with 2 sites, or can site2 be accessed through 'host/site2/'?

Looking forward to reading your answer at work tomorrow :)

Best regards!

-Bjørn-

Apache 1.3.35
Php 4.4.2
MySQL 4.0.1
EZpub 3.8.2

Theodoros Papageorgiou

Thursday 03 August 2006 2:25:35 pm

pascal France wrote:
[quote]Which parameter did I forget to set up ?[/quote]

The cleandata.sql script that you have probably used for your new sites databases has eng-GB as the default language.
You can do a find-replace eng-GB with fre-FR and save it as cleandata_FR.sql that you can use to setup your new sites.

WEBWiZ
Web Development
http://www.webwiz.gr

Pascal France

Thursday 03 August 2006 2:59:00 pm

Hi,

@Bjørn:

To built a multisite, the simple way is to configure your override/site.ini.append.php wiht that:

[SiteAccessSettings]
CheckValidity=true
AvailableSiteAccessList[]=plain_site
AvailableSiteAccessList[]=plain_site_admin
AvailableSiteAccessList[]=firts_new_site
AvailableSiteAccessList[]=first_new_site_admin
MatchOrder=uri
HostMatchMapItems[]

So, try to access your site and then the install set up will be displayed (because of CheckValidity=true).
Durind the installation you will have to select the first_new_site database and its admin name with his password.
At the end of the installation you will have a new siteaccess and Checkvalidity will be set to false.
Do the same if you have several new sites.

@Theodoros

Good idea !
But now, with the solution that I expose above I won't create anymore database tables by hand ;-) unless you give me arguments to do it.

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Bjørn Olav Sagen

Thursday 03 August 2006 11:54:30 pm

Hi Pascal.

Thank you for the reply.

I though that initializing the wizard again might corrupt my current site so I never thought of doing it. I'll try it out and see what happends.

-Bjørn-

Apache 1.3.35
Php 4.4.2
MySQL 4.0.1
EZpub 3.8.2

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