src/Kunstmaan/TranslatorBundle/Service/Command/Importer/ImportCommandHandler.php
private function importGlobalTranslationFiles(ImportCommand $importCommand)
    {
        $baseDir = Kernel::VERSION_ID >= 40000 ? $this->kernel->getProjectDir() : $this->kernel->getRootDir();
        $translationsDir = Kernel::VERSION_ID >= 40000 ? 'translations' : null;
        $locales = $this->determineLocalesToImport($importCommand);
        $finder = $this->translationFileExplorer->find($baseDir, $locales, $translationsDir);

        return $this->importTranslationFiles($finder, $importCommand->getForce());
    }
private function importGlobalTranslationFiles(ImportCommand $importCommand)
    {
        $baseDir = Kernel::VERSION_ID >= 40000 ? $this->kernel->getProjectDir() : $this->kernel->getRootDir();
        $translationsDir = Kernel::VERSION_ID >= 40000 ? 'translations' : null;
        $locales = $this->determineLocalesToImport($importCommand);
        $finder = $this->translationFileExplorer->find($baseDir, $locales, $translationsDir);

        return $this->importTranslationFiles($finder, $importCommand->getForce());
    }
private function importGlobalTranslationFiles ( ImportCommand $ importCommand ) { $ baseDir = Kernel :: VERSION_ID >= 40000 ? $ this -> kernel -> getProjectDir ( ) : $ this -> kernel -> getRootDir ( ) ; $ translationsDir = Kernel :: VERSION_ID >= 40000 ? 'translations' : null ; $ locales = $ this -> determineLocalesToImport ( $ importCommand ) ; $ finder = $ this -> translationFileExplorer -> find ( $ baseDir , $ locales , $ translationsDir ) ; return $ this -> importTranslationFiles ( $ finder , $ importCommand -> getForce ( ) ) ; }
Import all translation files from app resources

@param ImportCommand $importCommand

@return int total number of files imported
Import all translation files from app resources