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.

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 31 2025 01:19:31
Script start
Timing: Jan 31 2025 01:19:31
Module start 'layout'
Timing: Jan 31 2025 01:19:31
Module start 'content'
Timing: Jan 31 2025 01:19:31
Module end 'content'
Timing: Jan 31 2025 01:19:31
Script end

Main resources:

Total runtime0.0216 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0040 588.1563151.2109
Module start 'layout' 0.00400.0032 739.3672220.6875
Module start 'content' 0.00720.0130 960.05471,001.9297
Module end 'content' 0.02010.0014 1,961.984433.9922
Script end 0.0216  1,995.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002310.8654140.0002
Check MTime0.00104.5795140.0001
Mysql Total
Database connection0.00073.080610.0007
Mysqli_queries0.00167.484830.0005
Looping result0.00000.046310.0000
Template Total0.00104.410.0010
Template load0.00083.510810.0008
Template processing0.00020.893410.0002
Override
Cache load0.00052.414410.0005
General
dbfile0.00104.815680.0001
String conversion0.00000.027640.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