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.

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

Main resources:

Total runtime0.0206 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0099 589.0469152.6250
Module start 'layout' 0.00990.0027 741.671939.4609
Module start 'content' 0.01260.0059 781.132893.2266
Module end 'content' 0.01850.0021 874.359434.3047
Script end 0.0206  908.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002612.5075140.0002
Check MTime0.00115.4608140.0001
Mysql Total
Database connection0.002913.924710.0029
Mysqli_queries0.002210.623330.0007
Looping result0.00000.057810.0000
Template Total0.00167.510.0016
Template load0.00083.753410.0008
Template processing0.00083.762710.0008
Override
Cache load0.00062.680710.0006
General
dbfile0.00031.654280.0000
String conversion0.00000.040540.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