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.

Customising the CMS

changing the i18n language via GET-parameter?


Reply

4 Posts   1270 Views

Avatar
baba-papa

9 November 2009 at 6:20am Community Member, 279 Posts

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

9 November 2009 at 8:59pm (Last edited: 9 November 2009 9:03pm), Community Member, 279 Posts

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

Avatar
Ingo

2 December 2009 at 9:28pm Forum Moderator, 801 Posts

Have a look at http://doc.silverstripe.org/doku.php?id=multilingualcontent&s=translatable#by_url

Avatar
baba-papa

3 December 2009 at 1:05am Community Member, 279 Posts

Thanks for the hint, Ingo.