mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Don't complain about missing locales in i18nTextCollector
This commit is contained in:
parent
64d7438681
commit
0cdc33b121
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user