Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Multilingual Security-pages


Go to End


2 Posts   873 Views

Avatar
devOp1

Community Member, 2 Posts

4 March 2014 at 4:29am

Hi,

i'm currently working on a multilingual website(french, german, english) and using the modules translatable and languageprefix.
The page have some secured pages, when the user is not logged in the LoginForm comes with the Url: "DOMAIN/Security/login?BackURL=%2Fthe_page%2F.
But the login form ignores the current language and shows always up with the default language(german). The same problem with just /Security/login.
How can I set the language of Security-Controller dynamically?

I already googled and found similiar questions but no helpful hints.

Thank you in advance.
devOp1

Avatar
devOp1

Community Member, 2 Posts

12 March 2014 at 9:41pm

Is it possible to set the current language into a session variable and then override the security controller and set the language there from the session variable?

I really need to solve this, so i would be very thankfull for any hint or idea.