Forums / Install & configuration / multi-lingual content

multi-lingual content

Author Message

me andreia

Thursday 07 December 2006 4:25:53 am

Hello,

I have setup ez publish (3.8) in order to have URL based:
www.example.com/gb -> siteaccess1
www.example.com/ro -> siteaccess2
I followed the instructions from http://ez.no/doc/ez_publish/technical_manual/3_8/features/multi_language and configured a Romanian language, as it is not in the default list. From the administrative interface I added it as an available language for translation of content (Setup -> Languages -> Add language).

But after the configuring the site languages, accesing www.example.com/ro shows an Access denied error. The siteaccess for english is ok but I want to have customer-facing site both in English and Romanian, and give to the users of the customer site the option to select the desired language.

I read the http://ez.no/community/articles/new_features_in_ez_publish_3_8/translating_and_displaying_multi_lingual_content documentation, but no luck.

Please advice.

Claudia Kosny

Thursday 07 December 2006 4:49:27 am

Hi

Did you adapt the permissions of the anonymous user as mentioned in the second article you linked to?

Claudia

me andreia

Thursday 07 December 2006 5:22:23 am

Claudia,

Thank you for your prompt reply. It worked, it seems that anonymous user permissions were the problem.
Now, I setup Romanian to be the dafault language, and at the top of the first page is a link that points to the other translation. How can I get it to work? The same issue if I keep English as default, and Romanian as second option.

Thanks in advance.

Claudia Kosny

Thursday 07 December 2006 5:45:00 am

Hi

This can be found as well in the article you linked to, quite at the bottom (under Writing a switching mechanism)

Claudia

me andreia

Thursday 07 December 2006 6:45:34 am

I dont get this to work:

I downloaded the string replace operator in the extension directory and activate the extension in the admin interface.

For my ro and gb siteaccesses I use the default desing

[DesignSettings]
SiteDesign=ezwebin
AdditionalSiteDesignList[]
AdditionalSiteDesignList[]=base

I added the language_switcher.tpl in the design/ezwebin_site/templates but this does not work. Can you explain me in more detail the steps?

me andreia

Friday 08 December 2006 12:58:31 am

I created a new design folder for each siteaccess and know it works fine.

eZ debug

Timing: Jan 18 2025 19:37:28
Script start
Timing: Jan 18 2025 19:37:28
Module start 'content'
Timing: Jan 18 2025 19:37:28
Module end 'content'
Timing: Jan 18 2025 19:37:28
Script end

Main resources:

Total runtime0.8053 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.7266180.8359
Module start 'content' 0.00600.6963 768.5625508.4297
Module end 'content' 0.70230.1029 1,276.9922338.1328
Script end 0.8052  1,615.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4640210.0002
Check MTime0.00130.1675210.0001
Mysql Total
Database connection0.00090.112910.0009
Mysqli_queries0.744992.50672030.0037
Looping result0.00170.21142010.0000
Template Total0.779796.820.3898
Template load0.00150.190920.0008
Template processing0.778196.626920.3891
Template load and register function0.00010.016310.0001
states
state_id_array0.00080.093110.0008
state_identifier_array0.00170.214120.0009
Override
Cache load0.00130.1627360.0000
Sytem overhead
Fetch class attribute can translate value0.00120.144130.0004
Fetch class attribute name0.00080.098660.0001
XML
Image XML parsing0.00050.060230.0002
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00200.2476210.0001
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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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: 22
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs