private function handleDictionaryService($fallback = false)
	{
		$dictionaryServiceClass = $this->getSetting("dictionaryservice");
		$dictionaryServiceMerge = $this->getSetting("dictionarymerge");

		if ($dictionaryServiceClass !== false) {
			if (class_exists($dictionaryServiceClass)) {
				/** @var Dictionary\DictionaryService $dictionaryService */
				$dictionaryService = new $dictionaryServiceClass($this);

				$this->getDict()->loadFromArray($dictionaryService->loadTranslations($this->getLang()), $dictionaryServiceMerge);
				if (Language::validate($fallback) === $fallback) {
					$this->getDict()->loadFromArray($dictionaryService->loadTranslations($fallback), $dictionaryServiceMerge, true);
				}
			} else {
				throw new PlinthException("Your dictionary service implementation, $dictionaryServiceClass, cannot be found.");
			}
		}

		return $this;
	}
private function handleDictionaryService($fallback = false)
	{
		$dictionaryServiceClass = $this->getSetting("dictionaryservice");
		$dictionaryServiceMerge = $this->getSetting("dictionarymerge");

		if ($dictionaryServiceClass !== false) {
			if (class_exists($dictionaryServiceClass)) {
				/** @var Dictionary\DictionaryService $dictionaryService */
				$dictionaryService = new $dictionaryServiceClass($this);

				$this->getDict()->loadFromArray($dictionaryService->loadTranslations($this->getLang()), $dictionaryServiceMerge);
				if (Language::validate($fallback) === $fallback) {
					$this->getDict()->loadFromArray($dictionaryService->loadTranslations($fallback), $dictionaryServiceMerge, true);
				}
			} else {
				throw new PlinthException("Your dictionary service implementation, $dictionaryServiceClass, cannot be found.");
			}
		}

		return $this;
	}
private function handleDictionaryService ( $ fallback = false ) { $ dictionaryServiceClass = $ this -> getSetting ( "dictionaryservice" ) ; $ dictionaryServiceMerge = $ this -> getSetting ( "dictionarymerge" ) ; if ( $ dictionaryServiceClass !== false ) { if ( class_exists ( $ dictionaryServiceClass ) ) { /** @var Dictionary\DictionaryService $dictionaryService */ $ dictionaryService = new $ dictionaryServiceClass ( $ this ) ; $ this -> getDict ( ) -> loadFromArray ( $ dictionaryService -> loadTranslations ( $ this -> getLang ( ) ) , $ dictionaryServiceMerge ) ; if ( Language :: validate ( $ fallback ) === $ fallback ) { $ this -> getDict ( ) -> loadFromArray ( $ dictionaryService -> loadTranslations ( $ fallback ) , $ dictionaryServiceMerge , true ) ; } } else { throw new PlinthException ( "Your dictionary service implementation, $dictionaryServiceClass, cannot be found." ) ; } } return $ this ; }
Handle the user defined dictionary service if present

@param bool $fallback
@return $this
@throws PlinthException
Handle the user defined dictionary service if present