Changing language and keeping the selected one "active"

Author Message

Jorge estévez

Tuesday 13 December 2005 4:03:17 am

I have read: http://ez.no / documentation / ez publish / technical manual / 3.6 / concepts and basics / content management / multiple languages

And as I am the one to traslate the information on the site I will use this method of making a multi-language site.

Q: Shoud I use this method for a multi-language site or shoud I stuck with the other method already disccused in the forum

Q: If I use the traslation method described in this ez article,

How do I switch to different languages, and how do I keep my visitors viewing the files of the selected languages

Do I have to add to each URL /language/eng-US at the end, If so How to keep adding the "/language/eng-US" to each URL until the visitor changes language and thus change to another "/language/XXXX"

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Łukasz Serwatka

Wednesday 14 December 2005 11:59:47 pm

Hi Jorde,

Ad.1

Documentation pages describes how eZ publish handle multiple languages. Tutorial how to setup multilingual site is available here.

http://ez.no/products/ez_publish_cms/documentation/configuration/configuration/language_and_charset/how_to_setup_a_multilingual_site

Look also ontip with images here:
http://ez.no/community/forum/developer/multilingual_site_images

This will help you setup mulitlingual site.

Ad.2

You can switch to different language using siteaccess method per url or per host

www.exmple.com/en or wwww.en.exemple.com (host)

www.exmple.com/fr or wwww.fr.exemple.com (host)

www.exmple.com/de or wwww.de.exemple.com (host)

Where en, fr, de are siteaccess names.

Content translation you will do in administration interface, in edit mode you can choose which language you want to translate or edit (block on the left side).

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 19 2025 13:55:57
Script start
Timing: Jan 19 2025 13:55:57
Module start 'layout'
Timing: Jan 19 2025 13:55:57
Module start 'content'
Timing: Jan 19 2025 13:55:58
Module end 'content'
Timing: Jan 19 2025 13:55:58
Script end

Main resources:

Total runtime1.0279 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.0054 589.4063152.6563
Module start 'layout' 0.00540.0031 742.062539.5234
Module start 'content' 0.00861.0177 781.5859527.9609
Module end 'content' 1.02630.0016 1,309.54698.2656
Script end 1.0279  1,317.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00840.8131160.0005
Check MTime0.00130.1227160.0001
Mysql Total
Database connection0.00080.075110.0008
Mysqli_queries0.971494.5040540.0180
Looping result0.00050.0440520.0000
Template Total0.996697.020.4983
Template load0.00190.188520.0010
Template processing0.994796.768120.4973
Template load and register function0.00020.017710.0002
states
state_id_array0.00090.088510.0009
state_identifier_array0.00230.223120.0011
Override
Cache load0.00160.1521260.0001
Sytem overhead
Fetch class attribute can translate value0.00050.050220.0003
Fetch class attribute name0.00100.094730.0003
XML
Image XML parsing0.00080.076920.0004
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00290.2813180.0002
String conversion0.00000.000740.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