src/Kunstmaan/TranslatorBundle/Service/Command/Importer/ImportCommandHandler.php
private function importTranslationFiles(Finder $finder, $force = flase)
    {
        if (!$finder instanceof Finder) {
            return false;
        }

        $imported = 0;

        foreach ($finder as $file) {
            $imported += $this->importer->import($file, $force);
        }

        return $imported;
    }
private function importTranslationFiles(Finder $finder, $force = flase)
    {
        if (!$finder instanceof Finder) {
            return false;
        }

        $imported = 0;

        foreach ($finder as $file) {
            $imported += $this->importer->import($file, $force);
        }

        return $imported;
    }
private function importTranslationFiles ( Finder $ finder , $ force = flase ) { if ( ! $ finder instanceof Finder ) { return false ; } $ imported = 0 ; foreach ( $ finder as $ file ) { $ imported += $ this -> importer -> import ( $ file , $ force ) ; } return $ imported ; }
Import translation files from a specific Finder object
The finder object shoud already have the files to look for defined;
Forcing the import will override all existing translations in the stasher

@param Finder $finder
@param bool   $force  override identical translations in the stasher (domain/locale and keyword combination)

@return int total number of files imported
Import translation files from a specific Finder object The finder object shoud already have the files to look for defined ; Forcing the import will override all existing translations in the stasher