Forums / General / Samples for multilaguage sites

Samples for multilaguage sites

Author Message

Rob Rob

Tuesday 15 February 2005 8:43:05 am

I was reading the multilanguage discussion in the forums and I like to see some samples of multilanguage sites.

Are there some examples to watch?

Thanks a lot!

Rob

Ulrich L.

Tuesday 15 February 2005 8:58:08 am

Look here:
http://www.fast.no

I'm just working on a multilingual site. It appears very powerful to me, however it's a pity this feature is so poorly documented.

Rob Rob

Tuesday 15 February 2005 9:14:42 am

Nice site, nice example

The documentation is my problem in the moment.

How you handle the translationwork, do you seperate the languages totally or can you switch between the languages easily?

In other words can you publish one text (eg english) for all languages or you need to switch to the next language(eg french) and edit the article again?

I am thinking about news and if it possible to create one article for all languages?

Thanks

Rob Rob

Tuesday 15 February 2005 9:18:23 am

Is there a solution about browser recognition or geotargeting, I cant't find it in the forum

Thanks Rob

Gabriel Ambuehl

Tuesday 15 February 2005 9:27:59 am

Articles that aren't translated remain in the default language for all other languages.

Visit http://triligon.org

Ekkehard Dörre

Tuesday 15 February 2005 3:27:00 pm

Hi Rob,

<i> Is there a solution about browser recognition or geotargeting, I cant't find it in the forum</i>

Browser Recognition:
http://ez.no/community/contribs/template_plugins/ezbrowsersniff_operator

Geotargeting with help of Sörens:
http://ez.no/community/contribs/3rd_party/extension_phpadsnew_pubsvn

Most information is found via:
http://ez.no/content/search?SearchText=multilingual

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Nicolas Heiringhoff

Wednesday 16 February 2005 3:29:35 am

Hi Rob,

basically you have to create a separate siteacces in the "settings/siteacess" directory like "plain", "plain-fr", "plain-eng". Then you must edit the site.iniappned.php files of these separate siteaccess and match the access url to the siteaccess of each language

http://www.heiringhoff.de

Simon Phillips

Wednesday 16 February 2005 10:15:52 am

The most useful documentation by far is http://www.ez.no/ez_publish/documentation/configuration/configuration/language_and_charset/how_to_setup_a_multilingual_site

I was able to follow that and now have a site in 4 languages.

However, I'm stuck in trying to add a language menubar. Since the node translation information is only available at the view template level, I can't access it from within pagelayout.tpl, which is where I want to display it.

How have you guys got around this? Obviously, I could always display language flags even if a translation isn't available, but that isn't ideal.

Simon

Simon Phillips

Wednesday 16 February 2005 11:01:48 am

To reply to myself...

You need to use the fetch template function to retrieve the node details at the pagelayout level. I use subdomains to determine the different languages.

		{* Code to show list of translations *}
{let languages=hash('eng-GB',concat('<img class="flag" alt="English" src=',"en.gif"|ezimage,'/>'), 'esl-ES',concat('<img class="flag" alt="Spanish" src=',"es.gif"|ezimage,'/>'), 'fre-FR',concat('<img class="flag" alt="French" src=',"fr.gif"|ezimage,'/>'), 'ger-DE',concat('<img class="flag" alt="German" src=',"de.gif"|ezimage,'/>'))
  let lang_sub=hash('eng-GB','www','esl-ES','es','fre-FR','fr','ger-DE','de')
  let domain='.gv2006.org.uk.local/'

  thisnode=fetch(content, node, hash(node_id, $module_result.node_id)) }

    {section show=$thisnode.object.current.translation_list|count|gt(0)}
	    {section var=translation loop=$thisnode.object.current.translation_list}
                <a href={concat('http://',$lang_sub[$translation.language_code],$domain,$module_result.content_info.url_alias,'/(language)/',$translation.language_code)}>{$languages[$translation.language_code]}</a> 
            {/section}
    {/section}
{/let}

eZ debug

Timing: Jan 18 2025 19:04:06
Script start
Timing: Jan 18 2025 19:04:06
Module start 'content'
Timing: Jan 18 2025 19:04:07
Module end 'content'
Timing: Jan 18 2025 19:04:08
Script end

Main resources:

Total runtime1.7264 sec
Peak memory usage4,096.0000 KB
Database Queries220

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.7031180.8438
Module start 'content' 0.00731.5284 768.5469751.7188
Module end 'content' 1.53570.1906 1,520.2656340.4453
Script end 1.7263  1,860.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00630.3644210.0003
Check MTime0.00210.1240210.0001
Mysql Total
Database connection0.00090.052210.0009
Mysqli_queries1.613293.44442200.0073
Looping result0.00280.16082180.0000
Template Total1.682397.420.8412
Template load0.00190.108620.0009
Template processing1.680497.338920.8402
Template load and register function0.00030.017310.0003
states
state_id_array0.00080.043510.0008
state_identifier_array0.00310.181420.0016
Override
Cache load0.00170.0985480.0000
Sytem overhead
Fetch class attribute can translate value0.00160.092070.0002
Fetch class attribute name0.00150.0856110.0001
XML
Image XML parsing0.00160.093770.0002
class_abstraction
Instantiating content class attribute0.00000.0012110.0000
General
dbfile0.00560.3227330.0002
String conversion0.00000.000430.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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs