I have designed a web application, It works for two different users say user1
and user2
, and both of the users need the view
in different languages.
I have studied about yii:t()
but by that method we have to define language in main.config
, which set the same language for both users.
How can I translate my view in different languages for both users?
I hope this can help you: you need to edit urlmanager.php in your components, if there is no file, you need to create one.
Check this url: Multilingual
Thanks.