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   1317 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

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

Avatar
baba-papa

Community Member, 279 Posts

3 December 2009 at 1:05am

Thanks for the hint, Ingo.