Forums / Setup & design / problem with different languages

problem with different languages

Author Message

Valentina Ferrari

Wednesday 19 October 2005 1:49:19 am

Hi all!
I'm usign EzPublish 3.4.0.

I activate 5 languages in my site (italian, english, german, french and spanish).
I traslated all the site into italian and english and all was ok.
Yesterday I traslated a content into german, but something wrong happened.
The content class has these attributes: title, intro and descritpion.
When I traslated into german my content, ezPublish deleted the intro and description italian content.

What happended?
Help me please,
Valentina

Filippo Ferrari

Wednesday 19 October 2005 3:59:32 am

I can't help you but I have a question ralated to different languages usage, could you (or someone) explain me how to show different languages choose on my site, thank you

Filippo

J-A Eberhard

Wednesday 19 October 2005 5:39:37 am

Try to adapt to your case the script on used on pagelayout.tpl

{* LANGUAGE SELECTOR *}
{section show=eq(ezini('RegionalSettings','Locale'),'fre-FR')}
<a href="{concat('/de/', $DesignKeys:used.url_alias)}">Allemand</a>
{/section}
{section show=eq(ezini('RegionalSettings','Locale'),'ger-DE')}
<a href="{concat('/fr/', $DesignKeys:used.url_alias)}">Franzözisch</a><br>
{/section}

I used siteaccess to manage the languages and this will show you link to the same page as the one you are in but in another language.
Jacques-André

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Filippo Ferrari

Thursday 20 October 2005 1:42:54 am

Thans, it works fine!

Vasyl Mykhalevych

Monday 31 October 2005 2:57:07 am

Hi.

2 J-A Eberhard:
would you like to explain, where exactly in pagelayout.tpl your example code should be inserted?

I was trying to insert it on different sectors, but was fail.

I was fail because I'm idiot: your code means if language is fre-FR then view lot of urls.
But I (butt-head) put this code to english page and waiting for a magic.

For other beginners (like me): here code for dispalying list of available translations in 3-lingual site: your code, only adapted.

<b>List of languages</b>


{section show=eq(ezini('RegionalSettings','Locale'),'eng-US')}
<a href="{concat('/index.php/site/' - I was play for a fiew minutes while eZ returns active url - when I use /site/ it was error, so - /index.php/site/, then we receive index.php/site/sub_item/... and everyting works fine.', $DesignKeys:used.url_alias;</a>
<a href="{concat('pol_site', $DesignKeys:used.url_alias)}">Po polskemu</a>
{/section}
{section show=eq(ezini('RegionalSettings','Locale'),'rus-RU')}
<a href="{concat('eng_site', $DesignKeys:used.url_alias)}">In english</a>
<a href="{concat('pol_site', $DesignKeys:used.url_alias)}">Po polskemu</a>
{/section}
{section show=eq(ezini('RegionalSettings','Locale'),'pol-PL')}
<a href="{concat('site', $DesignKeys:used.url_alias)}">&#1053;&#1072; &#1088;&#1091;&#1089;&#1089;&#1082;&#1086;&#1084;</a>
<a href="{concat('eng_site', $DesignKeys:used.url_alias)}">In english</a>
{/section}

Thank you in advance.

eZ debug

Timing: Jan 31 2025 01:16:14
Script start
Timing: Jan 31 2025 01:16:14
Module start 'content'
Timing: Jan 31 2025 01:16:14
Module end 'content'
Timing: Jan 31 2025 01:16:14
Script end

Main resources:

Total runtime0.1933 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0093 587.9531370.2891
Module start 'content' 0.00930.0167 958.24221,005.6563
Module end 'content' 0.02600.1673 1,963.89843,894.4922
Script end 0.1933  5,858.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00492.5146200.0002
Check MTime0.00150.7613200.0001
Mysql Total
Database connection0.00090.469710.0009
Mysqli_queries0.094648.94831410.0007
Looping result0.00130.69461390.0000
Template Total0.166886.310.1668
Template load0.00090.477010.0009
Template processing0.165985.813010.1659
Override
Cache load0.00060.319110.0006
Sytem overhead
Fetch class attribute can translate value0.00201.051510.0020
XML
Image XML parsing0.00030.135510.0003
General
dbfile0.01005.1542200.0005
String conversion0.00000.003730.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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