src/app/dbtext/DbtextHtmlBuilder.php
public function getTf(string $key, array $args = null, array $replacements = null, string ...$namespaces) {
		if (empty($namespaces)) {
			$namespaces = $this->meta->getNamespaces();
		}
		
		$translatedText = $this->textService->tf($namespaces, $key, $args, ...$this->meta->getN2nLocales());
		$replacedText = HtmlBuilderMeta::replace($translatedText, $replacements, $this->view);
		return new Raw($replacedText);
	}
public function getTf(string $key, array $args = null, array $replacements = null, string ...$namespaces) {
		if (empty($namespaces)) {
			$namespaces = $this->meta->getNamespaces();
		}
		
		$translatedText = $this->textService->tf($namespaces, $key, $args, ...$this->meta->getN2nLocales());
		$replacedText = HtmlBuilderMeta::replace($translatedText, $replacements, $this->view);
		return new Raw($replacedText);
	}
public function getTf ( string $ key , array $ args = null , array $ replacements = null , string ... $ namespaces ) { if ( empty ( $ namespaces ) ) { $ namespaces = $ this -> meta -> getNamespaces ( ) ; } $ translatedText = $ this -> textService -> tf ( $ namespaces , $ key , $ args , ... $ this -> meta -> getN2nLocales ( ) ) ; $ replacedText = HtmlBuilderMeta :: replace ( $ translatedText , $ replacements , $ this -> view ) ; return new Raw ( $ replacedText ) ; }
Use for easy access to a UiComponent with textblock formatted by printf rules.

@param string $key
@param string[] $args
@param string[] $replacements
@param string ...$namespaces
@return UiComponent
Use for easy access to a UiComponent with textblock formatted by printf rules .