Page 1 of 1

Multilanguage Behaviour

Posted: Thu Sep 11, 2008 10:43 pm
by jonnieb
Hi!

I´m new to CMSMS and try to realize it with the Multilanguage feature. I have a question concerning the behaviour of the Multilanguage support.

- I have six languages.
- When a user walks through the page, changes the language and the page is available in the chosen language he should view the content in the other language (This is already supported and works quit nice)
- When a user walks througth the pages, changes the language and there is not a translation for this page available, he should be redirected to the homepage of the language he had chosen, not the default language like it is already implemented.

Is there any way to let MLE work this way?

Looking forward to any comments!

Best,
Jon

Re: Multilanguage Behaviour

Posted: Fri Sep 12, 2008 7:27 am
by alby
jonnieb wrote: I´m new to CMSMS and try to realize it with the Multilanguage feature. I have a question concerning the behaviour of the Multilanguage support.

- I have six languages.
- When a user walks through the page, changes the language and the page is available in the chosen language he should view the content in the other language (This is already supported and works quit nice)
- When a user walks througth the pages, changes the language and there is not a translation for this page available, he should be redirected to the homepage of the language he had chosen, not the default language like it is already implemented.

Is there any way to let MLE work this way?

Looking forward to any comments!
Old question

Now I have a patch for this but it's untested
I think go out with 1.4.1b or 1.5

Alby

Re: Multilanguage Behaviour

Posted: Fri Sep 12, 2008 9:18 pm
by jonnieb
Hi Alby,

thanks for your effort. You are really doing a well job here!
My problem is, that I didn´t get the workaround to solve my problem. How does it work? How do I have to implement it on my page?

It would be great if you can help me :-)

Best,
Jon

Re: Multilanguage Behaviour

Posted: Sat Sep 13, 2008 8:34 am
by alby
jonnieb wrote: thanks for your effort. You are really doing a well job here!
My problem is, that I didn´t get the workaround to solve my problem. How does it work? How do I have to implement it on my page?

It would be great if you can help me :-)
Look here and follow case a.

But replace redirect_lang code with:

Code: Select all

if (! empty($params['to']))
{
	redirect_to_alias($params['to']);
}
and use to param (replace {redirect_lang} with {redirect_lang to='page_alias'})

Alby