src/Kunstmaan/TranslatorBundle/Service/Command/Importer/ImportCommandHandler.php
public function importBundleTranslationFiles(ImportCommand $importCommand)
    {
        $importBundle = strtolower($importCommand->getDefaultBundle());

        if ($importBundle == 'all') {
            $importCount = $this->importAllBundlesTranslationFiles($importCommand);

            if (Kernel::VERSION_ID >= 40000) {
                $importCount += $this->importSf4TranslationFiles($importCommand);
            }

            return $importCount;
        } elseif ($importBundle == 'custom') {
            return $this->importCustomBundlesTranslationFiles($importCommand);
        } else {
            if (Kernel::VERSION_ID >= 40000) {
                return $this->importSf4TranslationFiles($importCommand);
            }

            return $this->importOwnBundlesTranslationFiles($importCommand);
        }
    }
public function importBundleTranslationFiles(ImportCommand $importCommand)
    {
        $importBundle = strtolower($importCommand->getDefaultBundle());

        if ($importBundle == 'all') {
            $importCount = $this->importAllBundlesTranslationFiles($importCommand);

            if (Kernel::VERSION_ID >= 40000) {
                $importCount += $this->importSf4TranslationFiles($importCommand);
            }

            return $importCount;
        } elseif ($importBundle == 'custom') {
            return $this->importCustomBundlesTranslationFiles($importCommand);
        } else {
            if (Kernel::VERSION_ID >= 40000) {
                return $this->importSf4TranslationFiles($importCommand);
            }

            return $this->importOwnBundlesTranslationFiles($importCommand);
        }
    }
public function importBundleTranslationFiles ( ImportCommand $ importCommand ) { $ importBundle = strtolower ( $ importCommand -> getDefaultBundle ( ) ) ; if ( $ importBundle == 'all' ) { $ importCount = $ this -> importAllBundlesTranslationFiles ( $ importCommand ) ; if ( Kernel :: VERSION_ID >= 40000 ) { $ importCount += $ this -> importSf4TranslationFiles ( $ importCommand ) ; } return $ importCount ; } elseif ( $ importBundle == 'custom' ) { return $ this -> importCustomBundlesTranslationFiles ( $ importCommand ) ; } else { if ( Kernel :: VERSION_ID >= 40000 ) { return $ this -> importSf4TranslationFiles ( $ importCommand ) ; } return $ this -> importOwnBundlesTranslationFiles ( $ importCommand ) ; } }
Import all translation files from a specific bundle, bundle name will be lowercased so cases don't matter

@param ImportCommand $importCommand

@return int total number of files imported
Import all translation files from a specific bundle bundle name will be lowercased so cases don t matter