Page 1 of 3

Babel: Menu not showing

Posted: Wed Dec 08, 2010 8:10 am
by ninjapiraatti
Hi!

I'm having a bit of a trouble with Babel. I know it's working because I can make different text appear depending on language but the language menu won't display at all. In the source I can see that Babel starts the but for some reason won't list the languages. I'm using the hierarchy method and the structure is identical for all languages.

Re: Babel: Menu not showing

Posted: Wed Dec 08, 2010 12:16 pm
by nicmare
insert {babel action="assign"} in the first line of your template

Re: Babel: Menu not showing

Posted: Fri Dec 10, 2010 7:30 am
by ninjapiraatti
Done that already, no effect.

Re: Babel: Menu not showing

Posted: Fri Dec 10, 2010 9:11 am
by nicmare
how looks your menu template? this is mine:

Code: Select all

<ul id="language_menu">
{foreach from=$languages item="language"}
   {if $language->is_current}<li class="active {$language->menu_name}">{$language->menu_name}</li>{else}<li class="{$language->menu_name}"><a href="{$language->url}" class="{$language->menu_name}">{$language->menu_name}</a></li>{/if}
{/foreach}
</ul>

Re: Babel: Menu not showing

Posted: Sat Dec 11, 2010 10:54 am
by ninjapiraatti
I tested yours, no effect.

Re: Babel: Menu not showing

Posted: Sun Dec 12, 2010 10:44 am
by ninjapiraatti
Got the menu showing but it doesn't quite work. When I try to access other languages I get the following:

string(52) "Smarty error: unable to read resource: "template:-1""

Re: Babel: Menu not showing

Posted: Mon Dec 13, 2010 7:00 am
by ninjapiraatti
Can anyone point me in the right direction? Please?

Re: Babel: Menu not showing

Posted: Mon Dec 13, 2010 8:49 pm
by nicmare
post your template

Re: Babel: Menu not showing

Posted: Tue Dec 14, 2010 6:40 am
by ninjapiraatti
Layout template or babel menu template? Babel menu template is currently exactly the same as posted above. I've only tried that and the default.

Re: Babel: Menu not showing

Posted: Tue Dec 14, 2010 11:41 am
by M@rtijn
There's not a whole lot of info in this topic, but maybe this causes your problem.

You say your hierarchy is the same, but did also specify the url for the page in the other language?

Do you have this in your (main CMS) template?

Code: Select all

{content block='Other languages' oneline='true' assign=other_languages wysiwyg='false'}
When you edit a page, do you see a box where you can enter the alias for the page in another language? (use this notifiaction: 'en_GB=home_en' on one page, 'fr_FR=home_fr' on the other)

I hope this helps, if not, please try to give more info about your problem.

Re: Babel: Menu not showing

Posted: Wed Dec 15, 2010 11:52 am
by nicmare
mr202020 wrote: There's not a whole lot of info in this topic, but maybe this causes your problem.

You say your hierarchy is the same, but did also specify the url for the page in the other language?

Do you have this in your (main CMS) template?

Code: Select all

{content block='Other languages' oneline='true' assign=other_languages wysiwyg='false'}
When you edit a page, do you see a box where you can enter the alias for the page in another language? (use this notifiaction: 'en_GB=home_en' on one page, 'fr_FR=home_fr' on the other)

I hope this helps, if not, please try to give more info about your problem.
afaik this is not neccessary when using babel. i do not use this.
simply post your page template.

Re: Babel: Menu not showing

Posted: Wed Dec 15, 2010 12:03 pm
by M@rtijn
Whoops, almost forgot there are two types of language redirection methods in babel.

If the tree branch is really identical for both languages, it should be working.

Re: Babel: Menu not showing

Posted: Wed Dec 15, 2010 4:46 pm
by solodok
Good evening,
Just upgraded to newest CMSMS version (1.9.2), and now only links to home pages in both languages are working (in settings turned on to show active lang. link and link to second language), like i have no pages at all, or structure in both languages is completely different.. before worked fine with basic settings without assigning. Its showing correct language en_US and ru_RU, but links always redirecting to home pages, have anybody faced such problems with babel? Thanks

Re: Babel: Menu not showing

Posted: Sat Dec 18, 2010 10:34 am
by klenkes
@soloduk:
Yep. I can confirm this.
Seems to me that Babel doesn't work anymore in CMSMS 1.9.2.

Language switcher links point to sectionheader of languages(if hierarchy method is used).

A workaround could be:
Set Sectionheader to "Internal Page Link" pointing to the according homepage for the language.

I will file a bug report.

Bernd

Re: Babel: Menu not showing

Posted: Sat Dec 18, 2010 11:22 am
by M@rtijn
Well, on my main website and my sandbox Babel is working fine with 1.9.2. So, not all Babel installs have this issue.