Share » Forums » Install & configuration » Multiple countries and multiples...

Multiple countries and multiples languages

Multiple countries and multiples languages

Tuesday 11 April 2006 7:29:56 am - 9 replies

Author Message

J-A Eberhard

Tuesday 11 April 2006 1:11:23 pm

Hi,

I will give each country it's own siteaccess (to allow you to set the currency and other in the -ini files)
Several siteaccess will have the same languages.

Regards

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Fred Gueho

Wednesday 12 April 2006 1:09:26 am

Thanks for your answer.

If I do what you said, will it be possible to have some differences between countries of the same language (like FRENCH : Belgium or FRENCH : France or FRENCH : Switzerland) ?

I'm not sure it will be possible without duplicating content that doesn't need to be duplicated.

What do you think of this setup :
- 1 site access
- 9 languages
- complete content in my 3 main languages (fre-FR, eng-GB, ger-GE)
- some specific content for specific languages (fre-SW, fre-BE, eng-US, ...)
- rules in templates to detect if specific content exists in order to display it (else generic content will be displayed)

In that case, my content won't be duplicated at all.
Is it a good solution ?

J-A Eberhard

Wednesday 12 April 2006 2:06:09 am

Let's say that each country have a siteaccess identified by a 2 letter code sur as www.mydomain.com/fr, www.mydomain.com/us and so on.
In override/site.ini.append.php you will have to list:
[SiteAccessSettings]
AvailableSiteAccessList[]=fr
AvailableSiteAccessList[]=us
....
and the site list

[SiteSettings]
DefaultAccess=fr
SiteList[]=us

Define also the language list
[RegionalSettings]
TextTranslation=enabled
TranslationCache=enabled

[ContentSettings]
TranslationList=fre-FR;eng-US.....

Now, in each siteaccess/mysiteaccess/site.ini.append.php you will define the local language (for french)

[RegionalSettings]
Locale=fre-FR
ContentObjectLocale=fre-FR

Like that, the siteaccess are independant of the languages used.

I strongly advise you to start straight away with the 3.8 version of eZ (It's not yet stable but have much better multilanguage support).
Cheers

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Fred Gueho

Wednesday 12 April 2006 5:45:19 am

Hi,

Unfortunately, I can't use 3.8 because my site have to be out in one month (and I need something stable).

Some few questions with your setup :
- Is it for ezPublish 3.7 or 3.8 ?
- On my site, the user have to choose the language first, and after the corresponding sorted country. So I'd like to have 3 main translations (fre-FR, eng-GB, ger-GE) with all the content of the site and have some translations on specific nodes for specific countries (fre-SW, fre-BE, eng-US, ...). The goal is not to duplicate the main language content. Because there are few nodes that need to have specific country content.

Exemple :
- in fre-FR, I have 10 nodes for the country FRANCE, BELGIUM and SWITZERLAND.
- in fre-BE, I have 2 nodes of fre-FR that need to be specific for the country BELGIUM
- in fre-SW, I have 3 nodes of fre-FR that need to be specific for the country SWITZERLAND

I don't want to duplicate my 8 other nodes of fre-FR in fre-BE and my 7 other nodes of fre-FR in fre-SW, because the content is the same. I just want to use them like they are for my countries FRANCE, BELGIUM and SWITZERLAND.

And I want to display the 2 specific nodes when I have choosen the BELGIUM country and the 3 specific nodes when I have choosen the SWITZERLAND country.

Is it possible ? How ?
Is your example setup capable of doing that ?

I really thank you for your help because I have no clue of how to set it up.

Fred

Fred Gueho

Thursday 13 April 2006 6:20:36 am

Any ideas ? Anyone ?

Matthew Carroll

Thursday 13 April 2006 8:01:11 am

I'm not sure if you can achieve this with < 3.8 - the improvements to the multilingual infrastructure are substantial, specifically enabling you to do language fallback prioritisation for siteaccess, so if the language you have set for the siteaccess is unavailable, you can fall back to a specific alternative on a per-siteaccess basis. e.g. for the Swiss site: fre-SW > fre-FR > eng-GB. With current release versions the best you can do is have one global primary, default language for the site which all siteaccesses fall back to, e.g. fre-SW > eng-GB. Someone please correct me if I've misunderstood since I haven't tried the new 3.8 system yet.

If it's any help, I'm running 3.8beta1 on a production site (I needed an entirely unrelated feature - anonymous publishing) and it's working fine and seems quite stable enough. ymmv of course.

Good luck
Matthew

http://carroll.org.uk

Fred Gueho

Wednesday 19 April 2006 5:46:26 am

Is it possible to have multiple language for one site access ?
(I'd like to have 3 site access and each of these site access would have 2 or 3 languages).

How can I do that ?

Matthew Carroll

Wednesday 19 April 2006 6:56:53 am

Take a look at the feature notes for 3.8 here in the svn repository:

http://pubsvn.ez.no/nextgen/trunk/doc/features/3.8/multi-language_features.txt

...and the roadmap specification:

http://ez.no/community/developer/specs/improved_multi_language_in_ez_publish_rev_2

I hope that helps!
Matthew

http://carroll.org.uk

Fred Gueho

Wednesday 19 April 2006 7:03:57 am

Ok. So now I'm using 3.8 beta 2.

"so if the language you have set for the siteaccess is unavailable, you can fall back to a specific alternative on a per-siteaccess basis. e.g. for the Swiss site: fre-SW > fre-FR > eng-GB"

The fallback is not working for me :(

I have set a specific site access for "portuguese countries" (site access name "po") with 2 languages : por-PT (portuguese from PORTUGAL) and por-BR (portuguese from Brasil).

When I go on /mysite/index.php/po/(language)/por-BR/, it doesn't fallback to pro-PT translation when the pages are translated in por-PT but not in por-BR. It just display blank content.

my "override/site.ini.append.php" :

[Session]
SessionNameHandler=custom

[SiteSettings]
DefaultAccess=site
SiteList[]
SiteList[]=site

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=fr
AvailableSiteAccessList[]=por
AvailableSiteAccessList[]=site_admin
MatchOrder=uri
HostMatchMapItems[]
RelatedSiteAccessList[]
RelatedSiteAccessList[]=fr
RelatedSiteAccessList[]=por
RelatedSiteAccessList[]=site_admin

[RegionalSettings]
Locale=fre-FR
ContentObjectLocale=fre-FR
TextTranslation=enabled

[MailSettings]
Transport=SMTP
TransportServer=
TransportUser=
TransportPassword=
AdminEmail=admin@sqli.com
EmailSender=

And my "siteacces/por/site.ini.append.php" :

[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=root
Password=
Database=test
Charset=
Socket=disabled

[InformationCollectionSettings]
EmailReceiver=

[SiteSettings]
SiteName=Site
SiteURL=localhost/monEasyPHP/ezpublish-3.8/index.php
LoginPage=embedded

[UserSettings]
RegistrationEmail=

[SiteAccessSettings]
RequireUserLogin=false
ShowHiddenNodes=false

[DesignSettings]
SiteDesign=news_site
AdditionalSiteDesignList[]=base

[RegionalSettings]
Locale=por-PT
ContentObjectLocale=por-PT
SiteLanguageList[]=por-PT
SiteLanguageList[]=por-BR
TextTranslation=enabled

[FileSettings]
VarDir=var/news_site

[ContentSettings]
TranslationList=

Thank you to help me.

Fred

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu