mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Obtain module path from module manifest (#9720)
This commit is contained in:
parent
e40a95af27
commit
c6ee8c0b34
@ -372,7 +372,8 @@ class i18nTextCollector
|
|||||||
// For each module do a simple merge of the default yml with these strings
|
// For each module do a simple merge of the default yml with these strings
|
||||||
foreach ($entitiesByModule as $module => $messages) {
|
foreach ($entitiesByModule as $module => $messages) {
|
||||||
// Load existing localisations
|
// Load existing localisations
|
||||||
$masterFile = "{$this->basePath}/vendor/{$module}/lang/{$this->defaultLocale}.yml";
|
$masterFile = ModuleLoader::inst()->getManifest()->getModule($module)->getPath() .
|
||||||
|
DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . $this->defaultLocale . '.yml';
|
||||||
$existingMessages = $this->getReader()->read($this->defaultLocale, $masterFile);
|
$existingMessages = $this->getReader()->read($this->defaultLocale, $masterFile);
|
||||||
|
|
||||||
// Merge
|
// Merge
|
||||||
|
Loading…
Reference in New Issue
Block a user