private function setLanguageKeyFromConfiguration(\Tx_Oelib_Configuration $configuration)
    {
        if (!$configuration->hasString('language')) {
            return;
        }

        $this->languageKey = $configuration->getAsString('language');
        if ($configuration->hasString('language_alt')) {
            $this->alternativeLanguageKey = $configuration->getAsString('language_alt');
        }
    }
private function setLanguageKeyFromConfiguration(\Tx_Oelib_Configuration $configuration)
    {
        if (!$configuration->hasString('language')) {
            return;
        }

        $this->languageKey = $configuration->getAsString('language');
        if ($configuration->hasString('language_alt')) {
            $this->alternativeLanguageKey = $configuration->getAsString('language_alt');
        }
    }
private function setLanguageKeyFromConfiguration ( \ Tx_Oelib_Configuration $ configuration ) { if ( ! $ configuration -> hasString ( 'language' ) ) { return ; } $ this -> languageKey = $ configuration -> getAsString ( 'language' ) ; if ( $ configuration -> hasString ( 'language_alt' ) ) { $ this -> alternativeLanguageKey = $ configuration -> getAsString ( 'language_alt' ) ; } }
Reads the language key from a configuration and sets it as current language.
Also sets the alternate language if one is configured.

The language key is read from the "language" key and the alternate language is read
from the language_alt key.

@param \Tx_Oelib_Configuration $configuration the configuration to read

@return void
Reads the language key from a configuration and sets it as current language . Also sets the alternate language if one is configured .