Set language.

@param \BlackForest\PiwikBundle\Entity\PiwikLanguage|null $language

@return PiwikVisit
376
public function setLanguage(\BlackForest\PiwikBundle\Entity\PiwikLanguage $language = null)
    {
        $this->language = $language;

        return $this;
    }
1153112
public function setLanguage($lang = null)
    {
        $this->_iLanguage = (int) $lang;
        // reset
        $this->_sViewTable = false;
    }
325580
public void setLanguage(String language) {
	if (StringUtil.isEmpty(language)) return;
	this.language = Collection.validateLanguage(language);
    }
40783
public function setupLanguage($language = 'english')
    {
        $this
            ->addIndexAnalyzer($language)
            ->addSuggestionAnalyzer($language)
            ->addStripSpecialCharsFilter()
            ->addNGramTokenizer()
            ->addStopWordsFilter($language)
            ->addStemmerFilter($language);

        return $this;
    }
1371911
public function setLanguage($language, $category = null)
    {
        if ($category === null) {
            $category = defined('LC_MESSAGES') ? LC_MESSAGES : LC_ALL;
        }

        setlocale($category, $language);
        putenv('LANGUAGE='.$language);

        return $this;
    }
66909
public function setDefaultLanguage($language)
    {
        $language = (string) $language;
        if ($language === '') {
            throw new \InvalidArgumentException('$language cannot be empty');
        }

        $this->defaultLanguage = $language;
    }
769714
public function setLanguage($language = 'ro')
    {
        $language = trim(strtolower($language));
        switch ($language) {
            case 'ro':
                $this->language = 'ro';
                break;
            case 'en':
            default:
                $this->language = 'en';
        }

        return true;
    }
376406
public function setLanguage($lang)
    {
        if (!Icepay_Parameter_Validation::language($lang))
            throw new Exception('Language not valid');
        $this->data->ic_language = $lang;
        return $this;
    }
632512
public function setLang($lang = '')
    {
        if (gettype($lang) === 'string') {
            $this->lang = $lang;
        } else {
            $msg = "The lang argument must be a string, '" . gettype($lang) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
560959
public function save($file = null): Language
    {
        if (is_null($file) && is_null($this->file)) {
            throw LanguageException::forFileNotSet();
        }

        if (is_null($file)) {
            $file = $this->file;
        }

        $contents = "<?php //-->\nreturn " . var_export($this->data, true) . ";";
        file_put_contents($file, $contents);

        return $this;
    }
905746
public static function setLang($lang)
    {
        phpCAS::_validateClientExists();

        try {
            self::$_PHPCAS_CLIENT->setLang($lang);
        } catch (Exception $e) {
            phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
        }
    }
671288
public function setLanguage($lang)
	{
		$this->lang     = $lang;
		$this->metadata = $this->getMetadata($this->lang);

		return $this;
	}
1184421
public function setLanguage(Language $language)
    {
        $this->language = $language;
        $this->languageId = $language->getLanguageId();
    }
280473
public function setLanguage(Language\Language $language)
    {
        $this->factory->setLanguage($language);
        $this->pushLanguage();
    }
1080522
public function set($object = null)
    {
        if (null !== $object && !$object instanceof Language) {
            throw new General\InvalidArgumentTypeException('exception_only_language_objects_are_accepted');
        }

        $this->alLanguage = $object;

        return $this;
    }
177878
public function withLanguage(string $language): self
    {
        $provider = clone $this;

        $provider->language = $this->getLanguage($language);

        return $provider;
    }
381950
public function removeLanguage(\BlackForest\PiwikBundle\Entity\PiwikLanguage $language)
    {
        return $this->language->removeElement($language);
    }