src/View/Twig/TwigTranslator.php
/**
	 * Translates the template with the provided namespaces.
	 *
	 * @param string $value
	 * @param array $namespaces
	 * @return string
	 */
Translates the template with the provided namespaces.
@param string $value
@param array $namespaces
@return string
Translates the template with the provided namespaces . @param string $value @param array $namespaces @return string
public function compile($value, array $namespaces) {
		if (is_null($namespaces) || empty($namespaces)) {
			return $value;
		}
		$bucket = Application::kernel()->translation()->bucket();
		return $bucket->autoTranslate($value, array(), $namespaces);
	}
public function compile ( $ value , array $ namespaces ) { if ( is_null ( $ namespaces ) || empty ( $ namespaces ) ) { return $ value ; } $ bucket = Application :: kernel ( ) -> translation ( ) -> bucket ( ) ; return $ bucket -> autoTranslate ( $ value , array ( ) , $ namespaces ) ; }
Translates the template with the provided namespaces.
Translates the template with the provided namespaces .