PHP Класс Kdyby\Translation\TranslationLoader

Автор: Michel Salib ([email protected])
Автор: Filip Procházka ([email protected])
Наследование: extends Nette\Object, implements Kdyby\Translation\IResourceLoader
Показать файл Открыть проект

Открытые методы

Метод Описание
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 )

Описание методов

addLoader() публичный Метод

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 getLoaders ( ) : Symfony\Component\Translation\Loader\LoaderInterface[]
Результат Symfony\Component\Translation\Loader\LoaderInterface[]

injectServiceIds() публичный Метод

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

loadMessages() публичный Метод

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 loadResource ( string $format, string $resource, string $domain, Symfony\Component\Translation\MessageCatalogue $catalogue )
$format string
$resource string
$domain string
$catalogue Symfony\Component\Translation\MessageCatalogue