Just in case this of any interest to anyone, but I've managed to get this working.
1. Created a custom controller and inherited from Umbraco.Web.Mvc.RenderMvcController. This function checks a cookie and switches the language. 2. Created a new class MyApplication and inheritied from UmbracoApplication. 3. Override the OnApplicationStarting method and hook up the new base controller.
I've also then enabled additional actions on the controller for switching between languages.
Changing site culture at runtime?
I'm currently using Matt Brailsfords Vorto language package in MVC and trying to work out the best way to implement a bilinqual language switcher?
I've done this previously in Webforms but not sure the best approach in Umbraco MVC. Any help would be appreciated.
Just in case this of any interest to anyone, but I've managed to get this working.
1. Created a custom controller and inherited from Umbraco.Web.Mvc.RenderMvcController. This function checks a cookie and switches the language.
2. Created a new class MyApplication and inheritied from UmbracoApplication.
3. Override the OnApplicationStarting method and hook up the new base controller.
I've also then enabled additional actions on the controller for switching between languages.
Hi Craig,
Do you have example code you could post on how you acheived this? Thanks in advance for your help.
Hi Joshua,
Its a little too much to post on the forum, but send me an email at craigacronin at me.com and I'll send you some :)
Thanks, Craig. Email sent. I really appreciate the example code and quick response.
is working on a reply...