Language Selector

Hi all

I’ve used this extension in the past to set up 2 different languages on a web site (french and English)

LangUrlManager

I was wondering if there’s another (perhaps better) way of doing this?

I basically want the ability for the user to be able to switch between french and english anywhere on the site and when they select a different language the current page they are on simply switches languages.

like I said, I can use the code I’ve used in the past but I just find it’s not very clean as I need to makes mods in several places… be nice to have a more contained way of doing it. be easier to implement when setting up a new project as well

thanks for any info or tips

You can give elangurlmanager a try.

Go to GitHub and search for yii-language-selector

I think the code is very clean. You will find a demo too.