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

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 21:06:11
Script start
Timing: Jan 18 2025 21:06:11
Module start 'layout'
Timing: Jan 18 2025 21:06:11
Module start 'content'
Timing: Jan 18 2025 21:06:13
Module end 'content'
Timing: Jan 18 2025 21:06:13
Script end

Main resources:

Total runtime1.6989 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.9141152.6250
Module start 'layout' 0.00760.0037 740.539139.4453
Module start 'content' 0.01131.6860 779.9844525.3125
Module end 'content' 1.69730.0016 1,305.296912.1641
Script end 1.6989  1,317.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2008160.0002
Check MTime0.00140.0829160.0001
Mysql Total
Database connection0.00150.088510.0015
Mysqli_queries1.633596.1484600.0272
Looping result0.00120.0714580.0000
Template Total1.649397.120.8247
Template load0.00240.140020.0012
Template processing1.646996.940520.8235
Template load and register function0.00020.012610.0002
states
state_id_array0.00320.188910.0032
state_identifier_array0.00220.128820.0011
Override
Cache load0.00210.1243550.0000
Sytem overhead
Fetch class attribute can translate value0.00070.042220.0004
Fetch class attribute name0.00120.070440.0003
XML
Image XML parsing0.00020.013220.0001
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00070.0410100.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs