protected function TranslatorCacheTest::getCatalogue in Plug 7
1 call to TranslatorCacheTest::getCatalogue()
- TranslatorCacheTest::testRefreshCacheWhenResourcesAreNoLongerFresh in lib/
Symfony/ translation/ Tests/ TranslatorCacheTest.php
File
- lib/
Symfony/ translation/ Tests/ TranslatorCacheTest.php, line 252
Class
Namespace
Symfony\Component\Translation\TestsCode
protected function getCatalogue($locale, $messages, $resources = array()) {
$catalogue = new MessageCatalogue($locale);
foreach ($messages as $key => $translation) {
$catalogue
->set($key, $translation);
}
foreach ($resources as $resource) {
$catalogue
->addResource($resource);
}
return $catalogue;
}