src/Translation/LanguageBucket.php
/**
	 * Performs a fast lookup using the fast index. Returns the translated text or null. If there are multiple
	 * definitions for the text, the first to load is returned (if you need one in specific, use namespaces).
	 *
	 * @param string $text
	 * @return string|null
	 */
Performs a fast lookup using the fast index. Returns the translated text or null. If there are multiple
definitions for the text, the first to load is returned (if you need one in specific, use namespaces).

@param string $text
@return string|null
Performs a fast lookup using the fast index . Returns the translated text or null . If there are multiple definitions for the text the first to load is returned ( if you need one in specific use namespaces ) . @param string $text @return string|null
protected function fastLookup($text) {
		$lookup = array($text, trim($text));
		foreach ($lookup as $key) {
			if (isset($this->definitions[$key])) {
				return $this->definitions[$key]->getTranslation();
			}
		}
		return null;
	}
protected function fastLookup ( $ text ) { $ lookup = array ( $ text , trim ( $ text ) ) ; foreach ( $ lookup as $ key ) { if ( isset ( $ this -> definitions [ $ key ] ) ) { return $ this -> definitions [ $ key ] -> getTranslation ( ) ; } } return null ; }
Performs a fast lookup using the fast index.
Performs a fast lookup using the fast index .