PHP Class Kdyby\Translation\TranslationLoader

Author: Michel Salib ([email protected])
Author: Filip Procházka ([email protected])
Inheritance: extends Nette\Object, implements Kdyby\Translation\IResourceLoader
Afficher le fichier Open project: kdyby/translation

Méthodes publiques

Méthode Description
addLoader ( string $format, Symfony\Component\Translation\Loader\LoaderInterface $loader ) Adds a loader to the translation extractor.
getLoaders ( ) : Symfony\Component\Translation\Loader\LoaderInterface[]
injectServiceIds ( $serviceIds, Container $serviceLocator )
loadMessages ( string $directory, Symfony\Component\Translation\MessageCatalogue $catalogue ) Loads translation messages from a directory to the catalogue.
loadResource ( string $format, string $resource, string $domain, Symfony\Component\Translation\MessageCatalogue $catalogue )

Method Details

addLoader() public méthode

Adds a loader to the translation extractor.
public addLoader ( string $format, Symfony\Component\Translation\Loader\LoaderInterface $loader )
$format string The format of the loader
$loader Symfony\Component\Translation\Loader\LoaderInterface

getLoaders() public méthode

public getLoaders ( ) : Symfony\Component\Translation\Loader\LoaderInterface[]
Résultat Symfony\Component\Translation\Loader\LoaderInterface[]

injectServiceIds() public méthode

public injectServiceIds ( $serviceIds, Container $serviceLocator )
$serviceLocator Nette\DI\Container

loadMessages() public méthode

Loads translation messages from a directory to the catalogue.
public loadMessages ( string $directory, Symfony\Component\Translation\MessageCatalogue $catalogue )
$directory string the directory to look into
$catalogue Symfony\Component\Translation\MessageCatalogue the catalogue

loadResource() public méthode

public loadResource ( string $format, string $resource, string $domain, Symfony\Component\Translation\MessageCatalogue $catalogue )
$format string
$resource string
$domain string
$catalogue Symfony\Component\Translation\MessageCatalogue