Forums / Setup & design / SiteAccess - language question

SiteAccess - language question

Author Message

Radic Radovan

Friday 11 November 2005 11:18:12 am

Hello again,

I would like to ask few things because i am not sure how these things work in ez.

1. I have one site and it needs to be in 2 languages: en - english, sr - serbian
For this purpose i created two siteaccess directories
siteaccess/en, siteaccess/sr
and in design folder i have also two dirs: en, sr. Default is en site. When i do override some template - i create new .tpl file in en folder (via admin site). I expected that this overrided template going to be used when i enter sr pages as well, but it does not happen - it uses default .tpl from standard design. English works ok, and i expected since en is default - in sr pages if template is not found it would use english design templates but it didnt happen. Does that mean that in multilingual sites i need to repeat design overrides for each language? Sometimes these .tpl files will dont have any difference, sometimes it will have different table headers and then it is ok to have one file for each language. Does someone can elaborate on this.

2. Another situation is that i have one site, and i want to create 3 different siteacceses for the site. This should be portal for the company, and these siteaccesses are somehow separated, but user can have links from one to others. So i have
siteaccess
* automatics
* observer
* general
for example. If i want them to be multilingual, do i have to add two siteaccesses for each siteaccess above?
siteaccess
* automatics
** en
** sr
* observer
** en
** sr
...
Generally, how are these situations handled in ez?
I could add three folders in the content root, but i think this solution is not acceptible. I have only one database

3. If i have the same situtation like former example (it is using URI method for url matching) and now i would like to have host matching:
automatics.site.com
observer.site.com
but i need to have multilingual here as well like
automatic.site.com/en
automatic.site.com/sr

Can this be handled in site.ini ? What should be in URIMatch* directives, or point me to some examples pls.

Thanks,
Radovan

Radic Radovan

Monday 14 November 2005 1:09:03 am

Question #1 solved by browsing forum history.
Problem was when i have two language site, did i need to duplicate template overrides for each language. The answer is no, and it is solved in site.ini.append.php. So, for english (default) site there is config:

[DesignSettings]
SiteDesign=en
AdditionalSiteDesignList[]=base

and serbian

[DesignSettings]
SiteDesign=sr
AdditionalSiteDesignList[]=en
AdditionalSiteDesignList[]=base

second line in serbian setting tells ez to search templates for serbian translation in sr/ design and if it does not found - look in en folder. Works perfect.

Still remains problem of mixing host and uri match for the site. Anyone can help?

Radovan

Lazaro Ferreira

Monday 14 November 2005 3:06:52 am

hi,

I have tried mixing uri and hostname in the past without success, and I haven't heard of anyone succeding with this issue

Lazaro
http://www.mzbusiness.com

Radic Radovan

Monday 14 November 2005 4:26:54 am

Thanks a lot Lazaro, at least i know i dont need to try it any more - until ez solves this in new versions.

Thanks again,
Radovan

eZ debug

Timing: Jan 18 2025 18:39:36
Script start
Timing: Jan 18 2025 18:39:36
Module start 'content'
Timing: Jan 18 2025 18:39:36
Module end 'content'
Timing: Jan 18 2025 18:39:36
Script end

Main resources:

Total runtime0.1995 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.7109180.8359
Module start 'content' 0.00820.0065 768.546997.7578
Module end 'content' 0.01460.1847 866.3047533.3047
Script end 0.1993  1,399.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.8478200.0002
Check MTime0.00150.7456200.0001
Mysql Total
Database connection0.00080.396410.0008
Mysqli_queries0.148874.60061410.0011
Looping result0.00160.78291390.0000
Template Total0.184292.410.1842
Template load0.00080.409410.0008
Template processing0.183491.941010.1834
Override
Cache load0.00060.286710.0006
Sytem overhead
Fetch class attribute can translate value0.00090.471710.0009
XML
Image XML parsing0.00040.183510.0004
General
dbfile0.00311.5562200.0002
String conversion0.00000.004730.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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