src/phpDocumentor/Translator/Translator.php
public function addTranslationFolder($folder, array $domains = array())
    {
        if (empty($domains)) {
            $domains = array(self::DEFAULT_DOMAIN);
        }

        foreach ($domains as $domain) {
            $this->addTranslationsUsingPattern($folder, $domain);
        }

        return $this;
    }
public function addTranslationFolder($folder, array $domains = array())
    {
        if (empty($domains)) {
            $domains = array(self::DEFAULT_DOMAIN);
        }

        foreach ($domains as $domain) {
            $this->addTranslationsUsingPattern($folder, $domain);
        }

        return $this;
    }
public function addTranslationFolder ( $ folder , array $ domains = array ( ) ) { if ( empty ( $ domains ) ) { $ domains = array ( self :: DEFAULT_DOMAIN ) ; } foreach ( $ domains as $ domain ) { $ this -> addTranslationsUsingPattern ( $ folder , $ domain ) ; } return $ this ; }
Adds a folder with files containing translation sources.

This method scans the provided folder for any file matching the following format:

`[domain].[locale].php`

If the domain matches the {@see self::DEFAULT_DOMAIN default domain} then that part is omitted and the filename
should match:

`[locale].php`

@link http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for a list of ISO-639-1 locale codes as used by
this method.

@param string   $folder  Name of the folder, it is recommended to use an absolute path.
@param string[] $domains One or more domains to load, when none is provided only the default is added.

@api

@return $this
Adds a folder with files containing translation sources .