PHP Class Sulu\Bundle\WebsiteBundle\Translator\RequestAnalyzerTranslator

Inheritance: implements Symfony\Component\Translation\TranslatorInterface
Datei anzeigen Open project: sulu/sulu

Public Methods

Method Description
__construct ( Symfony\Component\Translation\TranslatorInterface $translator, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer )
getLocale ( )
setLocale ( $locale )
trans ( $id, array $parameters = [], $domain = null, $locale = null )
transChoice ( $id, $number, array $parameters = [], $domain = null, $locale = null )

Private Methods

Method Description
initialize ( )

Method Details

__construct() public method

public __construct ( Symfony\Component\Translation\TranslatorInterface $translator, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer )
$translator Symfony\Component\Translation\TranslatorInterface
$requestAnalyzer Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface

getLocale() public method

public getLocale ( )

setLocale() public method

public setLocale ( $locale )

trans() public method

public trans ( $id, array $parameters = [], $domain = null, $locale = null )
$parameters array

transChoice() public method

public transChoice ( $id, $number, array $parameters = [], $domain = null, $locale = null )
$parameters array