concrete/src/Localization/Localization.php
public function setContextLocale($context, $locale)
    {
        if (isset($this->contextLocales[$context]) && $this->contextLocales[$context] == $locale) {
            return;
        }
        $this->contextLocales[$context] = $locale;
        if ($context === $this->activeContext) {
            $this->currentLocaleChanged($locale);
        }
    }
public function setContextLocale($context, $locale)
    {
        if (isset($this->contextLocales[$context]) && $this->contextLocales[$context] == $locale) {
            return;
        }
        $this->contextLocales[$context] = $locale;
        if ($context === $this->activeContext) {
            $this->currentLocaleChanged($locale);
        }
    }
public function setContextLocale ( $ context , $ locale ) { if ( isset ( $ this -> contextLocales [ $ context ] ) && $ this -> contextLocales [ $ context ] == $ locale ) { return ; } $ this -> contextLocales [ $ context ] = $ locale ; if ( $ context === $ this -> activeContext ) { $ this -> currentLocaleChanged ( $ locale ) ; } }
Sets the context locale for the given context as the given locale.

@param string $context
@param string $locale
Sets the context locale for the given context as the given locale .