mirror of
https://github.com/getgrav/grav.git
synced 2026-07-06 17:48:32 +02:00
fixed translations with multiple plugins
This commit is contained in:
@@ -414,7 +414,10 @@ class Config extends Data
|
||||
{
|
||||
foreach ($files as $name => $item) {
|
||||
$file = CompiledYamlFile::instance($item['file']);
|
||||
$this->languages->join($name, $file->content(), '/');
|
||||
$content = $file->content();
|
||||
foreach ((array) $content as $key => $value) {
|
||||
$this->languages->join($key, $value, '/');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ class ConfigFinder
|
||||
$filename = "{$path}/{$name}/$find";
|
||||
|
||||
if (file_exists($filename)) {
|
||||
$list["plugins"] = ['file' => $filename, 'modified' => filemtime($filename)];
|
||||
$list[$name] = ['file' => $filename, 'modified' => filemtime($filename)];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user