PHP Class Kdyby\Translation\CatalogueFactory

Author: Filip Procházka ([email protected])
Inheritance: extends Nette\Object
Mostrar archivo Open project: kdyby/translation Class Usage Examples

Public Methods

Method Description
__construct ( FallbackResolver $fallbackResolver, Kdyby\Translation\IResourceLoader $loader )
addResource ( $format, $resource, $locale, $domain = 'messages' )
createCatalogue ( Translator $translator, array &$availableCatalogues, string $locale ) : Symfony\Component\Translation\MessageCatalogueInterface
getResources ( ) : array

Private Methods

Method Description
doLoadCatalogue ( array &$availableCatalogues, $locale )

Method Details

__construct() public method

public __construct ( FallbackResolver $fallbackResolver, Kdyby\Translation\IResourceLoader $loader )
$fallbackResolver FallbackResolver
$loader Kdyby\Translation\IResourceLoader

addResource() public method

public addResource ( $format, $resource, $locale, $domain = 'messages' )

createCatalogue() public method

public createCatalogue ( Translator $translator, array &$availableCatalogues, string $locale ) : Symfony\Component\Translation\MessageCatalogueInterface
$translator Translator
$availableCatalogues array
$locale string
return Symfony\Component\Translation\MessageCatalogueInterface

getResources() public method

public getResources ( ) : array
return array