/**
  * For future use, cache the language app wise as well.
  *
  * @access public
  * @return void
  */
 public function setLanguage($sLanguage)
 {
     $this->messages->catalog = $sLanguage;
     parent::setLanguage($sLanguage);
 }
Exemplo n.º 2
0
 /**
  * For future use, cache the language app wise as well.
  *
  * @access public
  * @return void
  */
 public function setLanguage($sLanguage)
 {
     $sLanguage = preg_replace('/[^a-z0-9-]/i', '', $sLanguage);
     $this->messages->catalog = $sLanguage;
     parent::setLanguage($sLanguage);
 }
Exemplo n.º 3
0
 /**
  * For future use, cache the language app wise as well.
  *
  * @access public
  * @return void
  */
 public function setLanguage($sLanguage)
 {
     $sLanguage = preg_replace('/[^a-z0-9-]/i', '', $sLanguage);
     $this->messages->catalog = $sLanguage;
     App()->session['_lang'] = $sLanguage;
     // See: http://www.yiiframework.com/wiki/26/setting-and-maintaining-the-language-in-application-i18n/
     parent::setLanguage($sLanguage);
 }