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