Command/ImportTranslationsCommand.php
protected function importAppTranslationFiles(array $locales, array $domains)
    {
        if (Kernel::MAJOR_VERSION >= 4) {
            $translationPath = $this->getApplication()->getKernel()->getProjectDir().'/translations';
            $finder = $this->findTranslationsFiles($translationPath, $locales, $domains, false);
        } else {
            $finder = $this->findTranslationsFiles($this->getApplication()->getKernel()->getRootDir(), $locales, $domains);
        }
        $this->importTranslationFiles($finder);
    }
protected function importAppTranslationFiles(array $locales, array $domains)
    {
        if (Kernel::MAJOR_VERSION >= 4) {
            $translationPath = $this->getApplication()->getKernel()->getProjectDir().'/translations';
            $finder = $this->findTranslationsFiles($translationPath, $locales, $domains, false);
        } else {
            $finder = $this->findTranslationsFiles($this->getApplication()->getKernel()->getRootDir(), $locales, $domains);
        }
        $this->importTranslationFiles($finder);
    }
protected function importAppTranslationFiles ( array $ locales , array $ domains ) { if ( Kernel :: MAJOR_VERSION >= 4 ) { $ translationPath = $ this -> getApplication ( ) -> getKernel ( ) -> getProjectDir ( ) . '/translations' ; $ finder = $ this -> findTranslationsFiles ( $ translationPath , $ locales , $ domains , false ) ; } else { $ finder = $ this -> findTranslationsFiles ( $ this -> getApplication ( ) -> getKernel ( ) -> getRootDir ( ) , $ locales , $ domains ) ; } $ this -> importTranslationFiles ( $ finder ) ; }
Imports application translation files.

@param array $locales
@param array $domains
Imports application translation files .