code/libraries/joomlatools/library/date/date.php
protected function _translate($matches)
    {
        $replacement = '';
        $translator = $this->getObject('translator');

        switch ($matches[0])
        {
            case 'D':
                $replacement = $translator->translate(strtoupper($this->_date->format('D')));
                break;

            case 'l':
                $replacement = $translator->translate(strtoupper($this->_date->format('l')));
                break;

            case 'F':
                $replacement = $translator->translate(strtoupper($this->_date->format('F')));
                break;

            case 'M':
                $replacement = $translator->translate(strtoupper($this->_date->format('F').'_SHORT'));
                break;
        }

        $replacement = preg_replace('/([a-z])/i', '\\\\$1', $replacement);

        return $replacement;
    }
protected function _translate($matches)
    {
        $replacement = '';
        $translator = $this->getObject('translator');

        switch ($matches[0])
        {
            case 'D':
                $replacement = $translator->translate(strtoupper($this->_date->format('D')));
                break;

            case 'l':
                $replacement = $translator->translate(strtoupper($this->_date->format('l')));
                break;

            case 'F':
                $replacement = $translator->translate(strtoupper($this->_date->format('F')));
                break;

            case 'M':
                $replacement = $translator->translate(strtoupper($this->_date->format('F').'_SHORT'));
                break;
        }

        $replacement = preg_replace('/([a-z])/i', '\\\\$1', $replacement);

        return $replacement;
    }
protected function _translate ( $ matches ) { $ replacement = '' ; $ translator = $ this -> getObject ( 'translator' ) ; switch ( $ matches [ 0 ] ) { case 'D' : $ replacement = $ translator -> translate ( strtoupper ( $ this -> _date -> format ( 'D' ) ) ) ; break ; case 'l' : $ replacement = $ translator -> translate ( strtoupper ( $ this -> _date -> format ( 'l' ) ) ) ; break ; case 'F' : $ replacement = $ translator -> translate ( strtoupper ( $ this -> _date -> format ( 'F' ) ) ) ; break ; case 'M' : $ replacement = $ translator -> translate ( strtoupper ( $ this -> _date -> format ( 'F' ) . '_SHORT' ) ) ; break ; } $ replacement = preg_replace ( '/([a-z])/i' , '\\\\$1' , $ replacement ) ; return $ replacement ; }
Translates day and month names.

@param array $matches Matched elements of preg_replace_callback.
@return string The translated string
Translates day and month names .