mirror of
https://github.com/flarum/core.git
synced 2025-07-23 09:41:26 +02:00
Allow hyphens in referenced key names
This commit is contained in:
@@ -33,7 +33,7 @@ class YamlFileLoader extends BaseYamlFileLoader
|
|||||||
{
|
{
|
||||||
$translation = $messages->get($id, $domain);
|
$translation = $messages->get($id, $domain);
|
||||||
|
|
||||||
if (preg_match('/^=>\s*([a-z0-9_\.]+)$/i', $translation, $matches)) {
|
if (preg_match('/^=>\s*([a-z0-9_\-\.]+)$/i', $translation, $matches)) {
|
||||||
return $this->getTranslation($messages, $matches[1], $domain);
|
return $this->getTranslation($messages, $matches[1], $domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user