Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
Also recognize xlf language files.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolineus committed May 17, 2015
1 parent 1bdf8dd commit 655c4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LanguageVariableSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ protected function getTranslations()
$files = new \RecursiveIteratorIterator(
new \RecursiveDirectoryIterator($path));
foreach ($files as $file) {
if (preg_match('#/languages/\w\w/([^/]+)\.php#', $file->getPathname(), $match)
if (preg_match('#/languages/\w\w/([^/]+)\.(php|xlf)#', $file->getPathname(), $match)
&& $match[1] != 'countries'
&& $match[1] != 'default'
&& $match[1] != 'explain'
Expand Down

0 comments on commit 655c4b3

Please sign in to comment.