예제 #1
0
 /**
  * changing the language within one request is a bit fancy
  * in order to keep the core clean, we need a little hack here
  *
  * @param string $langId
  */
 protected function changeLanguage($langId)
 {
     if ($this->lastLanguage != $langId) {
         $_GET['language'] = $langId;
         Piwik_Translate::reset();
         Piwik_Translate::getInstance()->reloadLanguage($langId);
     }
     $this->lastLanguage = $langId;
 }