Forums / Setup & design / Problem with multilinguage site
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/
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."