Problem with multilinguage site

Author Message

Kamil Chojdak

Wednesday 21 October 2009 4:28:42 am

Hi I have problem with displaying multilinguage content. I've created site in two languages (Polish and English) and menu structure should be different for each of them so in main location I have few folders created in Polish language and few folders created in English language. Now depending on language version you should only be able to see the folders created in this language but no matter which language you choose all folders are displaying. This is my code:

{let $menuitems=fetch( 'content', 'list',
        hash( 'parent_node_id',  2,
              'class_filter_type', include,
              'class_filter_array', array('folder'),
              'only_translated', true()) )}
{section var=menu loop=$menuitems}
  {$menu.object.name|wash}<br>
{/section}

pol/site.ini.append.php:

[RegionalSettings]
Locale=pol-PL
ContentObjectLocale=pol-PL
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=pol-PL
TextTranslation=enabled

eng/site.ini.append.php:

[RegionalSettings]
Locale=eng-US
ContentObjectLocale=eng-US
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=eng-US
TextTranslation=enabled

Pls look at my code. Maybe you have some other idea how to create different menu structure for each language version.

Thanks in advance.

Marek TryliƄski

Monday 26 October 2009 4:53:01 pm

ok this is classic :)

you should change
Default object availability

in settings for folder class

remember to republish all of folders after (either with a script or via admin panel)

good luck

--
http://trylik.pl/kategorie/ez-publish/

Kamil Chojdak

Tuesday 27 October 2009 7:55:00 am

This is it!!!:))

Thanks for help!!!

kingdict kingdict

Sunday 01 November 2009 8:31:34 pm

I have also experienced this kind of problem.

Kingdict.com is an online multilingual electronic translator shopping store,we provide multinational handheld,portable electronic talking dictionaries & translators with more than 40 languages, include most popular asia, european languages, even include some languages of ethnic minority of china, for example Cantonese, Shanghaihua ,Tibetan etc, and earned high remarks in this Market- "To Make Speaking Easier across world."

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 18 2025 15:02:24
Script start
Timing: Jan 18 2025 15:02:24
Module start 'layout'
Timing: Jan 18 2025 15:02:24
Module start 'content'
Timing: Jan 18 2025 15:02:25
Module end 'content'
Timing: Jan 18 2025 15:02:25
Script end

Main resources:

Total runtime1.2861 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 587.9141152.6250
Module start 'layout' 0.00750.0038 740.539139.4609
Module start 'content' 0.01131.2736 780.0000580.5781
Module end 'content' 1.28490.0012 1,360.578112.1641
Script end 1.2861  1,372.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2657160.0002
Check MTime0.00140.1086160.0001
Mysql Total
Database connection0.00140.105910.0014
Mysqli_queries1.231395.7382620.0199
Looping result0.00070.0527600.0000
Template Total1.240496.420.6202
Template load0.00220.172120.0011
Template processing1.238196.271020.6191
Template load and register function0.00020.013710.0002
states
state_id_array0.00240.190410.0024
state_identifier_array0.00340.261220.0017
Override
Cache load0.00200.1519240.0001
Sytem overhead
Fetch class attribute can translate value0.00070.050830.0002
Fetch class attribute name0.00100.080950.0002
XML
Image XML parsing0.00150.120330.0005
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.00160.1231150.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs