concrete/src/Localization/Localization.php
public function setActiveContext($context)
    {
        $oldLocale = isset($this->activeContext) ? $this->contextLocales[$this->activeContext] : null;
        $this->activeContext = $context;
        if (!isset($this->contextLocales[$context])) {
            $this->setContextLocale($context, static::BASE_LOCALE);
        }
        $newLocale = $this->contextLocales[$context];
        if ($newLocale !== $oldLocale) {
            $this->currentLocaleChanged($newLocale);
        }
    }
public function setActiveContext($context)
    {
        $oldLocale = isset($this->activeContext) ? $this->contextLocales[$this->activeContext] : null;
        $this->activeContext = $context;
        if (!isset($this->contextLocales[$context])) {
            $this->setContextLocale($context, static::BASE_LOCALE);
        }
        $newLocale = $this->contextLocales[$context];
        if ($newLocale !== $oldLocale) {
            $this->currentLocaleChanged($newLocale);
        }
    }
public function setActiveContext ( $ context ) { $ oldLocale = isset ( $ this -> activeContext ) ? $ this -> contextLocales [ $ this -> activeContext ] : null ; $ this -> activeContext = $ context ; if ( ! isset ( $ this -> contextLocales [ $ context ] ) ) { $ this -> setContextLocale ( $ context , static :: BASE_LOCALE ) ; } $ newLocale = $ this -> contextLocales [ $ context ] ; if ( $ newLocale !== $ oldLocale ) { $ this -> currentLocaleChanged ( $ newLocale ) ; } }
Sets the active translation context.

@param string $context
Sets the active translation context .