Skip to content

Commit

Permalink
Merge pull request #22 from martiis/import-1-patch
Browse files Browse the repository at this point in the history
translations paths are now set from current working directory
  • Loading branch information
Martynas Sudintas committed Mar 6, 2015
2 parents f78e32a + 57fd7e5 commit e758be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Translation/Import/FileImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function import(SplFileInfo $file)
$domainMessages = $messageCatalogue->all($domain);

if (!empty($domainMessages)) {
$path = pathinfo($file->getPathname(), PATHINFO_DIRNAME);
$path = substr(pathinfo($file->getPathname(), PATHINFO_DIRNAME), strlen(getcwd()) + 1);
$translations[$path][$domain]['format'] = $file->getExtension();
foreach ($domainMessages as $key => $content) {
$translations[$path][$domain]['translations'][$key][$locale] = $content;
Expand Down

0 comments on commit e758be8

Please sign in to comment.