Skip to content

Commit

Permalink
add comment about locale seperator and view file path seperator
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed May 9, 2021
1 parent fa72cdb commit 5d44cbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/EventRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ public function getLocalizedView($factory, $code, $locale)
}

foreach ($searchPaths as $path) {
// must use "-" as locale seperator since "." is used as path seperator for the view file location
$localizedView = sprintf('%s-%s', $code, $path);

if ($factory->exists($localizedView)) {
Expand Down

0 comments on commit 5d44cbb

Please sign in to comment.