You are here

public function LoaderInterface::load in Plug 7

Loads a locale.

@api

Parameters

mixed $resource A resource:

string $locale A locale:

string $domain The domain:

Return value

MessageCatalogue A MessageCatalogue instance

Throws

NotFoundResourceException when the resource cannot be found

InvalidResourceException when the resource cannot be loaded

4 methods override LoaderInterface::load()
ArrayLoader::load in lib/Symfony/translation/Loader/ArrayLoader.php
@api
IcuResFileLoader::load in lib/Symfony/translation/Loader/IcuResFileLoader.php
Loads a locale.
QtFileLoader::load in lib/Symfony/translation/Loader/QtFileLoader.php
@api
XliffFileLoader::load in lib/Symfony/translation/Loader/XliffFileLoader.php
@api

File

lib/Symfony/translation/Loader/LoaderInterface.php, line 41

Class

LoaderInterface
LoaderInterface is the interface implemented by all translation loaders.

Namespace

Symfony\Component\Translation\Loader

Code

public function load($resource, $locale, $domain = 'messages');