mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge remote-tracking branch 'origin/3.1'
This commit is contained in:
commit
0ecec24688
@ -155,7 +155,7 @@ class i18nTextCollector extends Object {
|
|||||||
// Currently not possible because adapter instances can't be fully reset through the Zend API,
|
// Currently not possible because adapter instances can't be fully reset through the Zend API,
|
||||||
// meaning master strings accumulate across modules
|
// meaning master strings accumulate across modules
|
||||||
if($mergeWithExisting) {
|
if($mergeWithExisting) {
|
||||||
$adapter = Injector::inst()->get('i18nRailsYamlAdapter');
|
$adapter = Injector::inst()->create('i18nRailsYamlAdapter');
|
||||||
$masterFile = "{$this->basePath}/{$module}/lang/"
|
$masterFile = "{$this->basePath}/{$module}/lang/"
|
||||||
. $adapter->getFilenameForLocale($this->defaultLocale);
|
. $adapter->getFilenameForLocale($this->defaultLocale);
|
||||||
if(!file_exists($masterFile)) continue;
|
if(!file_exists($masterFile)) continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user