1
0
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:
Toby Zerner
2016-11-28 11:28:10 +10:30
parent dd209b1747
commit 060745ecb7
4 changed files with 42 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ abstract class AbstractWebApp
*/
protected function getTranslationFilter()
{
return '/^[^\.]+\.(?:'.$this->getName().'|lib)\./';
return '/^.+(?:\.|::)(?:'.$this->getName().'|lib)\./';
}
/**