Navigation Menu

Skip to content

Commit

Permalink
Sorting files while extracting translation messages from a twig templ…
Browse files Browse the repository at this point in the history
…ates
  • Loading branch information
pauluz authored and fabpot committed Jun 19, 2013
1 parent 430c6d7 commit ba0bcb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/Twig/Translation/TwigExtractor.php
Expand Up @@ -56,7 +56,7 @@ public function extract($directory, MessageCatalogue $catalogue)
{
// load any existing translation files
$finder = new Finder();
$files = $finder->files()->name('*.twig')->in($directory);
$files = $finder->files()->name('*.twig')->sortByName()->in($directory);
foreach ($files as $file) {
$this->extractTemplate(file_get_contents($file->getPathname()), $catalogue);
}
Expand Down

0 comments on commit ba0bcb1

Please sign in to comment.