mirror of
https://github.com/flarum/core.git
synced 2025-08-07 00:47:00 +02:00
Support module prefixing of locale resources
In preparation for upcoming changes, allow locale resources to have a module prefix added when they are loaded from a file.
This commit is contained in:
@@ -95,7 +95,7 @@ abstract class AbstractWebApp
|
||||
*/
|
||||
protected function getTranslationFilter()
|
||||
{
|
||||
return '/^[^\.]+\.(?:'.$this->getName().'|lib)\./';
|
||||
return '/^.+(?:\.|::)(?:'.$this->getName().'|lib)\./';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user