Multilanguage Behaviour

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
jonnieb
Forum Members
Forum Members
Posts: 16
Joined: Thu Sep 11, 2008 10:32 pm

Multilanguage Behaviour

Post 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
alby

Re: Multilanguage Behaviour

Post 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
jonnieb
Forum Members
Forum Members
Posts: 16
Joined: Thu Sep 11, 2008 10:32 pm

Re: Multilanguage Behaviour

Post 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
alby

Re: Multilanguage Behaviour

Post 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
Locked

Return to “[locked] CMSMS MLE fork”