Multilanguage Site Problem

Author Message

PaoloMellerio kk

Friday 11 July 2003 7:15:46 am

Hi,
Following the instructions of the documentation, I've created 3 site.ini.append in 3 different folders (en, it, sl) under folder siteaccess and in them i put
[RegionalSettings]
Locale=eng-GB
HTTPLocale=en
ContentObjectLocale=eng-GB
for the "en" folder,
[RegionalSettings]
Locale=ita-IT
HTTPLocale=it
ContentObjectLocale=ita-IT
for the "it" folder,
[RegionalSettings]
Locale=slo-SL
HTTPLocale=sl
ContentObjectLocale=slo-SL
for the "sl" folder.
In the admin, I manage the three language (italian, english and slovenska) without any problem, but in the public site, I see always the Italian (which in my system is the default language), even if i use http://mysite/en or http://mysite/sl. I think there would be a way to choose the correct language for the nodes directly in the template that I use, but I've not found any suggestion on how to do it...
Can anybody help me?
Thank in advice.

Paolo Mellerio (Clikka!com)

Paolo Mellerio
http://www.clikka.com

Karsten Jennissen

Friday 11 July 2003 7:26:51 am

Hi Paolo,

you probably have not set up the URL -> siteaccess translation correctly. See this doc:
http://ez.no/developer/ez_publish_3/documentation/installation_and_configuration/configuration/site_access

You need to write your siteaccess rules in a way that the first part of the URI translates into the siteaccess and the rest to the module + paramenters.

Karsten

PaoloMellerio kk

Friday 11 July 2003 8:48:30 am

Thanks Karsten,

I've followed your suggestion and I modified my site.ini.append.php in the way that follows:

------------------
[SiteAccessSettings]
CheckValidity=false
MatchOrder=uri
URIMatchType=element
URIMatchElement=1
URIMatchRegexp=^/([^/]+)/
URIMatchRegexpItem=1
AvailableSiteAccessList[]=it
AvailableSiteAccessList[]=en
AvailableSiteAccessList[]=sl
AvailableSiteAccessList[]=admin
DebugAccess=enabled

[RegionalSettings]
Locale=ita-IT
ContentObjectLocale=ita-IT
TextTranslation=enabled
TranslationCache=disabled

[ContentSettings]
TranslationList=ita-IT;eng-GB;slo-SL
ViewCaching=disabled
---------------------------

but, in the public site, when I use http://mysite/en and http://mysite/sl only the italian version is shown.... have you got any idea to solve the problem?

Thanks a lot

Paolo

Paolo Mellerio
http://www.clikka.com

Selmah Maxim

Saturday 12 July 2003 6:56:30 am

Hi,,

you need to do this also ..
in settings/site.ini :

[RegionalSettings]
#Locale=eng-GB
#HTTPLocale=
#ContentObjectLocale=eng-GB

then you should make site.ini for each site, lets say for italian :
settings/siteaccess/it/
[RegionalSettings]
Locale=ita-IT
HTTPLocale=it
ContentObjectLocale=ita-IT

PaoloMellerio kk

Monday 14 July 2003 12:12:51 am

Thanks to Karsten e to Maxim :-)
All works fine now and it seems to be cool....

Paolo Mellerio (Clikka!com)

Paolo Mellerio
http://www.clikka.com

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

eZ debug

Timing: Jan 18 2025 15:59:12
Script start
Timing: Jan 18 2025 15:59:12
Module start 'layout'
Timing: Jan 18 2025 15:59:12
Module start 'content'
Timing: Jan 18 2025 15:59:12
Module end 'content'
Timing: Jan 18 2025 15:59:12
Script end

Main resources:

Total runtime0.0112 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 589.0469152.6250
Module start 'layout' 0.00430.0019 741.671939.4453
Module start 'content' 0.00610.0034 781.117293.3203
Module end 'content' 0.00960.0016 874.437538.3047
Script end 0.0111  912.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002219.7636140.0002
Check MTime0.00119.4243140.0001
Mysql Total
Database connection0.00065.170810.0006
Mysqli_queries0.001614.752930.0005
Looping result0.00000.089610.0000
Template Total0.001311.510.0013
Template load0.00076.531710.0007
Template processing0.00064.921210.0006
Override
Cache load0.00054.400710.0005
General
dbfile0.00021.734380.0000
String conversion0.00000.053340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs