Forums / Setup & design / Multilingual Site Setup Headaches

Multilingual Site Setup Headaches

Author Message

Chris Johnson

Tuesday 16 September 2003 10:38:07 am

Dear ezCommunity,
I have been working with ezpublish 3.1 for over a month now and have little results other than a headache due to difficulties with multilingual site configuration. I have been through the forums and documentation, trying to understand what others have said already. I systemitized all that into a howto for myself and my project team, but find that it is still not right (the site does not work as I want it). I hope someone can help me as I have already put in a lot of time and have not been able to do it.

I am trying to set up a site with Spanish as the principal language and with three language parts of the site (English, Spanish, Portuguese). I am using the siteaccess method to distinguish language configurations by the url used in the site. The admin area is presented fine in Spanish. Problem is seen in two places on the front end:
1. ALL the content is displayed in Spanish (on all three parts of the site).
2. The only thing that changes when switching between languages (also a problem) is the Content Object Name (which for example always says "New Folder" instead of "About Us" in the English part).

I cannot manage to resolve this and would really appreciate some insight on what is going wrong. Thanks in advance!!

This is what I have done:
A. Tell ezpublish how to figure out which language to display (by the uri method)
Idea is it have localhost/index.php/es/, localhost/index.php/en/, localhost/index.php/b/. Edit settings/override/site.ini.append to have:

[SiteAccessSettings]
MatchOrder=uri
URIMatchType=element
URIMatchElement=1
URIMatchRegexp=^/([^/]+)/
URIMatchRegexpItem=1
AvailableSiteAccessList[]=en
AvailableSiteAccessList[]=es
AvailableSiteAccessList[]=br
AvailableSiteAccessList[]=admin
DebugAccess=enabled

[RegionalSettings]
#Locale=esl-ES
#ContentObjectLocale=esl-ES
TextTranslation=enabled
TranslationCache=enabled

[ContentSettings]
TranslationList=eng-US;esl-ES;por-PT
ViewCaching=disabled

B. Create one siteaccess folder for every language.
settings/siteaccess/en (English)
settings/siteaccess/es (Spanish)
settings/siteaccess/br (Portuguese)
In each site.ini.append file, I put cooresponding configuration for that part of the site. For example, English part has:
[RegionalSettings]
Locale=eng-US
HTTPLocale=en
ContentObjectLocale=eng-US

Also, I commented out the Locale and ContentObjectLocale [Region settings] in site.ini.

C. Create content, try to retrieve it
I create content in the admin area in Spanish. The add translations and translate the content. I got to the front end and try to see the content:
localhost/index.php/es/content/view/full/2 great
localhost/index.php/en/content/view/full/2 content in Spanish still and Conent Object name is 'New Folder'; same with /br/ area

Please someone give me some help! I have cruised the forums for hours seeking solutions, checked bugs and the howtos. Still no change in the situation.

Thanks,
chris

Paul Borgermans

Wednesday 17 September 2003 2:43:08 am

There may be bugs somewhere. On the other hand http://www.fast.no works (ezp 3 based multilanguage site).

Try to switch on debugging, especially for the siteaccess. This will show you (and us if you post some details here) what's happening.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Chris Johnson

Wednesday 17 September 2003 1:14:31 pm

Thanks for your suggestion. Actually, I was being a multilingual bonehead. When I created the site I made all my folders necessary. Then I returned and edited to add the translations. Even though I stored the translations, I failed to publish them. So ended up with all my translations attached to draft versions. (I am still pretty new to ezp and I only found the publish button by accident). So now multilingual is working. YEAH!!!

With the addition of a minor note about this, I now have a pretty complete howto about multilingual sites. Is anyone interested in revising or commenting on it? How should I go about sharing it with the ezp community?

Cheers,
chris

Tony Wood

Thursday 18 September 2003 4:30:52 am

Chris,

You can publish it in the contributed documentation section.
http://ez.no/developer/ez_publish_3/documentation
There are other Multi Lingual documents there too so it will be a good addition

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Chris Johnson

Thursday 18 September 2003 7:21:22 am

I started a howto for multilingual sites at http://ez.no/developer/ez_publish_3/documentation/configuration/configuration/language_and_charset/how_to_setup_a_multilingual_site

I would appreciate everyone's comments or help in putting together a systematized documentation. I am still trying to get it to look nice like the other documentation...

thanks,
chris

eZ debug

Timing: Jan 18 2025 19:18:38
Script start
Timing: Jan 18 2025 19:18:38
Module start 'content'
Timing: Jan 18 2025 19:18:39
Module end 'content'
Timing: Jan 18 2025 19:18:39
Script end

Main resources:

Total runtime1.0233 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.8672180.8281
Module start 'content' 0.00800.8979 769.6953633.2031
Module end 'content' 0.90590.1174 1,402.8984341.3984
Script end 1.0233  1,744.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4609210.0002
Check MTime0.00200.1922210.0001
Mysql Total
Database connection0.00050.046610.0005
Mysqli_queries0.937891.64252020.0046
Looping result0.00180.17622000.0000
Template Total0.989596.720.4947
Template load0.00270.265920.0014
Template processing0.986796.423820.4934
Template load and register function0.00020.016110.0002
states
state_id_array0.00110.103310.0011
state_identifier_array0.00130.125920.0006
Override
Cache load0.00240.2367700.0000
Sytem overhead
Fetch class attribute can translate value0.00080.078640.0002
Fetch class attribute name0.00110.106970.0002
XML
Image XML parsing0.00150.145440.0004
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00230.2225340.0001
String conversion0.00000.000530.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs