public function importDirectory($directory, $packageHandle, $packageVersion, $basePlacesDirectory)
    {
        $parsed = $this->parser->parseDirectory($packageHandle, $packageVersion, $directory, $basePlacesDirectory, ParserInterface::DICTIONARY_NONE);
        $translations = $parsed ? $parsed->getSourceStrings() : null;
        if ($translations === null) {
            $translations = new Translations();
            $translations->setLanguage($this->app->make('community_translation/sourceLocale'));
        }

        return $this->importTranslations($translations, $packageHandle, $packageVersion);
    }
public function importDirectory($directory, $packageHandle, $packageVersion, $basePlacesDirectory)
    {
        $parsed = $this->parser->parseDirectory($packageHandle, $packageVersion, $directory, $basePlacesDirectory, ParserInterface::DICTIONARY_NONE);
        $translations = $parsed ? $parsed->getSourceStrings() : null;
        if ($translations === null) {
            $translations = new Translations();
            $translations->setLanguage($this->app->make('community_translation/sourceLocale'));
        }

        return $this->importTranslations($translations, $packageHandle, $packageVersion);
    }
public function importDirectory ( $ directory , $ packageHandle , $ packageVersion , $ basePlacesDirectory ) { $ parsed = $ this -> parser -> parseDirectory ( $ packageHandle , $ packageVersion , $ directory , $ basePlacesDirectory , ParserInterface :: DICTIONARY_NONE ) ; $ translations = $ parsed ? $ parsed -> getSourceStrings ( ) : null ; if ( $ translations === null ) { $ translations = new Translations ( ) ; $ translations -> setLanguage ( $ this -> app -> make ( 'community_translation/sourceLocale' ) ) ; } return $ this -> importTranslations ( $ translations , $ packageHandle , $ packageVersion ) ; }
Parse a directory and extract the translatable strings, and import them into the database.

@param string $directory
@param string $packageHandle
@param string $packageVersion
@param string $basePlacesDirectory

@throws UserMessageException

@return bool returns true if some translatable strings changed, false otherwise
Parse a directory and extract the translatable strings and import them into the database .