Forums / Install & configuration / Multilingual Site

Multilingual Site

Author Message

RW Wood

Wednesday 03 September 2003 9:27:17 am

Assuming that I have installed the proper translations on a test site and actually translated content, how do I get it to show up on the user side of the site? Shouldn't there be a "Click here to read in Spanish" button or something? The best I've been able to do is change the default languages in my site.ini.append file, which produces changes in "stuff" like the dates, but nothing more. I've searched the docs and can't find how this is to be done, so if someone has done it or can point me to the how-to, I'd appreciate it.

Thanks
RW Wood

Paul Borgermans

Wednesday 03 September 2003 10:58:48 am

http://ez.no/developer/ez_publish_3/documentation/installation_and_configuration/configuration/language_and_charset/multilanguage_site

hth

-paul

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

RW Wood

Thursday 04 September 2003 7:39:57 am

Paul,

I read the page you referred to, but it's still unclear. I'm assuming that means that I have two folders within the siteaccess folder, one for English and one for Spanish.

As to "To get the dropdown you only need to link to the same URL, but with a different URL prefix." What dropdown? Link where? Prefix?

Also, "If you want different content on the different sites you need to build two different directory structures." Different directory structures where?

As extensive as the ezP documentation has gotten (I commend the crew for that), the old saying "A picture is worth a thousand words" holds true. For many of the docs I've read, examples with explicit files to modify, etc. would be very helpful.

Thanks.
RWW

Paul Borgermans

Thursday 04 September 2003 8:36:14 am

Haven't done it before, but this is what it means:

>I'm assuming that means that I have two folders
>within the siteaccess folder, one for English and one
>for Spanish.

Exactly, you only specify the required language in the ini file, the rest may be the same (unless you harcoded text without the i18n operator in your templates)

>As to "To get the dropdown you only need to link to
>the same URL, but with a different URL prefix."
>What dropdown? Link where? Prefix?

This means you need to do URL based matching for determining the siteaccess to use

eg for a virtual host setup:

http://yoursite/en/... leads to the "english" siteaccess
http://yoursite/es/... leads to the "spanish" siteaccess

In your settings/override/site.ini.append.php
[SiteAccessSettings]
you'll have to specify among the available siteaccess and
MatchOrder=uri;host;port

URIMatchType=element
URIMatchElement=1

Your siteaccess should then be called "en" and "es"

You then code some links in your pagelayout which switch between both URL's dynamically:

<a href={concat("/en/",$uri_string)|ezurl}>Engish version</a>
<a href={concat("/en/",$uri_string)|ezurl}>Version espanol</a>

You can detect the base part (ie "/en" or "/es") used by inspecting the variable $uri.base to make the "switch" fancier (see the docs on template functions and operators)

Easy, isn't it (in theory at least, again, I did not test this yet)?

>Also, "If you want different content on the different
>sites you need to build two different directory
>structures." Different directory structures where?

Don't worry, thats just when you have 2 or more unrelated sites with different langauges.

I hope you got these ascii picture(s)

-paul

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

Chris Johnson

Tuesday 16 September 2003 1:25:52 pm

I have been trying to implement this same functionality on the user end of a trilingual website (English Spanish and Portuguese). The admin area is in Spanish, which is the only thing that works so far. I have been studying all the documentation and forum messages I can find, and still after a month I cant get the user interface to function correctly.

I posted details about my setup at http://ez.no/developer/ez_publish_3/forum/setup_design/multilingual_site_setup_headaches.
Please help me with this if you have any ideas.

Thanks sincerely,
chris

Tony Wood

Thursday 06 November 2003 5:21:43 am

Paul,

How did you get the images to work in multiple languages or did you just use text?

I have asked the question of eZ as the fast.no site uses it, I hope that only images need to be duplicated for the site and not all the overrides.

Ref: http://ez.no/developer/ez_publish_3/forum/developer/multilingual_site_images

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

Claus Jensen

Friday 07 November 2003 4:09:52 am

Hi,
Have any of you had problems with translation functions on your sites? I regularly have a problem when trying to translate objects, that their name disappears from lists, and all attributes are un-editable, also not able to view them in admin nor the user site. My version is 3.2-1 and is an upgrade from the earlier 3.0-2 or so, and Im using nor-NO as the primary language.

<scissor'ed from site.ini.append>
[RegionalSettings]
# The primary language for your site
#Locale=eng-GB
Locale=nor-NO
ContentObjectLocale=nor-NO
#ContentObjectLocale=eng-GB
#HTTPLocale=en
HTTPLocale=no
</scissor>

regards,
claÜs

Oree Eyo

Wednesday 27 July 2005 7:41:40 am

>>Also, "If you want different content on the different
>>sites you need to build two different directory
>>structures." Different directory structures where?

>Don't worry, thats just when you have 2 or more unrelated >sites with different langauges.

I'm worried. Where can I find more information about this?

eZ debug

Timing: Jan 18 2025 14:55:05
Script start
Timing: Jan 18 2025 14:55:05
Module start 'content'
Timing: Jan 18 2025 14:55:06
Module end 'content'
Timing: Jan 18 2025 14:55:06
Script end

Main resources:

Total runtime1.0058 sec
Peak memory usage4,096.0000 KB
Database Queries217

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0105 587.7109180.8359
Module start 'content' 0.01050.8064 768.5469768.0000
Module end 'content' 0.81700.1887 1,536.5469344.4375
Script end 1.0056  1,880.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4172210.0002
Check MTime0.00160.1547210.0001
Mysql Total
Database connection0.00070.069010.0007
Mysqli_queries0.905089.98522170.0042
Looping result0.00260.26042150.0000
Template Total0.967596.220.4838
Template load0.00190.191020.0010
Template processing0.965696.008720.4828
Template load and register function0.00020.021110.0002
states
state_id_array0.00080.080210.0008
state_identifier_array0.00110.114220.0006
Override
Cache load0.00180.1775850.0000
Sytem overhead
Fetch class attribute can translate value0.00130.130070.0002
Fetch class attribute name0.00120.1156100.0001
XML
Image XML parsing0.00200.200170.0003
class_abstraction
Instantiating content class attribute0.00000.0026110.0000
General
dbfile0.00780.7763340.0002
String conversion0.00000.001030.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
21content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
15content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 49
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs