Don't complain about missing locales in i18nTextCollector

This commit is contained in:
Ingo Schommer 2013-08-09 12:29:52 +02:00
parent 64d7438681
commit 0cdc33b121

View File

@ -155,7 +155,10 @@ class i18nTextCollector extends Object {
// Currently not possible because adapter instances can't be fully reset through the Zend API,
// meaning master strings accumulate across modules
if($mergeWithExisting) {
$adapter = Injector::inst()->create('i18nRailsYamlAdapter');
$adapter = Injector::inst()->create(
'i18nRailsYamlAdapter',
array('locale' => 'auto')
);
$masterFile = "{$this->basePath}/{$module}/lang/"
. $adapter->getFilenameForLocale($this->defaultLocale);
if(!file_exists($masterFile)) continue;