original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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
docstring_tokens: Parse a directory and extract the translatable strings and import them into the database .