Forums / Setup & design / Multilanguage Site Problem

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

eZ debug

Timing: Jan 18 2025 10:58:14
Script start
Timing: Jan 18 2025 10:58:14
Module start 'content'
Timing: Jan 18 2025 10:58:15
Module end 'content'
Timing: Jan 18 2025 10:58:15
Script end

Main resources:

Total runtime0.9363 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.8281180.8359
Module start 'content' 0.00710.7969 769.6641603.7969
Module end 'content' 0.80410.1321 1,373.4609337.3750
Script end 0.9362  1,710.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4762210.0002
Check MTime0.00160.1665210.0001
Mysql Total
Database connection0.00070.070410.0007
Mysqli_queries0.841289.84632020.0042
Looping result0.00200.21142000.0000
Template Total0.902296.420.4511
Template load0.00220.231520.0011
Template processing0.900096.131220.4500
Template load and register function0.00030.028310.0003
states
state_id_array0.00140.145310.0014
state_identifier_array0.00070.076120.0004
Override
Cache load0.00210.2194790.0000
Sytem overhead
Fetch class attribute can translate value0.00090.100640.0002
Fetch class attribute name0.00180.192760.0003
XML
Image XML parsing0.00440.468440.0011
class_abstraction
Instantiating content class attribute0.00000.002080.0000
General
dbfile0.00770.8225270.0003
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs