how to add change language feature in my mail wizz extension

Hello All,

Any Body can tell me that how to add a change language feature in mail wizz extension.

I just create a mailwizz extension so advise me

Ankit Naredi
I would simply add links like somepage?setlang=de somepage?setlang=it and once clicked would save the value in session and then from my extension i would hook in the before controllers hook and read the session and if the language found, would call Yii::app()->language = 'whatever session value'.