original_string: public function setActiveLocale($locale)
      {
          if (empty($locale)) {
              $this->getCore()->session()->forget(static::ACTIVE_LOCALE_SESSION_KEY);
          } else {
              $this->getCore()->session()->put(static::ACTIVE_LOCALE_SESSION_KEY, $locale);
          }
  
          return $this;
      }
code: public function setActiveLocale($locale)
      {
          if (empty($locale)) {
              $this->getCore()->session()->forget(static::ACTIVE_LOCALE_SESSION_KEY);
          } else {
              $this->getCore()->session()->put(static::ACTIVE_LOCALE_SESSION_KEY, $locale);
          }
  
          return $this;
      }
code_tokens: public function setActiveLocale ( $ locale ) { if ( empty ( $ locale ) ) { $ this -> getCore ( ) -> session ( ) -> forget ( static :: ACTIVE_LOCALE_SESSION_KEY ) ; } else { $ this -> getCore ( ) -> session ( ) -> put ( static :: ACTIVE_LOCALE_SESSION_KEY , $ locale ) ; } return $ this ; }
docstring: Set currently active translation locale.
  
  @param string|null $locale   if empty/null, unsets the active locale
  @return $this
docstring_tokens: Set currently active translation locale .