Multi - Lingual Support

Author Message

Ryan Sarver

Monday 02 June 2003 10:12:56 am

I have a big client that wants to add multilingual support to their site, this includes translated site templates for navigation buttons. They want a dropdown box or link select on every page that allows a visitor to choose their language. How do i go about this? Are there any resources that walk me through how to do it with ezPublish 3.0?

Thanks in advance... Ryan

Bård Farstad

Thursday 05 June 2003 2:12:57 am

One way of setting up a multilingual site is to create one siteaccess for every language. This siteaccess will then set the ContentObjectLocale you want to use for that specific site.

E.g.

ez.no/norwegian ( ContentObjectLocale=nor-NO )
ez.no/english ( ContentObjectLocale=eng-GB )

eZ publish will then prefer to show a norwegian translation on the norwegian site. If it does not exist it will show the default translation.

To get the dropdown you only need to link to the same URL, but with a different URL prefix.

This setup works with a 1-1 translation. If you want different content on the different sites you need to build two different directory structures.

--bård

Documentation: http://ez.no/doc

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

Main resources:

Total runtime0.6563 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0126 587.8047152.6094
Module start 'layout' 0.01270.0053 740.414139.4141
Module start 'content' 0.01790.6368 779.8281521.8359
Module end 'content' 0.65470.0015 1,301.66418.3438
Script end 0.6562  1,310.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.7395160.0003
Check MTime0.00180.2750160.0001
Mysql Total
Database connection0.00480.727010.0048
Mysqli_queries0.601691.6686540.0111
Looping result0.00070.1032520.0000
Template Total0.610593.020.3052
Template load0.00210.313120.0010
Template processing0.608492.703620.3042
Template load and register function0.00040.053610.0004
states
state_id_array0.00090.137010.0009
state_identifier_array0.00140.216120.0007
Override
Cache load0.00160.2492150.0001
Sytem overhead
Fetch class attribute can translate value0.00200.307620.0010
Fetch class attribute name0.00400.606330.0013
XML
Image XML parsing0.00100.157820.0005
class_abstraction
Instantiating content class attribute0.00000.003330.0000
General
dbfile0.00090.1346170.0001
String conversion0.00000.001840.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs