Multi Language / Siteaccess

Author Message

John Smith

Friday 02 October 2009 9:26:18 am

Hi Guys,

Hope will get some help.

I installed a website with version 4.0.1, during installing forgot to add multiple language. But now added few languages (French, German, Polish) from Setup -> Languages -> Add language.

Whole website is in English around 1000 pages.

I have translated 3 pages in French, 1 page in German, 1 page is in polish.

What is best way to access pages in different language (french, german, polish). Please guide.

Hopefully it is going to be some settings.

Romain Petit

Saturday 07 November 2009 6:06:56 am

Hi,

You have to create a new siteaccess for each new language you want to access.

For example if you want a new siteaccess named "french", with domain name "fra.domain.net" and locale "fre-FR" :

1 ) Open your settings/override/site.ini.append.php :

SiteSettings : Add "french" to the SiteList array
SiteAccessSettings : Add "french" to AvailableSiteAccessList and "fra.domain.net;french" to HostMatchMapItems
RegionalSettings : Check that "fre-FR" is in the SiteLanguageList

2 ) Copy the setting folder of your main public siteaccess and rename it to "french"

3 ) Add "french" to all site.ini / SiteAccessSettings / RelatedSiteAccessList

4 ) Open your new "french/site.ini.append.php" file : edit SiteSettings and RegionalSettings

5 ) Clear all caches and browse "fra.domain.net"

Hope it helps.

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 05:05:53
Script start
Timing: Jan 18 2025 05:05:53
Module start 'layout'
Timing: Jan 18 2025 05:05:53
Module start 'content'
Timing: Jan 18 2025 05:05:53
Module end 'content'
Timing: Jan 18 2025 05:05:53
Script end

Main resources:

Total runtime0.0150 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 591.3359152.6250
Module start 'layout' 0.00570.0025 743.960939.4453
Module start 'content' 0.00820.0046 783.406389.1797
Module end 'content' 0.01280.0022 872.585930.3047
Script end 0.0150  902.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002617.5522140.0002
Check MTime0.00128.1730140.0001
Mysql Total
Database connection0.00074.845810.0007
Mysqli_queries0.002415.884730.0008
Looping result0.00000.080810.0000
Template Total0.001812.210.0018
Template load0.00106.635410.0010
Template processing0.00085.498810.0008
Override
Cache load0.00074.595310.0007
General
dbfile0.00021.656580.0000
String conversion0.00000.055540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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