src/Translation/Language/NamespaceDefinition.php
/**
	 * Finds a matching definition and returns the translated string, or null if no definition was found.
	 *
	 * @param string $originalText
	 * @return string|null
	 */
Finds a matching definition and returns the translated string, or null if no definition was found.
@param string $originalText
@return string|null
Finds a matching definition and returns the translated string or null if no definition was found . @param string $originalText @return string|null
public function translate($originalText) {
		$definition = $this->getDefinition($originalText);
		if ($definition) {
			return $definition->getTranslation();
		}
		return null;
	}
public function translate ( $ originalText ) { $ definition = $ this -> getDefinition ( $ originalText ) ; if ( $ definition ) { return $ definition -> getTranslation ( ) ; } return null ; }
Finds a matching definition and returns the translated string, or null if no definition was found.
Finds a matching definition and returns the translated string or null if no definition was found .