public function addDirectory($directory)
    {
        if (isset($this->directories[$directory])) {
            return;
        }
        // index by name to avoid duplicates
        $this->directories[$directory] = $directory;

        // clear currently loaded translations to force reloading them
        $this->translations = array();
    }
public function addDirectory($directory)
    {
        if (isset($this->directories[$directory])) {
            return;
        }
        // index by name to avoid duplicates
        $this->directories[$directory] = $directory;

        // clear currently loaded translations to force reloading them
        $this->translations = array();
    }
public function addDirectory ( $ directory ) { if ( isset ( $ this -> directories [ $ directory ] ) ) { return ; } // index by name to avoid duplicates $ this -> directories [ $ directory ] = $ directory ; // clear currently loaded translations to force reloading them $ this -> translations = array ( ) ; }
Add a directory containing translations.

@param string $directory
Add a directory containing translations .