src/Translation/LanguageBucket.php
/**
	 * Replaces variables in a translation with data from the provided array. Missing variables will be untouched.
	 *
	 * @param string $match
	 * @param array $variables
	 * @return string
	 */
Replaces variables in a translation with data from the provided array. Missing variables will be untouched.
@param string $match
@param array $variables
@return string
Replaces variables in a translation with data from the provided array . Missing variables will be untouched . @param string $match @param array $variables @return string
protected function replaceVariables(&$match, array &$variables) {
		list($keys, $values) = $this->getFlattenedVariables($variables);
		$text = preg_replace($keys, $values, $match);
		return $text;
	}
protected function replaceVariables ( & $ match , array & $ variables ) { list ( $ keys , $ values ) = $ this -> getFlattenedVariables ( $ variables ) ; $ text = preg_replace ( $ keys , $ values , $ match ) ; return $ text ; }
Replaces variables in a translation with data from the provided array.
Replaces variables in a translation with data from the provided array .