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.

Customising the CMS /

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

changing the i18n language via GET-parameter?


Go to End


4 Posts   1685 Views

Avatar
baba-papa

Community Member, 279 Posts

9 November 2009 at 6:20am

I have a page showing a form. The field names are translated via the _t() function. How can I switch the CMS language by passing a GET parameter? I remember somthing like myURL?lang=de doing the job but it does not work.

Thanks for your help.

Avatar
baba-papa

Community Member, 279 Posts

9 November 2009 at 8:59pm

Edited: 09/11/2009 9:03pm

Switching languages via GET isn´t a feature anymore since 2.3.1. I have to implement this by myself.

Avatar
Ingo

Forum Moderator, 801 Posts

2 December 2009 at 9:28pm

Avatar
baba-papa

Community Member, 279 Posts

3 December 2009 at 1:05am

Thanks for the hint, Ingo.