title: How to use translations in Yii console application?
body: <p>I have created a console Yii application that works as a background worker for a web app - it sends out emails and it needs to send them with translated messages.</p>
  
  <p>For some reason however, the messages are not translated when using <code>Yii::t</code></p>
  
  <p>If I set the language to something else than english with <code>Yii::app-&gt;setLanguage('et_ee')</code>, and check that it is really changed with <code>Yii::app-&gt;getLanguage()</code> the texts are always in english.</p>
  
  <p>When I run this same command from web, the texts are correctly translated.</p>
  
  <p>I guess there must be something special I have to do for the translatiosn to work in a console application?</p>