Which method shall I use to translate the entire view file after rendering?

I have actually used this link

and have configured default langauge etc.,

but can’t find my answers anywhere.

Actually I don’t want to translate any specific message but I want to translate entire view file

I have read here :

I am looking for view translation example.

Just scroll down a bit more on the page you linked :)

ok so in my init() method of the site controller , I have

    $app = Yii::app();

    $app->language = 'nl';

Which actually converts all the view files to dutch language. BUT! I am looking for something that translates the entire content the view file to selected language… not only attributes and labels…