Forums / Install & configuration / Changing language and keeping the selected one "active"

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

eZ debug

Timing: Jan 20 2025 09:03:17
Script start
Timing: Jan 20 2025 09:03:17
Module start 'content'
Timing: Jan 20 2025 09:03:18
Module end 'content'
Timing: Jan 20 2025 09:03:18
Script end

Main resources:

Total runtime0.9107 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.2188180.8047
Module start 'content' 0.00500.7174 770.0234533.0703
Module end 'content' 0.72240.1882 1,303.0938332.9063
Script end 0.9106  1,636.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4263210.0002
Check MTime0.00140.1517210.0001
Mysql Total
Database connection0.00070.082010.0007
Mysqli_queries0.839392.15791910.0044
Looping result0.00200.22151890.0000
Template Total0.882296.920.4411
Template load0.00190.211620.0010
Template processing0.880296.653320.4401
Template load and register function0.00020.022410.0002
states
state_id_array0.00110.116510.0011
state_identifier_array0.00100.106820.0005
Override
Cache load0.00160.1716260.0001
Sytem overhead
Fetch class attribute can translate value0.00160.177430.0005
Fetch class attribute name0.00110.123030.0004
XML
Image XML parsing0.00110.124030.0004
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00700.7706290.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs