PHP Class Kdyby\Translation\PrefixedTranslator

Author: Filip Procházka ([email protected])
Inheritance: extends Nette\Object, implements ITranslator
Datei anzeigen Open project: kdyby/translation

Public Methods

Method Description
__construct ( string $prefix, ITranslator $translator )
register ( Latte\Template | Nette\Bridges\ApplicationLatte\Template | Nette\Templating\Template $template, string $prefix ) : ITranslator
register23 ( Latte\Template | Nette\Bridges\ApplicationLatte\Template | Nette\Templating\Template $template, string $prefix ) : ITranslator
translate ( string $message, integer | array | null $count = NULL, array | string | null $parameters = [], string | null $domain = NULL, string | null $locale = NULL ) : string
unregister ( $template ) : ITranslator
unwrap ( ) : ITranslator

Private Methods

Method Description
overrideTemplateTranslator ( Latte\Template | Template | Nette\Bridges\ApplicationLatte\Template | Nette\Templating\Template $template, ITranslator $translator )

Method Details

__construct() public method

public __construct ( string $prefix, ITranslator $translator )
$prefix string
$translator ITranslator

register() public static method

public static register ( Latte\Template | Nette\Bridges\ApplicationLatte\Template | Nette\Templating\Template $template, string $prefix ) : ITranslator
$template Latte\Template | Nette\Bridges\ApplicationLatte\Template | Nette\Templating\Template
$prefix string
return ITranslator

register23() public static method

public static register23 ( Latte\Template | Nette\Bridges\ApplicationLatte\Template | Nette\Templating\Template $template, string $prefix ) : ITranslator
$template Latte\Template | Nette\Bridges\ApplicationLatte\Template | Nette\Templating\Template
$prefix string
return ITranslator

translate() public method

public translate ( string $message, integer | array | null $count = NULL, array | string | null $parameters = [], string | null $domain = NULL, string | null $locale = NULL ) : string
$message string
$count integer | array | null
$parameters array | string | null
$domain string | null
$locale string | null
return string

unregister() public method

public unregister ( $template ) : ITranslator
$template
return ITranslator

unwrap() public method

public unwrap ( ) : ITranslator
return ITranslator