PHP Class Kdyby\Translation\TemplateHelpers

Author: Filip Procházka ([email protected])
Inheritance: extends Nette\Object
Mostra file Open project: kdyby/translation

Public Methods

Method Description
__construct ( ITranslator $translator )
getTranslator ( ) : ITranslator
loader ( $method )
register ( Engine $engine )
translate ( $message, $count = NULL, $parameters = [], $domain = NULL, $locale = NULL )
translateFilterAware ( FilterInfo $filterInfo, $message, $count = NULL, $parameters = [], $domain = NULL, $locale = NULL )

Method Details

__construct() public method

public __construct ( ITranslator $translator )
$translator ITranslator

getTranslator() public method

public getTranslator ( ) : ITranslator
return ITranslator

loader() public method

Deprecation:
public loader ( $method )

register() public method

public register ( Engine $engine )
$engine Latte\Engine

translate() public method

public translate ( $message, $count = NULL, $parameters = [], $domain = NULL, $locale = NULL )

translateFilterAware() public method

public translateFilterAware ( FilterInfo $filterInfo, $message, $count = NULL, $parameters = [], $domain = NULL, $locale = NULL )
$filterInfo Latte\Runtime\FilterInfo